diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2022-12-03 15:59:21 +0100 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2022-12-05 12:08:56 +0000 |
commit | 8ea159ffa7bd9eb07c5b7c43cfe3e93cce0b2497 (patch) | |
tree | 92509ae0c7976160b5d90e290ec252bb8b8c5443 /tests | |
parent | 1d55a6bb8e72a574002ab13eae6e80cab6783302 (diff) |
Fix -Wc++17-attribute-extensions
[[maybe_unused]] is a C++17 attribute, use Q_DECL_UNUSED instead.
Change-Id: I41216648f322c0ff30dda687fa1fab81a8d39ab9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/perfdata/tst_perfdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp index 769559b..cec1ea7 100644 --- a/tests/auto/perfdata/tst_perfdata.cpp +++ b/tests/auto/perfdata/tst_perfdata.cpp @@ -205,7 +205,7 @@ void TestPerfData::testContentSize() QCOMPARE(unwind.stats().numSamples, 69u); } -[[maybe_unused]] static void compressFile(const QString& input, const QString& output = QString()) +Q_DECL_UNUSED static void compressFile(const QString& input, const QString& output = QString()) { QVERIFY(!input.isEmpty() && QFile::exists(input)); |