diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2017-01-27 15:07:20 -0600 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2017-01-27 15:07:20 -0600 |
commit | 227bdde922e919771e8702fc422461df4f1d317d (patch) | |
tree | 446e5b56d29554d80342e79e475722406a4c3ffb /src/proto/SConscript | |
parent | e4c57275d38c864798cb04a4644bac90a83572fd (diff) | |
download | gem5-227bdde922e919771e8702fc422461df4f1d317d.tar.xz |
proto: Fix warnings for protoc v3
protoc v3 introduces a new syntax for proto files and warns when the
syntax is not explicitly stated.
protoc relies on the fact that undefined preprocessor symbols are
explanded to 0 but since we use -Wundef they end up generating
warnings.
Change-Id: If07abeb54e932469c8f2c4d38634a97fdae40f77
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/proto/SConscript')
-rw-r--r-- | src/proto/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/proto/SConscript b/src/proto/SConscript index ef6bc2aca..665d16493 100644 --- a/src/proto/SConscript +++ b/src/proto/SConscript @@ -1,6 +1,6 @@ # -*- mode:python -*- -# Copyright (c) 2012 ARM Limited +# Copyright (c) 2012,2017 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall @@ -45,3 +45,8 @@ if env['HAVE_PROTOBUF']: ProtoBuf('packet.proto') ProtoBuf('inst.proto') Source('protoio.cc') + + # protoc relies on the fact that undefined preprocessor symbols are + # explanded to 0 but since we use -Wundef they end up generating + # warnings. + env.Append(CCFLAGS='-DPROTOBUF_INLINE_NOT_IN_HEADERS=0') |