From 2a6015914c92edab473995aaf61d67f06478d185 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Mon, 18 Mar 2024 11:00:22 +0100 Subject: [PATCH] Fix dangling references - GCC 14 This amends 18def77d27f88ce26b6af29fe56a80429fed555d . Pick-to: 6.6 6.5 Change-Id: Icadf46326f1fda1bdbcd40d101170581e510b87a Reviewed-by: Thiago Macieira (cherry picked from commit 8a6750475410629741de0417c28f574c25c65338) Reviewed-by: Qt Cherry-pick Bot --- 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 3ad1ca9b252..deb3ad52530 100644 --- a/src/tools/qtpaths/qtpaths.cpp +++ b/src/tools/qtpaths/qtpaths.cpp @@ -255,7 +255,7 @@ int main(int argc, char **argv) } QT_WARNING_PUSH -#if defined(Q_CC_GNU_ONLY) && Q_CC_GNU >= 1300 && Q_CC_GNU < 1400 +#if defined(Q_CC_GNU_ONLY) && Q_CC_GNU >= 1300 && Q_CC_GNU < 1500 QT_WARNING_DISABLE_GCC("-Wdangling-reference") #endif if (parser.isSet(display)) {