Are you are using a v3 protoc compiler? Looks like the "syntax" keyword was introduced in https://github.com/google/protobuf/releases/tag/v3.0.0-alpha-2. Not sure if v2 protoc compilers recognize that keyword.
On Mon, Jun 13, 2016 at 5:42 PM, Zhitao Li <[email protected]> wrote: > Hi, > > We are experimenting with HTTP API and tried to compile Mesos's .proto > files with our repo (with make commands like "protoc --proto_path=protobuf > --go_out=.gen protobuf/mesos/v1/scheduler/scheduler.proto", but we see > warnings like > > ``` > [libprotobuf WARNING google/protobuf/compiler/parser.cc:547] No syntax > specified for the proto file: mesos/v1/scheduler/scheduler.proto. > Please use 'syntax > = "proto2";' or 'syntax = "proto3";' to specify a syntax version. > (Defaulted > to proto2 syntax.) > ``` > > Should we have proper `syntax` clauses in various .proto files? If not, > what's the reason? > > Thanks. > > -- > Cheers, > > Zhitao Li >
