Fix gcc warning in tests
Fixes /home/qt/work/qt/qtbase/tests/auto/corelib/tools/qcache/tst_qcache.cpp: In function ‘TestNamespace::quint64 qHash(TrivialHashType, size_t)’: /home/qt/work/qt/qtbase/tests/auto/corelib/tools/qcache/tst_qcache.cpp:491:41: warning: unused parameter ‘seed’ [-Wunused-parameter] 491 | quint64 qHash(TrivialHashType t, size_t seed = 0) | ~~~~~~~^~~~~~~~ Change-Id: I70446d3f53770162ec0b99f53695c11c7aac103f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
edf1c3b001
commit
dfc1728e7b
@ -490,6 +490,7 @@ struct TrivialHashType {
|
||||
};
|
||||
quint64 qHash(TrivialHashType t, size_t seed = 0)
|
||||
{
|
||||
Q_UNUSED(seed);
|
||||
return t.hash;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user