diff --git a/server/core/gateway.cc b/server/core/gateway.cc index 169595442..3a70bc1c8 100644 --- a/server/core/gateway.cc +++ b/server/core/gateway.cc @@ -39,12 +39,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/server/core/maxpasswd.c b/server/core/maxpasswd.c index fcb1bf4e4..b18e58c62 100644 --- a/server/core/maxpasswd.c +++ b/server/core/maxpasswd.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include diff --git a/server/modules/routing/avrorouter/CMakeLists.txt b/server/modules/routing/avrorouter/CMakeLists.txt index 0fe35de54..39c1c6b11 100644 --- a/server/modules/routing/avrorouter/CMakeLists.txt +++ b/server/modules/routing/avrorouter/CMakeLists.txt @@ -6,6 +6,7 @@ if(AVRO_FOUND AND JANSSON_FOUND) set_target_properties(avrorouter PROPERTIES LINK_FLAGS -Wl,-z,defs) target_link_libraries(avrorouter maxscale-common ${JANSSON_LIBRARIES} ${AVRO_LIBRARIES} maxavro sqlite3 lzma) install_module(avrorouter core) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format-overflow -Wno-format-truncation") if (BUILD_TESTS) add_subdirectory(test) diff --git a/server/modules/routing/binlogrouter/CMakeLists.txt b/server/modules/routing/binlogrouter/CMakeLists.txt index a847e9792..99b14e735 100644 --- a/server/modules/routing/binlogrouter/CMakeLists.txt +++ b/server/modules/routing/binlogrouter/CMakeLists.txt @@ -9,6 +9,8 @@ target_link_libraries(maxbinlogcheck maxscale-common ${PCRE_LINK_FLAGS} uuid) install_executable(maxbinlogcheck core) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format-overflow -Wno-format-truncation") + if(BUILD_TESTS) add_subdirectory(test) endif()