diff --git a/CMakeLists.txt b/CMakeLists.txt index b8852e4..4363fa1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,6 +238,7 @@ else() if (BENCHMARK_ENABLE_LTO) add_cxx_compiler_flag(-flto) add_cxx_compiler_flag(-Wno-lto-type-mismatch) + add_cxx_compiler_flag(-Wno-error=maybe-uninitialized) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") find_program(GCC_AR gcc-ar) if (GCC_AR)