From 57e54c46bc724c54323022fb18ec11c3f1e73162 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 6 Aug 2015 22:50:36 -0400 Subject: [PATCH] Specify syntax = "proto2" to silence warning with protobuf 3 [libprotobuf WARNING google/protobuf/compiler/parser.cc:491] No syntax specified for the proto file. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) The release notes say a future release will turn this warning into an error. Signed-off-by: Anders Kaseorg --- src/protobufs/hostinput.proto | 2 ++ src/protobufs/transportinstruction.proto | 2 ++ src/protobufs/userinput.proto | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/protobufs/hostinput.proto b/src/protobufs/hostinput.proto index 4258d75..02350f8 100644 --- a/src/protobufs/hostinput.proto +++ b/src/protobufs/hostinput.proto @@ -1,3 +1,5 @@ +syntax = "proto2"; + option optimize_for = LITE_RUNTIME; package HostBuffers; diff --git a/src/protobufs/transportinstruction.proto b/src/protobufs/transportinstruction.proto index d4a76f7..b08e7b0 100644 --- a/src/protobufs/transportinstruction.proto +++ b/src/protobufs/transportinstruction.proto @@ -1,3 +1,5 @@ +syntax = "proto2"; + option optimize_for = LITE_RUNTIME; package TransportBuffers; diff --git a/src/protobufs/userinput.proto b/src/protobufs/userinput.proto index 32bceca..5d3a58f 100644 --- a/src/protobufs/userinput.proto +++ b/src/protobufs/userinput.proto @@ -1,3 +1,5 @@ +syntax = "proto2"; + option optimize_for = LITE_RUNTIME; package ClientBuffers;