From 613bb3e83f2893efd80bd7808d7b6308ff897f92 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 17 Jan 2021 17:19:42 +0300 Subject: [PATCH] Disable -Wmaybe-uninitialized in GCC since it gives a ton of false-positives --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7c906f3..59a79913 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ endif() set(PSEMEK_CXX_FLAGS) if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) - list(APPEND PSEMEK_CXX_FLAGS -Wall -Werror -Wextra -pedantic -Wno-narrowing -Wno-sign-compare) + list(APPEND PSEMEK_CXX_FLAGS -Wall -Werror -Wextra -pedantic -Wno-narrowing -Wno-sign-compare -Wno-maybe-uninitialized) endif() option(PSEMEK_ASAN "Turn on Address Sanitizer" OFF)