Skip to content

Commit 8719b30

Browse files
committed
Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
1 parent 9807e9d commit 8719b30

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
@@ -35,7 +35,8 @@ if(WITH_WARNINGS)
3535
-Winvalid-pch
3636
-Wfatal-errors
3737
-Woverloaded-virtual
38-
-Wno-missing-field-initializers) # this warning is useless when combined with structure members that have default initializers
38+
-Wno-missing-field-initializers # this warning is useless when combined with structure members that have default initializers
39+
-Wno-maybe-uninitialized) # this warning causes many false positives with std::optional
3940

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

0 commit comments

Comments
 (0)