diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-04-11 14:53:55 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-04-11 20:30:07 +0000 |
commit | da1e10f18d8c3ece380c51ef44924e1c38746a63 (patch) | |
tree | 27eff9ee40671642a95dcca65934c492c09c4a35 /tests | |
parent | 9b808b84bf2f08f63fab248cb05d586295a90fe6 (diff) |
Mark variables that might be unused under some configurations
Silence compiler warnings.
Change-Id: I857cf2ee177eecf305e4fa14f6b69b019ce85468
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit fa3b672f998486bb7771c8e32ed43c45f55c4e63)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/text/qcollator/tst_qcollator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qcollator/tst_qcollator.cpp b/tests/auto/corelib/text/qcollator/tst_qcollator.cpp index d1345906a9..1ff80294fe 100644 --- a/tests/auto/corelib/text/qcollator/tst_qcollator.cpp +++ b/tests/auto/corelib/text/qcollator/tst_qcollator.cpp @@ -290,8 +290,8 @@ void tst_QCollator::compare() collator.setNumericMode(true); int keyCompareResult = result; - int keyCompareCaseInsensitiveResult = caseInsensitiveResult; - int keyComparePunctuationResultResult = punctuationResult; + [[maybe_unused]]int keyCompareCaseInsensitiveResult = caseInsensitiveResult; + [[maybe_unused]]int keyComparePunctuationResultResult = punctuationResult; // trying to deal with special behavior of different OS-dependent collators if (collator.locale() == QLocale("C")) { |