@@ -49,17 +49,25 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
4949 # no need for c++98 compatibility
5050 add_compile_options (-Wno-c++98-compat-pedantic)
5151 # these are not really fixable
52- add_compile_options (-Wno-exit-time-destructors -Wno-global -constructors -Wno-weak-vtables)
52+ add_compile_options (-Wno-exit-time-destructors)
53+ add_compile_options (-Wno-global -constructors)
54+ add_compile_options (-Wno-weak-vtables)
5355 add_compile_options_safe(-Wno-unsafe-buffer-usage)
5456 add_compile_options_safe(-Wno-nrvo)
5557 # we are not interested in these
56- add_compile_options (-Wno-multichar -Wno-four-char-constants)
58+ add_compile_options (-Wno-multichar)
59+ add_compile_options (-Wno-four-char-constants)
5760 # ignore C++11-specific warning
58- add_compile_options (-Wno-suggest-override -Wno-suggest-destructor-override)
61+ add_compile_options (-Wno-suggest-override)
62+ add_compile_options (-Wno-suggest-destructor-override)
5963 # contradicts -Wcovered-switch-default
6064 add_compile_options (-Wno-switch-default)
6165 # TODO: fix these?
62- add_compile_options (-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 -Wno-shadow-field-in-constructor)
66+ add_compile_options (-Wno-padded)
67+ add_compile_options (-Wno-sign-conversion)
68+ add_compile_options (-Wno-implicit-int-conversion)
69+ add_compile_options (-Wno-shorten-64-to-32)
70+ add_compile_options (-Wno-shadow-field-in-constructor)
6371
6472 if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14)
6573 # TODO: verify this regression still exists in clang-15
0 commit comments