Skip to content

Commit

Permalink
Disable dangling-reference warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Flamefire committed May 5, 2023
1 parent 7c46b2c commit cb940ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/EnableWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb940ef

Please sign in to comment.