Skip to content

Commit

Permalink
Fix compile warning for wolfssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 11, 2024
1 parent 342b653 commit af225cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ if (ENABLE_USE_WOLFSSL)
# gcc 编译时 wolfssl 会有一些 stringop-overflow 警告, 这里忽略掉.
if (NOT MSVC AND NOT APPLE)
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-stringop-overflow")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-stringop-overflow -Wno-stringop-overread -Wno-maybe-uninitialized")
endif()
endif()

Expand Down

0 comments on commit af225cc

Please sign in to comment.