mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix warnings in poco net
This commit is contained in:
parent
3a339f8b02
commit
b0f2c98940
@ -1,6 +1,3 @@
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
||||
|
||||
file (GLOB SRCS src/*.cpp)
|
||||
|
||||
add_library (_poco_net ${SRCS})
|
||||
@ -12,17 +9,31 @@ elseif (OS_DARWIN OR OS_FREEBSD)
|
||||
target_compile_definitions (_poco_net PUBLIC POCO_HAVE_FD_POLL)
|
||||
endif ()
|
||||
|
||||
# TODO: remove these warning exclusions
|
||||
target_compile_options (_poco_net
|
||||
PRIVATE
|
||||
-Wno-atomic-implicit-seq-cst
|
||||
-Wno-extra-semi-stmt
|
||||
-Wno-extra-semi
|
||||
)
|
||||
|
||||
target_compile_options (_poco_net
|
||||
PRIVATE
|
||||
-Wno-cast-align
|
||||
-Wno-cast-qual
|
||||
-Wno-comma
|
||||
-Wno-covered-switch-default
|
||||
-Wno-deprecated
|
||||
-Wno-extra-semi
|
||||
-Wno-extra-semi-stmt
|
||||
-Wno-missing-noreturn
|
||||
-Wno-old-style-cast
|
||||
-Wno-shadow
|
||||
-Wno-shorten-64-to-32
|
||||
-Wno-sign-compare
|
||||
-Wno-suggest-destructor-override
|
||||
-Wno-suggest-override
|
||||
-Wno-undef
|
||||
-Wno-unreachable-code
|
||||
-Wno-unreachable-code-return
|
||||
-Wno-unused-macros
|
||||
-Wno-unused-parameter
|
||||
-Wno-zero-as-null-pointer-constant
|
||||
)
|
||||
|
||||
target_include_directories (_poco_net SYSTEM PUBLIC "include")
|
||||
target_link_libraries (_poco_net PUBLIC Poco::Foundation)
|
||||
|
Loading…
Reference in New Issue
Block a user