Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
This commit is contained in:
1 parent
5848eedb24
commit
e0766bfc55
1 file changed
+2
-1
@@ -34,7 +34,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()
|
||||
|
||||
Reference in new issue
Block a user