summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-01-24 11:14:18 +0100
committerKai Koehne <kai.koehne@qt.io>2022-01-24 12:59:37 +0000
commitdfc1728e7ba1d159c2606cc9fb9571782345c62d (patch)
tree98b00400966fddf2b101d84e60d06c65e6a4f1a6 /tests/auto
parentedf1c3b001e8e203d8bf763f262e9adfafef727e (diff)
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>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/tools/qcache/tst_qcache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qcache/tst_qcache.cpp b/tests/auto/corelib/tools/qcache/tst_qcache.cpp
index beae524a58..2312a66d39 100644
--- a/tests/auto/corelib/tools/qcache/tst_qcache.cpp
+++ b/tests/auto/corelib/tools/qcache/tst_qcache.cpp
@@ -490,6 +490,7 @@ struct TrivialHashType {
};
quint64 qHash(TrivialHashType t, size_t seed = 0)
{
+ Q_UNUSED(seed);
return t.hash;
}