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>
This commit is contained in:
parent
9b808b84bf
commit
da1e10f18d
@ -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")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user