aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/gcc
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-20 12:08:23 +0200
committerShauren <shauren.trinity@gmail.com>2025-04-13 19:05:27 +0200
commit8719b30d57dcde2dd25f8fc464bde960d1dd19fd (patch)
treec6b939d0e167f2bedb6c5cf3ee960a533dd85f42 /cmake/compiler/gcc
parent9807e9d450b75049d71f7146ffc5e3c540fbe2de (diff)
Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a96a01258500ca7b5f03fe27e50a7155)
Diffstat (limited to 'cmake/compiler/gcc')
-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()