From 75146a4e6c3d5e239e62f9016801c757b21eb075 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 24 Mar 2024 12:44:49 +0100 Subject: actually only Clang has -Wno-c99-compat --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cd9c3e5..8ffb8374 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,12 +217,12 @@ fm_run_hook(fm-userconfig-src) if(CMAKE_COMPILER_IS_GNUCXX) add_compile_options(-Wno-float-equal) add_compile_options(-Wreturn-type -Werror=return-type) - add_compile_options(-Wno-c99-compat) endif() if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$") add_definitions(-D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) add_compile_options(-Wno-shift-op-parentheses) + add_compile_options(-Wno-c99-compat) elseif(CMAKE_COMPILER_IS_GNUCXX) add_compile_options(-Wno-subobject-linkage -Wno-parentheses -Wno-overloaded-virtual) endif() -- cgit v1.2.3