diff --git a/src/SConscript b/src/SConscript index d1b2cfcbbe..3ffaeef785 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1027,7 +1027,8 @@ if env['HAVE_PROTOC'] and env['HAVE_PROTOBUF']: Transform("PROTOC"))) # Add the C++ source file - Source(proto.cc_file, tags=proto.tags) + Source(proto.cc_file, tags=proto.tags, + append={'CXXFLAGS': '-Wno-array-bounds'}) elif ProtoBuf.all: error('Got protobuf to build, but lacks support!')