Skip to content

Commit 2ca497b

Browse files
dendisuhubdyclaude
andcommitted
Fix GCC 14 build: suppress free-nonheap-object false positive
GCC 14 emits a spurious -Wfree-nonheap-object warning in scramblesuit.cpp vector::push_back, causing -Werror to fail the build. Suppress alongside existing stringop-overflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c186e26 commit 2ca497b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ target_compile_options(obfs4 PRIVATE
9494
-Wall -Wextra -Wpedantic -Werror
9595
)
9696
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
97-
target_compile_options(obfs4 PRIVATE -Wno-error=stringop-overflow)
97+
target_compile_options(obfs4 PRIVATE
98+
-Wno-error=stringop-overflow
99+
-Wno-error=free-nonheap-object
100+
)
98101
endif()
99102

100103
# obfs4proxy binary

0 commit comments

Comments
 (0)