From cf280f84d4465d323463adafa3135ec3a936e2f8 Mon Sep 17 00:00:00 2001 From: ericLemanissier Date: Sat, 1 Apr 2023 16:33:50 +0200 Subject: [PATCH] qt: fix Q_UNUSED macro defintion (#4925) --- cfg/qt.cfg | 2 +- test/cfg/qt.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index aaf0cf135..b6aa70ea7 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5170,7 +5170,7 @@ - + diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index da3735018..eeeb1659d 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -420,8 +420,9 @@ void MacroTest3() QVERIFY2(2 >= 0, message.constData()); } -void validCode(int * pIntPtr, QString & qstrArg) +void validCode(int * pIntPtr, QString & qstrArg, double d) { + Q_UNUSED(d) if (QFile::exists("test")) {} if (pIntPtr != Q_NULLPTR) {