OSDN Git Service

Fix protocol buffer compiler warning
authorjimsun <jimsun@google.com>
Sat, 19 Jan 2019 02:32:27 +0000 (10:32 +0800)
committerjimsun <jimsun@google.com>
Sat, 19 Jan 2019 02:38:47 +0000 (10:38 +0800)
Warning message:
  [ 86% 23128/26768] //hardware/ril/librilutils:librilutils protoc proto/sap-api.proto
  [libprotobuf WARNING external/protobuf/src/google/protobuf/compiler/parser.cc:547]
  No syntax specified for the proto file: hardware/ril/librilutils/proto/sap-api.proto.
  Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version.
  (Defaulted to proto2 syntax.)

Bug: 123039027
Test: build pass withtout warning message printed out
Change-Id: Ie340518a2f4758817bc3402fc897f918a8e89df6

librilutils/proto/sap-api.proto

index 7a3d83b..5d125e4 100644 (file)
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
 option java_package = "org.android.btsap";
 option java_outer_classname = "SapApi";