Mark variables that might be unused under some configurations

Silence compiler warnings.

Pick-to: 6.1
Change-Id: I857cf2ee177eecf305e4fa14f6b69b019ce85468
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Volker Hilsheimer 2021-04-11 14:53:55 +02:00
parent 65e3dc5eac
commit fa3b672f99

View File

@ -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")) {