summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2020-01-29 23:47:03 -0800
committerGabe Black <gabeblack@google.com>2020-02-01 09:25:15 +0000
commitdc262055294c77da0be848c28459e581d82f9bd5 (patch)
tree51b685f1e746f55ccd870f22c60ead8db41719bf
parent017ffc268ae050e387cb71d7a4ee6eff85cca102 (diff)
downloadgem5-dc262055294c77da0be848c28459e581d82f9bd5.tar.xz
scons: Disable spurious "array-bounds" warnings for protobuf cc files.
These files are generated and so, even if they're wrong, there isn't anything we can do about it. Change-Id: I933057a04f09dd1c22b525a102278bbdc5fbc22b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24924 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--src/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript
index d1b2cfcbb..3ffaeef78 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!')