@@ -27,17 +27,25 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
27
27
# no need for c++98 compatibility
28
28
add_compile_options (-Wno-c++98-compat-pedantic )
29
29
# 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 )
31
33
add_compile_options_safe (-Wno-unsafe-buffer-usage )
32
34
add_compile_options_safe (-Wno-nrvo )
33
35
# we are not interested in these
34
- add_compile_options (-Wno-multichar -Wno-four-char-constants )
36
+ add_compile_options (-Wno-multichar )
37
+ add_compile_options (-Wno-four-char-constants )
35
38
# ignore C++11-specific warning
36
- add_compile_options (-Wno-suggest-override -Wno-suggest-destructor-override )
39
+ add_compile_options (-Wno-suggest-override )
40
+ add_compile_options (-Wno-suggest-destructor-override )
37
41
# contradicts -Wcovered-switch-default
38
42
add_compile_options (-Wno-switch-default )
39
43
# 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 )
44
+ add_compile_options (-Wno-padded )
45
+ add_compile_options (-Wno-sign-conversion )
46
+ add_compile_options (-Wno-implicit-int-conversion )
47
+ add_compile_options (-Wno-shorten-64-to-32 )
48
+ add_compile_options (-Wno-shadow-field-in-constructor )
41
49
42
50
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14 )
43
51
# TODO: verify this regression still exists in clang-15
0 commit comments