CMake: suppress GCC warnings in ./extern/bullet

This commit is contained in:
Campbell Barton
2025-06-13 11:56:43 +10:00
parent 8e1bca3ce4
commit a16d68b625

View File

@@ -2,8 +2,16 @@
# #
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# avoid noisy warnings # Suppress noisy warnings.
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
remove_cc_flag(
"-Warray-bounds=[^ ]+"
"-Wunused-[^ ]+"
"-Wunused"
"-Wextra"
"-Wall"
)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
remove_cc_flag( remove_cc_flag(
"-Wall" "-Wall"
) )