Skip to content

Commit

Permalink
Disable MSVC warning C4703 for usrsctp and clean up flags for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jul 5, 2024
1 parent a7d1b5d commit 05f3f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,10 @@ if (webtorrent)
target_compile_options(datachannel-static PRIVATE
-Wno-pedantic
-Wno-unused-parameter
-Wno-unused-variable
-Wno-format-nonliteral)
-Wno-unused-variable)
elseif(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
target_compile_options(datachannel-static PRIVATE
/wd4703) # potentially uninitialized local pointer variable
endif()
endif()

Expand Down

0 comments on commit 05f3f3b

Please sign in to comment.