File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ function(dsda_internal_setup_warnings_gnu result_var)
30
30
-Wdeclaration-after-statement
31
31
-Wbad-function-cast
32
32
)
33
- set (GNU_WARNINGS_SET ${GNU_WARNINGS} ${GNU_C_WARNINGS} )
34
-
35
33
if (CMAKE_C_COMPILER_ID STREQUAL "GNU"
36
34
OR (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
37
35
OR (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 17)
38
36
)
39
- list (APPEND GNU_WARNINGS_SET "-Wno-format-truncation" )
37
+ list (APPEND GNU_WARNINGS "-Wno-format-truncation" )
40
38
endif ()
41
39
40
+ set (GNU_WARNINGS_SET ${GNU_WARNINGS} ${GNU_C_WARNINGS} )
41
+
42
42
include (CheckCCompilerFlag)
43
43
check_c_compiler_flag("${GNU_WARNINGS_SET} " DSDA_SUPPORTS_GNU_WARNINGS)
44
44
You can’t perform that action at this time.
0 commit comments