From 165a8803dc99097e6db7942cb17a16b524f46aa0 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 1 Mar 2021 18:18:22 -0500 Subject: [PATCH] lzokay: Disable -Wmaybe-uninitialized for GCC --- extern/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 2ae7b25..7f6ae41 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -1,4 +1,7 @@ add_subdirectory(lzokay) +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + target_compile_options(lzokay PRIVATE -Wno-maybe-uninitialized) +endif () add_subdirectory(zlib) add_subdirectory(yaml) if(NOT TARGET fmt)