diff options
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') |