aboutsummaryrefslogtreecommitdiff
path: root/src/teakra
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2022-10-23 16:52:18 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2022-10-23 16:52:18 +0200
commit9e449d902d860edc5b26dc31c19672b0d812785b (patch)
tree2fdc19f9bb1d4c317206e8704c90f2a652f34503 /src/teakra
parentb5017caa33f4647e444f45bf4e5dfbd6cdb3b3a7 (diff)
Make clang shut up about -Wno-error=maybe-uninitialized in teakra
Diffstat (limited to 'src/teakra')
-rw-r--r--src/teakra/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/teakra/CMakeLists.txt b/src/teakra/CMakeLists.txt
index e4ecb1a..c1615e0 100644
--- a/src/teakra/CMakeLists.txt
+++ b/src/teakra/CMakeLists.txt
@@ -58,10 +58,14 @@ else()
-pedantic
-pedantic-errors
-Wfatal-errors
- -Wno-error=maybe-uninitialized
-Wno-missing-braces
-Wno-unused-parameter)
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ list(APPEND TEAKRA_CXX_FLAGS
+ -Wno-error=maybe-uninitialized)
+ endif()
+
if (TEAKRA_WARNINGS_AS_ERRORS)
list(APPEND TEAKRA_CXX_FLAGS
-Werror)