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)
155155 # Silence this warning because _Complex is a part of C99.
156156 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
157157 list (APPEND compile_options "-fext-numeric-literals" )
158- list (APPEND compile_options "-Wno-pedantic" )
159158 else ()
160159 list (APPEND compile_options "-Wno-c99-extensions" )
161160 list (APPEND compile_options "-Wno-gnu-imaginary-constant" )
162161 endif ()
162+ list (APPEND compile_options "-Wno-pedantic" )
163163 list (APPEND compile_options "-Wimplicit-fallthrough" )
164164 list (APPEND compile_options "-Wwrite-strings" )
165165 list (APPEND compile_options "-Wextra-semi" )
@@ -239,12 +239,12 @@ function(_get_common_test_compile_options output_var c_test flags)
239239 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
240240 if (NOT c_test)
241241 list (APPEND compile_options "-fext-numeric-literals" )
242- list (APPEND compile_options "-Wno-pedantic" )
243242 endif ()
244243 else ()
245244 list (APPEND compile_options "-Wno-c99-extensions" )
246245 list (APPEND compile_options "-Wno-gnu-imaginary-constant" )
247246 endif ()
247+ list (APPEND compile_options "-Wno-pedantic" )
248248 # if(NOT CMAKE_COMPILER_IS_GNUCXX)
249249 # list(APPEND compile_options "-Wnewline-eof")
250250 # list(APPEND compile_options "-Wnonportable-system-include-path")
You can’t perform that action at this time.
0 commit comments