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:
Thiago Macieira 2013-02-22 17:58:50 -08:00 committed by The Qt Project
parent 44cb71d6fd
commit d38004bdb0

View File

@ -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