Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional

(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
This commit is contained in:
Shauren authored and Ovahlord committed 2025-08-10 10:19:02 +02:00
1 parent 5848eedb24
commit e0766bfc55
1 file changed
+2 -1
+2 -1
View File
@@ -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()