Skip to content

Commit db52506

Browse files
committed
split up Clang warnings in CMake
1 parent 6d29447 commit db52506

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,24 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2727
# no need for c++98 compatibility
2828
add_compile_options(-Wno-c++98-compat-pedantic)
2929
# these are not really fixable
30-
add_compile_options(-Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables)
30+
add_compile_options(-Wno-exit-time-destructors)
31+
add_compile_options(-Wno-global-constructors)
32+
add_compile_options(-Wno-weak-vtables)
3133
add_compile_options_safe(-Wno-unsafe-buffer-usage)
3234
add_compile_options_safe(-Wno-nrvo)
3335
# we are not interested in these
3436
add_compile_options(-Wno-multichar -Wno-four-char-constants)
3537
# ignore C++11-specific warning
36-
add_compile_options(-Wno-suggest-override -Wno-suggest-destructor-override)
38+
add_compile_options(-Wno-suggest-override)
39+
add_compile_options(-Wno-suggest-destructor-override)
3740
# contradicts -Wcovered-switch-default
3841
add_compile_options(-Wno-switch-default)
3942
# TODO: fix these?
40-
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 -Wno-shadow-field-in-constructor)
43+
add_compile_options(-Wno-padded)
44+
add_compile_options(-Wno-sign-conversion)
45+
add_compile_options(-Wno-implicit-int-conversion)
46+
add_compile_options(-Wno-shorten-64-to-32)
47+
add_compile_options(-Wno-shadow-field-in-constructor)
4148

4249
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14)
4350
# TODO: verify this regression still exists in clang-15

0 commit comments

Comments
 (0)