File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ function(_get_common_test_compile_options output_var c_test flags)
3434 # list(APPEND compile_options "-Wconversion")
3535 # list(APPEND compile_options "-Wno-sign-conversion")
3636 list (APPEND compile_options "-Wimplicit-fallthrough" )
37+ list (APPEND compile_options "-Wstrict-prototypes" )
3738 list (APPEND compile_options "-Wwrite-strings" )
3839 list (APPEND compile_options "-Wextra-semi" )
3940 # Silence this warning because _Complex is a part of C99.
@@ -46,10 +47,9 @@ function(_get_common_test_compile_options output_var c_test flags)
4647 list (APPEND compile_options "-Wno-gnu-imaginary-constant" )
4748 endif ()
4849 list (APPEND compile_options "-Wno-pedantic" )
49- if (NOT CMAKE_COMPILER_IS_GNUCXX )
50+ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
5051 list (APPEND compile_options "-Wnewline-eof" )
5152 list (APPEND compile_options "-Wnonportable-system-include-path" )
52- list (APPEND compile_options "-Wstrict-prototypes" )
5353 list (APPEND compile_options "-Wthread-safety" )
5454 # list(APPEND compile_options "-Wglobal-constructors")
5555 endif ()
You can’t perform that action at this time.
0 commit comments