From 9379b95b533216593d4d37c0cbf70f91d1ce037a Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 29 Jan 2025 13:27:55 +0100 Subject: [PATCH] Fix dangling references - GCC 15 This amends 8a6750475410629741de0417c28f574c25c65338 and 18def77d27f88ce26b6af29fe56a80429fed555d. Pick-to: 6.9 6.8 Change-Id: I31068527458da3d25211743fb64e2624039bd78b Reviewed-by: Giuseppe D'Angelo Reviewed-by: Thiago Macieira --- src/tools/qtpaths/qtpaths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/qtpaths/qtpaths.cpp b/src/tools/qtpaths/qtpaths.cpp index 71f9fe43497..1321dd484bb 100644 --- a/src/tools/qtpaths/qtpaths.cpp +++ b/src/tools/qtpaths/qtpaths.cpp @@ -252,7 +252,7 @@ int main(int argc, char **argv) } QT_WARNING_PUSH -#if defined(Q_CC_GNU_ONLY) && Q_CC_GNU >= 1300 && Q_CC_GNU < 1500 +#if defined(Q_CC_GNU_ONLY) && Q_CC_GNU >= 1300 && Q_CC_GNU < 1600 QT_WARNING_DISABLE_GCC("-Wdangling-reference") #endif if (parser.isSet(display)) {