Skip to content

Commit

Permalink
Build: Disable maybe-uninitialized warning for GCC that incorrectly t…
Browse files Browse the repository at this point in the history
…riggers with std::optional
  • Loading branch information
Shauren committed Jul 20, 2024
1 parent e4fc6b9 commit d93002f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/compiler/gcc/settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ if(WITH_WARNINGS)
-Winvalid-pch
-Wfatal-errors
-Woverloaded-virtual
-Wno-missing-field-initializers) # this warning is useless when combined with structure members that have default initializers
-Wno-missing-field-initializers # this warning is useless when combined with structure members that have default initializers
-Wno-maybe-uninitialized) # this warning causes many false positives with std::optional

message(STATUS "GCC: All warnings enabled")
endif()
Expand Down

0 comments on commit d93002f

Please sign in to comment.