aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-20 12:08:23 +0200
committerOvahlord <dreadkiller@gmx.de>2024-07-25 23:26:46 +0200
commit7fde1c91d32f4e97189f8571fd27a1edb8e3a9f0 (patch)
tree583922557f6e36eff3336045fee2ab780f95b66b /cmake/compiler
parent397f6c81285eaca1516bf54b29c4e0171783bb30 (diff)
Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
Diffstat (limited to 'cmake/compiler')
-rw-r--r--cmake/compiler/gcc/settings.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index 3806ffee984..4861f48dccc 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -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()