From 9e449d902d860edc5b26dc31c19672b0d812785b Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sun, 23 Oct 2022 16:52:18 +0200 Subject: [PATCH] Make clang shut up about -Wno-error=maybe-uninitialized in teakra --- src/teakra/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/teakra/CMakeLists.txt b/src/teakra/CMakeLists.txt index e4ecb1af..c1615e05 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)