diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 13:55:58 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 16:23:31 +0300 |
commit | 6cd82dbf57244a754c30039192d5dceaeead0bd7 (patch) | |
tree | f82207ebd33c0ea05086f4c26b506fffd7708629 /build_files | |
parent | 061e73a27054dce12463f17ea565f4271be63c43 (diff) |
CMake: Enable strict flags for C++
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/macros.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index b266602fa63..e23d2c6a07c 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -961,6 +961,20 @@ macro(remove_strict_flags) endmacro() +macro(remove_extra_strict_flags) + if(CMAKE_COMPILER_IS_GNUCC) + remove_cc_flag("-Wunused-parameter") + endif() + + if(CMAKE_C_COMPILER_ID MATCHES "Clang") + remove_cc_flag("-Wunused-parameter") + endif() + + if(MSVC) + # TODO + endif() +endmacro() + # note, we can only append flags on a single file so we need to negate the options. # at the moment we cant shut up ffmpeg deprecations, so use this, but will # probably add more removals here. |