Skip to content
Snippets Groups Projects
Commit 6fe6f2e0 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Silence libev warnings when compiling with Clang.

parent 70d38684
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,16 @@
#
add_library(ev tarantool_ev.c)
check_c_compiler_flag ("-Wno-unused-result" gcc_has_wno_unused_result)
if (gcc_has_wno_unused_result)
if (CMAKE_COMPILER_IS_GNUCC)
check_c_compiler_flag ("-Wno-unused-result" gcc_has_wno_unused_result)
if (gcc_has_wno_unused_result)
set_source_files_properties(tarantool_ev.c
PROPERTIES COMPILE_FLAGS "-Wno-unused-result")
endif()
elseif (CMAKE_COMPILER_IS_CLANG)
set_source_files_properties(tarantool_ev.c
PROPERTIES COMPILE_FLAGS "-Wno-unused-result")
PROPERTIES COMPILE_FLAGS "-Wno-unused-value -Wno-comment -Wno-bitwise-op-parentheses")
endif()
if (TARGET_OS_LINUX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment