summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/sha3
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-02-22 17:58:50 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-24 08:00:37 +0100
commitd38004bdb08a7e2e038123dea74d6f58dc02b298 (patch)
treef2e792c5561d044c12128d3e2e241477f2e4f115 /src/3rdparty/sha3
parent44cb71d6fdb0b7285d4ef74a1ef778323aa9e5ee (diff)
Disable the SHA-3 Hash function: QCryptographicHash doesn't need it
QCryptographicHash will do the full Init/Update/Final calls, so we don't need the Hash function. Disable it from the compilation to avoid a warning about a function defined but not used. Change-Id: Ib48ae4a7be91089fdcffa00851b786816b798cd9 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/3rdparty/sha3')
-rwxr-xr-xsrc/3rdparty/sha3/KeccakNISTInterface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/sha3/KeccakNISTInterface.c b/src/3rdparty/sha3/KeccakNISTInterface.c
index 33e6e0d28b..e530a11db5 100755
--- a/src/3rdparty/sha3/KeccakNISTInterface.c
+++ b/src/3rdparty/sha3/KeccakNISTInterface.c
@@ -62,6 +62,7 @@ static HashReturn Final(hashState *state, BitSequence *hashval)
return (HashReturn) Squeeze(state, hashval, state->fixedOutputLength);
}
+#ifndef QT_BUILDING_QT
static HashReturn Hash(int hashbitlen, const BitSequence *data, DataLength databitlen, BitSequence *hashval)
{
hashState state;
@@ -78,4 +79,4 @@ static HashReturn Hash(int hashbitlen, const BitSequence *data, DataLength datab
result = Final(&state, hashval);
return result;
}
-
+#endif