Summary:proto: Fix warnings for protoc v3
Changeset 11793:9e7dc6807c35 --------------------------- 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.
This commit is contained in:
parent
3370059668
commit
8056b73511
4 changed files with 14 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
# -*- mode:python -*-
|
# -*- mode:python -*-
|
||||||
|
|
||||||
# Copyright (c) 2012 ARM Limited
|
# Copyright (c) 2012,2017 ARM Limited
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# The license below extends only to copyright in the software and shall
|
# The license below extends only to copyright in the software and shall
|
||||||
|
@ -45,3 +45,8 @@ if env['HAVE_PROTOBUF']:
|
||||||
ProtoBuf('packet.proto')
|
ProtoBuf('packet.proto')
|
||||||
ProtoBuf('inst.proto')
|
ProtoBuf('inst.proto')
|
||||||
Source('protoio.cc')
|
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')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2014 ARM Limited
|
// Copyright (c) 2014,2017 ARM Limited
|
||||||
// All rights reserved
|
// All rights reserved
|
||||||
//
|
//
|
||||||
// The license below extends only to copyright in the software and shall
|
// The license below extends only to copyright in the software and shall
|
||||||
|
@ -35,6 +35,7 @@
|
||||||
//
|
//
|
||||||
// Authors: Ali Saidi
|
// Authors: Ali Saidi
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
// Put all the generated messages in a namespace
|
// Put all the generated messages in a namespace
|
||||||
package ProtoMessage;
|
package ProtoMessage;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2013 ARM Limited
|
// Copyright (c) 2013,2017 ARM Limited
|
||||||
// All rights reserved
|
// All rights reserved
|
||||||
//
|
//
|
||||||
// The license below extends only to copyright in the software and shall
|
// The license below extends only to copyright in the software and shall
|
||||||
|
@ -35,6 +35,8 @@
|
||||||
//
|
//
|
||||||
// Authors: Radhika Jagtap
|
// Authors: Radhika Jagtap
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
// Put all the generated messages in a namespace
|
// Put all the generated messages in a namespace
|
||||||
package ProtoMessage;
|
package ProtoMessage;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2012-2013 ARM Limited
|
// Copyright (c) 2012-2013,2017 ARM Limited
|
||||||
// All rights reserved
|
// All rights reserved
|
||||||
//
|
//
|
||||||
// The license below extends only to copyright in the software and shall
|
// The license below extends only to copyright in the software and shall
|
||||||
|
@ -35,6 +35,8 @@
|
||||||
//
|
//
|
||||||
// Authors: Andreas Hansson
|
// Authors: Andreas Hansson
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
// Put all the generated messages in a namespace
|
// Put all the generated messages in a namespace
|
||||||
package ProtoMessage;
|
package ProtoMessage;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue