diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-23 13:15:25 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-23 13:15:25 +0200 |
commit | bd0552e982673ba180fac11c7b3d06bb0fa7cc68 (patch) | |
tree | fe093b294f7d30aa374067ed4bf4a6d44294fd72 /storageapi | |
parent | 47e665c14670b193fafab3ec47e5e6ed3e13bf5e (diff) |
Suppress array bounds warning when compiling generated protobuf code.
Diffstat (limited to 'storageapi')
-rw-r--r-- | storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt b/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt index cff34afa00c..113a4372068 100644 --- a/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt +++ b/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt @@ -9,8 +9,8 @@ PROTOBUF_GENERATE_CPP(storageapi_PROTOBUF_SRCS storageapi_PROTOBUF_HDRS # protoc-generated files emit compiler warnings that we normally treat as errors. # Instead of rolling our own compiler plugin we'll pragmatically disable the noise. -if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set_source_files_properties(${storageapi_PROTOBUF_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-suggest-override -Wno-inline") +if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") + set_source_files_properties(${storageapi_PROTOBUF_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-array-bounds -Wno-suggest-override -Wno-inline") endif() # protoc explicitly annotates methods with inline, which triggers -Werror=inline when # the header file grows over a certain size. |