From 1a6db595a082b52f1d8c26fce2d12afb2ee46067 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 15 Dec 2017 12:28:32 +0000 Subject: [PATCH] Ignore -Wmaybe-uninitialized on GCC. Refs #815 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 604cc22a6..01dca6b80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,7 +212,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") -Wno-unknown-pragmas -Wno-reorder) if(CMAKE_COMPILER_IS_GNUCXX) - list(APPEND warning_flags -Wno-unused-but-set-variable) + list(APPEND warning_flags -Wno-unused-but-set-variable -Wno-maybe-uninitialized) # We keep the implicit fallthrough warning for now, but allow more # comments to silence it.