From cb940ef62c2324875d12bc6014838a22dbf290d2 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 5 May 2023 17:00:59 +0200 Subject: [PATCH] Disable `dangling-reference` warning Shows to many false positives, e.g. https://github.com/Return-To-The-Roots/s25client/issues/1587 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 for upstream discussion and similar cases. --- cmake/EnableWarnings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/EnableWarnings.cmake b/cmake/EnableWarnings.cmake index 842b0bb..ae15e87 100644 --- a/cmake/EnableWarnings.cmake +++ b/cmake/EnableWarnings.cmake @@ -81,6 +81,7 @@ function(enable_warnings target) -Woverloaded-virtual -Wstrict-null-sentinel -Wno-maybe-uninitialized # False positives e.g. with variant/optional + -Wno-dangling-reference # To many false positives, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 -Wno-error=inconsistent-missing-override ) if(NOT WIN32)