@@ -80,53 +80,48 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
8080 add_link_options (-lc++ )
8181 endif ()
8282
83- # TODO: fix and enable these warnings - or move to suppression list below
83+ # TODO: fix and enable these warnings - or move to suppression list below
8484 add_compile_options_safe (-Wno-documentation-unknown-command ) # TODO: Clang currently does not support all commands
85- add_compile_options_safe (-Wno-inconsistent-missing-destructor-override ) # caused by Qt moc code
86- add_compile_options_safe (-Wno-unused-exception-parameter )
87- add_compile_options_safe (-Wno-old-style-cast )
88- add_compile_options_safe (-Wno-sign-conversion )
89- add_compile_options_safe (-Wno-shadow-field-in-constructor )
90- add_compile_options_safe (-Wno-covered-switch-default )
91- add_compile_options_safe (-Wno-shorten-64-to-32 )
92- add_compile_options_safe (-Wno-zero-as-null-pointer-constant ) # TODO: enable when warnings are fixed in in simplecpp and tinyxml2
93- add_compile_options_safe (-Wno-implicit-int-conversion )
94- add_compile_options_safe (-Wno-double-promotion )
95- add_compile_options_safe (-Wno-shadow-field )
96- add_compile_options_safe (-Wno-shadow-uncaptured-local )
97- add_compile_options_safe (-Wno-implicit-float-conversion )
98- add_compile_options_safe (-Wno-switch-enum )
99- add_compile_options_safe (-Wno-float-conversion )
100- add_compile_options_safe (-Wno-enum-enum-conversion )
101- add_compile_options_safe (-Wno-date-time )
102- add_compile_options_safe (-Wno-suggest-override ) # TODO: enable when warnings are fixed in in tinyxml2
103- add_compile_options_safe (-Wno-suggest-destructor-override ) # TODO: enable when warnings are fixed in in tinyxml2
104- add_compile_options_safe (-Wno-extra-semi-stmt ) # TODO: enable when warnings are fixed in in tinyxml2
105- add_compile_options (-Wno-disabled-macro-expansion )
106- add_compile_options_safe (-Wno-bitwise-instead-of-logical )
107-
108- # these cannot be fixed properly without adopting later C++ standards
109- add_compile_options_safe (-Wno-unsafe-buffer-usage )
110- add_compile_options_safe (-Wno-global-constructors )
111- add_compile_options_safe (-Wno-exit-time-destructors )
112-
113- # can only be partially addressed
114- add_compile_options (-Wno-padded )
115-
116- # no need for C++98 compatibility
117- add_compile_options (-Wno-c++98-compat )
118- add_compile_options (-Wno-c++98-compat-pedantic )
119-
120- # only need to be addressed to work around issues in older compilers
121- add_compile_options_safe (-Wno-return-std-move-in-c++11 )
85+ add_compile_options_safe (-Wno-unused-exception-parameter )
86+ add_compile_options_safe (-Wno-old-style-cast )
87+ add_compile_options_safe (-Wno-sign-conversion )
88+ add_compile_options_safe (-Wno-shadow-field-in-constructor )
89+ add_compile_options_safe (-Wno-covered-switch-default )
90+ add_compile_options_safe (-Wno-shorten-64-to-32 )
91+ add_compile_options_safe (-Wno-implicit-int-conversion )
92+ add_compile_options_safe (-Wno-double-promotion )
93+ add_compile_options_safe (-Wno-shadow-field )
94+ add_compile_options_safe (-Wno-shadow-uncaptured-local )
95+ add_compile_options_safe (-Wno-implicit-float-conversion )
96+ add_compile_options_safe (-Wno-switch-enum )
97+ add_compile_options_safe (-Wno-float-conversion )
98+ add_compile_options_safe (-Wno-enum-enum-conversion )
99+ add_compile_options_safe (-Wno-date-time )
100+ add_compile_options (-Wno-disabled-macro-expansion )
101+ add_compile_options_safe (-Wno-bitwise-instead-of-logical )
102+
103+ # these cannot be fixed properly without adopting later C++ standards
104+ add_compile_options_safe (-Wno-unsafe-buffer-usage )
105+ add_compile_options_safe (-Wno-global-constructors )
106+ add_compile_options_safe (-Wno-exit-time-destructors )
107+
108+ # can only be partially addressed
109+ add_compile_options (-Wno-padded )
110+
111+ # no need for C++98 compatibility
112+ add_compile_options (-Wno-c++98-compat )
113+ add_compile_options (-Wno-c++98-compat-pedantic )
114+
115+ # only needs to be addressed to work around issues in older compilers
116+ add_compile_options_safe (-Wno-return-std-move-in-c++11 )
122117
123118 # warnings we are currently not interested in
124- add_compile_options (-Wno-four-char-constants )
125- add_compile_options (-Wno-weak-vtables )
119+ add_compile_options (-Wno-four-char-constants )
120+ add_compile_options (-Wno-weak-vtables )
126121
127- if (ENABLE_COVERAGE OR ENABLE_COVERAGE_XML)
122+ if (ENABLE_COVERAGE OR ENABLE_COVERAGE_XML)
128123 message (FATAL_ERROR "Do not use clang to generate code coverage. Use GCC instead." )
129- endif ()
124+ endif ()
130125endif ()
131126
132127if (MSVC )
0 commit comments