Skip to content

Commit 9ccdf72

Browse files
committed
build: disable warnings reported by GCC 9.1.0
Before this commit a debug build fails due to -Werror for me on GCC 9.1.0. Part of #49.
1 parent a77e840 commit 9ccdf72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

memcached/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E touch_nocreate
1717
# ${CMAKE_SOURCE_DIR}/memcached/internal/proto_txt_parser.c
1818
# PROPERTIES HEADER_FILE_ONLY true)
1919

20+
# Disable certain compiler warnings.
21+
set_source_files_properties(
22+
${CMAKE_SOURCE_DIR}/memcached/internal/proto_txt_parser.c
23+
PROPERTIES COMPILE_FLAGS -Wno-implicit-fallthrough)
24+
set_source_files_properties(
25+
${CMAKE_SOURCE_DIR}/memcached/internal/mc_sasl.c
26+
PROPERTIES COMPILE_FLAGS -Wno-cast-function-type)
2027

2128
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated")
2229
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")

0 commit comments

Comments
 (0)