summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-02-09 10:12:08 -0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-11 00:20:07 +0000
commite851b6ea2c658a9fe6f704b15a07277457b1bb07 (patch)
treebbb7f04ef0186e48f4bbc703a223d7e2dfe8d31b /.gitignore
parentbcc0c5c145179e2b5829ce0dbcb745a1a1de55c1 (diff)
QLibrary: Suppress GCC 12 warning about dangling pointer accessv6.3.0-beta2
Introduced in commit d07742f333df89dc399fc5d9cabf2bdef0b346c5. Reported by GCC 12: qlibrary.cpp:672:9: error: dangling pointer to ‘candidates’ may be used [-Werror=dangling-pointer=] 672 | if (isValidSuffix(*it++)) | ^~ qlibrary.cpp:634:29: note: ‘candidates’ declared here 634 | const QLatin1String candidates[] = { | ^~~~~~~~~~ This is a false positive report because the lambda does not return a pointer or iterator. But it's a good update anyway to keep the array outside the lambda, so it won't be recreated every time. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104492 Change-Id: I74249c52dc02478ba93cfffd16d230abd1bf6166 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 81b9ee66b8e40ed145185fe46b7c91929688cafd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions