summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-27 21:56:31 +0200
committerMarc Mutz <[email protected]>2025-06-29 18:31:04 +0200
commit8b02e126da4ccecabbe7756b7a280c5e477820f9 (patch)
tree670eb2b7d72df4e53eba9a2f9fb5052d2e3fc754
parent515ea07e40c692dc502bc4c9e960feb7f9eca40e (diff)
tst_bench_qfile: fix yet another [[nodiscard]] warning
Amends 7466831509fe163f3fd1e3a6bbf38f6f5a32ef00. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I73ec71d727e2e07761b7b7c70e8b8eddd9137450 Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r--tests/benchmarks/corelib/io/qfile/tst_bench_qfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/io/qfile/tst_bench_qfile.cpp b/tests/benchmarks/corelib/io/qfile/tst_bench_qfile.cpp
index d7da02b4ea2..ae45cc4843c 100644
--- a/tests/benchmarks/corelib/io/qfile/tst_bench_qfile.cpp
+++ b/tests/benchmarks/corelib/io/qfile/tst_bench_qfile.cpp
@@ -426,6 +426,7 @@ void tst_qfile::open()
QBENCHMARK {
QFile file;
+ [[maybe_unused]] const auto r =
file.open(cfile, QIODevice::ReadOnly);
file.close();
}