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 @@ -155,11 +155,11 @@ function(_get_common_compile_options output_var flags)
155
155
# Silence this warning because _Complex is a part of C99.
156
156
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
157
157
list (APPEND compile_options "-fext-numeric-literals" )
158
- list (APPEND compile_options "-Wno-pedantic" )
159
158
else ()
160
159
list (APPEND compile_options "-Wno-c99-extensions" )
161
160
list (APPEND compile_options "-Wno-gnu-imaginary-constant" )
162
161
endif ()
162
+ list (APPEND compile_options "-Wno-pedantic" )
163
163
list (APPEND compile_options "-Wimplicit-fallthrough" )
164
164
list (APPEND compile_options "-Wwrite-strings" )
165
165
list (APPEND compile_options "-Wextra-semi" )
@@ -239,12 +239,12 @@ function(_get_common_test_compile_options output_var c_test flags)
239
239
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
240
240
if (NOT c_test )
241
241
list (APPEND compile_options "-fext-numeric-literals" )
242
- list (APPEND compile_options "-Wno-pedantic" )
243
242
endif ()
244
243
else ()
245
244
list (APPEND compile_options "-Wno-c99-extensions" )
246
245
list (APPEND compile_options "-Wno-gnu-imaginary-constant" )
247
246
endif ()
247
+ list (APPEND compile_options "-Wno-pedantic" )
248
248
# if(NOT CMAKE_COMPILER_IS_GNUCXX)
249
249
# list(APPEND compile_options "-Wnewline-eof")
250
250
# list(APPEND compile_options "-Wnonportable-system-include-path")
You can’t perform that action at this time.
0 commit comments