From 51eef3fe3e1aad6f157219f22f31dafebf1054da Mon Sep 17 00:00:00 2001 From: Sergei Ilinykh Date: Fri, 12 Apr 2024 14:59:35 +0300 Subject: [PATCH] Ignore more warning for bundled usrsctp --- cmake/modules/IrisSCTP.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/IrisSCTP.cmake b/cmake/modules/IrisSCTP.cmake index 42226968..b2a590b4 100644 --- a/cmake/modules/IrisSCTP.cmake +++ b/cmake/modules/IrisSCTP.cmake @@ -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")