Skip to content

Commit 586bd0d

Browse files
linesightclaude
andcommitted
build: extend -Wno-stringop-overflow to LTO link step
GCC's lto-wrapper re-compiles combined IR during linking and doesn't propagate -Wno-* flags from the compile phase, so the false-positive -Wstringop-overflow warnings resurfaced at link time. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 883fc39 commit 586bd0d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ else()
236236
)
237237
target_link_options(${MODULE_NAME} PRIVATE
238238
-flto -Wl,--gc-sections
239+
-Wno-stringop-overflow
239240
)
240241
target_link_libraries(${MODULE_NAME} PRIVATE
241242
X11 ${GTK3_LIBRARIES}

0 commit comments

Comments
 (0)