File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,12 @@ if(SUNPRO)
295
295
296
296
endif ()
297
297
298
+ if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12.0 )
299
+ # Silence a warning produced by a regression in GCC 12.0 and newer
300
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106199
301
+ add_compile_options (-Wno-stringop-overflow )
302
+ endif ()
303
+
298
304
299
305
#
300
306
# Testing framework
Original file line number Diff line number Diff line change @@ -214,12 +214,6 @@ ELSE()
214
214
add_flags (CXX -Wall )
215
215
endif ()
216
216
217
- if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12.0 )
218
- # Silence a warning produced by a regression in GCC 12.0 and newer
219
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106199
220
- add_compile_options (-Wno-stringop-overflow )
221
- endif ()
222
-
223
217
ENDIF ()
224
218
225
219
You can’t perform that action at this time.
0 commit comments