summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-08-23 13:15:25 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-08-23 13:15:25 +0200
commitbd0552e982673ba180fac11c7b3d06bb0fa7cc68 (patch)
treefe093b294f7d30aa374067ed4bf4a6d44294fd72 /searchlib
parent47e665c14670b193fafab3ec47e5e6ed3e13bf5e (diff)
Suppress array bounds warning when compiling generated protobuf code.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/engine/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/engine/CMakeLists.txt b/searchlib/src/vespa/searchlib/engine/CMakeLists.txt
index e0c8e3113a4..0dc183289c0 100644
--- a/searchlib/src/vespa/searchlib/engine/CMakeLists.txt
+++ b/searchlib/src/vespa/searchlib/engine/CMakeLists.txt
@@ -4,9 +4,9 @@ find_package(Protobuf REQUIRED)
protobuf_generate_cpp(searchlib_engine_PROTOBUF_SRCS searchlib_engine_PROTOBUF_HDRS ../../../../src/protobuf/search_protocol.proto)
# protoc-generated files emit compiler warnings that we normally treat as errors.
-if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
set_source_files_properties(${searchlib_engine_PROTOBUF_SRCS}
- PROPERTIES COMPILE_FLAGS "-Wno-suggest-override")
+ PROPERTIES COMPILE_FLAGS "-Wno-array-bounds -Wno-suggest-override")
endif()
vespa_add_library(searchlib_engine OBJECT