Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Native/Unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ add_compile_options(-Wno-empty-translation-unit)
add_compile_options(-Wno-cast-align)
add_compile_options(-Wno-typedef-redefinition)
add_compile_options(-Wno-c11-extensions)
if (HAVE_WNO_SIGN_CONVERSION)
add_compile_options(-Wno-sign-conversion)
endif()
if (HAVE_WNO_UNUSED_RESULT)
add_compile_options(-Wno-unused-result)
endif()
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
add_compile_options(-g)
Expand Down
2 changes: 2 additions & 0 deletions src/Native/Unix/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ set(CMAKE_REQUIRED_FLAGS "-Werror -Wno-error=unused-value")

check_c_compiler_flag(-Wno-alloca HAVE_WNO_ALLOCA)
check_c_compiler_flag(-Wno-implicit-int-float-conversion HAVE_WNO_IMPLICIT_INT_FLOAT_CONVERSION)
check_c_compiler_flag(-Wno-sign-conversion HAVE_WNO_SIGN_CONVERSION)
check_c_compiler_flag(-Wno-unused-result HAVE_WNO_UNUSED_RESULT)

# in_pktinfo: Find whether this struct exists
check_include_files(
Expand Down