CMake: Enable unused-parameter warning for Clang C++

Was already done for C, but not for C++.

Pull Request: https://projects.blender.org/blender/blender/pulls/109724
This commit is contained in:
Sergey Sharybin
2023-07-05 09:22:40 +02:00
committed by Gitea
parent 7651885a9c
commit b3cd646a15

View File

@@ -1592,6 +1592,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
add_check_cxx_compiler_flag(CXX_WARNINGS CXX_WARN_UNDEF -Wundef)
add_check_cxx_compiler_flag(CXX_WARNINGS CXX_WARN_UNDEF_PREFIX -Wundef-prefix)
add_check_cxx_compiler_flag(CXX_WARNINGS CXX_WARN_UNUSED_PARAMETER -Wunused-parameter)
# gives too many unfixable warnings
# add_check_c_compiler_flag(C_WARNINGS C_WARN_UNUSED_MACROS -Wunused-macros)