diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 12:44:49 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 12:44:49 +0100 |
| commit | 75146a4e6c3d5e239e62f9016801c757b21eb075 (patch) | |
| tree | 9e48ac5dd05b4117a20e5859e6397c175bd51758 | |
| parent | a59e43496fb3e2aae6bf0fbdddc01dba4db1b219 (diff) | |
actually only Clang has -Wno-c99-compat
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
