Skip to content

Commit cb940ef

Browse files
committed
Disable dangling-reference warning
Shows to many false positives, e.g. Return-To-The-Roots/s25client#1587 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 for upstream discussion and similar cases.
1 parent 7c46b2c commit cb940ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/EnableWarnings.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function(enable_warnings target)
8181
-Woverloaded-virtual
8282
-Wstrict-null-sentinel
8383
-Wno-maybe-uninitialized # False positives e.g. with variant/optional
84+
-Wno-dangling-reference # To many false positives, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
8485
-Wno-error=inconsistent-missing-override
8586
)
8687
if(NOT WIN32)

0 commit comments

Comments
 (0)