Skip to content

Commit

Permalink
Ignore more warning for bundled usrsctp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Apr 12, 2024
1 parent d8b219b commit 51eef3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/IrisSCTP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ else()
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER})
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND USRSCTP_BUILD_OPTIONS -DCMAKE_C_FLAGS="-Wno-maybe-uninitialized")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
list(APPEND USRSCTP_BUILD_OPTIONS "-DCMAKE_C_FLAGS=-Wno-maybe-uninitialized -Wno-unused-but-set-variable")
endif()
if (EXISTS ${USRSCTP_SOURCE_DIR})
message(STATUS "USRSCTP: found bundled sources")
Expand Down

0 comments on commit 51eef3f

Please sign in to comment.