File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,18 @@ function(add_compile_options_safe FLAG)
1919endfunction ()
2020
2121if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
22- add_compile_options (-Wall -Wextra -pedantic -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wshadow -Wundef -Wold-style-cast -Wno-multichar )
22+ add_compile_options (-Wall )
23+ add_compile_options (-Wextra )
24+ add_compile_options (-pedantic )
25+ add_compile_options (-Wcast-qual )
26+ add_compile_options (-Wfloat-equal )
27+ add_compile_options (-Wmissing-declarations )
28+ add_compile_options (-Wmissing-format-attribute )
29+ add_compile_options (-Wredundant-decls )
30+ add_compile_options (-Wshadow )
31+ add_compile_options (-Wundef )
32+ add_compile_options (-Wold-style-cast )
33+ add_compile_options (-Wno-multichar )
2334elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
2435 add_compile_definitions (_CRT_SECURE_NO_WARNINGS )
2536elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
You can’t perform that action at this time.
0 commit comments