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)
295295
296296endif ()
297297
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+
298304
299305#
300306# Testing framework
Original file line number Diff line number Diff line change @@ -214,12 +214,6 @@ ELSE()
214214 add_flags(CXX -Wall)
215215 endif ()
216216
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-
223217ENDIF ()
224218
225219
You can’t perform that action at this time.
0 commit comments