Skip to content

Commit e0766bf

Browse files
ShaurenOvahlord
authored andcommitted
Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
1 parent 5848eed commit e0766bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/compiler/gcc/settings.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ if(WITH_WARNINGS)
3434
-Winvalid-pch
3535
-Wfatal-errors
3636
-Woverloaded-virtual
37-
-Wno-missing-field-initializers) # this warning is useless when combined with structure members that have default initializers
37+
-Wno-missing-field-initializers # this warning is useless when combined with structure members that have default initializers
38+
-Wno-maybe-uninitialized) # this warning causes many false positives with std::optional
3839

3940
message(STATUS "GCC: All warnings enabled")
4041
endif()

0 commit comments

Comments
 (0)