From d38004bdb08a7e2e038123dea74d6f58dc02b298 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 22 Feb 2013 17:58:50 -0800 Subject: [PATCH] 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 --- src/3rdparty/sha3/KeccakNISTInterface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/3rdparty/sha3/KeccakNISTInterface.c b/src/3rdparty/sha3/KeccakNISTInterface.c index 33e6e0d28b6..e530a11db55 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