From 096a0434b052e9660b17b2a9c30b0ccc6fc1743d Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 24 May 2019 04:01:21 +0300 Subject: [PATCH] Silence GCC warning. GitOrigin-RevId: c0b19db450a01d204fc74f30b75c3552a816bdbe --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d51bca79c..7f311837e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,7 +225,7 @@ if (NOT MSVC) # add_cxx_compiler_flag("-Wzero-as-null-pointer-constant") endif() -if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)) +if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)) add_cxx_compiler_flag("-Wno-maybe-uninitialized") # too much false positives endif() if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0))