diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-20 12:08:23 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-07-20 12:08:23 +0200 |
commit | d93002f9a96a01258500ca7b5f03fe27e50a7155 (patch) | |
tree | e53c3759372d9087f717b4b3945caf52c957b369 | |
parent | e4fc6b9bf46d7f8b089f1b25b611f7679ddf9598 (diff) |
Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
-rw-r--r-- | cmake/compiler/gcc/settings.cmake | 3 |
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() |