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>
This commit is contained in:
parent
44cb71d6fd
commit
d38004bdb0
3
src/3rdparty/sha3/KeccakNISTInterface.c
vendored
3
src/3rdparty/sha3/KeccakNISTInterface.c
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user