aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regression
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-20 14:12:19 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-20 14:29:39 +0300
commitb03be4fa4d863e6beb362cfef6d834d14c96b7e1 (patch)
tree31bdb84f1be4ce5104d4a67d3e5c321f12639b83 /tests/regression
parent6e72df4808aa138f1396ad098ce2d06a6feba882 (diff)
Add syntax specification to .proto files (issue #167)
Eliminates a warning on protoc 3.0.
Diffstat (limited to 'tests/regression')
-rw-r--r--tests/regression/issue_118/enumdef.proto2
-rw-r--r--tests/regression/issue_118/enumuse.proto2
-rw-r--r--tests/regression/issue_125/extensionbug.proto2
-rw-r--r--tests/regression/issue_141/testproto.proto2
-rw-r--r--tests/regression/issue_145/comments.proto2
-rw-r--r--tests/regression/issue_166/enums.proto2
6 files changed, 12 insertions, 0 deletions
diff --git a/tests/regression/issue_118/enumdef.proto b/tests/regression/issue_118/enumdef.proto
index 830d2988..46845bc9 100644
--- a/tests/regression/issue_118/enumdef.proto
+++ b/tests/regression/issue_118/enumdef.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
import 'nanopb.proto';
enum MyEnum {
diff --git a/tests/regression/issue_118/enumuse.proto b/tests/regression/issue_118/enumuse.proto
index d778fb8f..4afc4521 100644
--- a/tests/regression/issue_118/enumuse.proto
+++ b/tests/regression/issue_118/enumuse.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
import 'enumdef.proto';
message MyMessage {
diff --git a/tests/regression/issue_125/extensionbug.proto b/tests/regression/issue_125/extensionbug.proto
index c4ac6860..fd1e74f1 100644
--- a/tests/regression/issue_125/extensionbug.proto
+++ b/tests/regression/issue_125/extensionbug.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
message Message1
{
optional uint32 fieldA = 1;
diff --git a/tests/regression/issue_141/testproto.proto b/tests/regression/issue_141/testproto.proto
index 21598b45..a445c68a 100644
--- a/tests/regression/issue_141/testproto.proto
+++ b/tests/regression/issue_141/testproto.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
import 'nanopb.proto';
message SubMessage
diff --git a/tests/regression/issue_145/comments.proto b/tests/regression/issue_145/comments.proto
index 4e86b302..621779f5 100644
--- a/tests/regression/issue_145/comments.proto
+++ b/tests/regression/issue_145/comments.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
message DummyMessage {
required string foo = 1;
required string bar = 2;
diff --git a/tests/regression/issue_166/enums.proto b/tests/regression/issue_166/enums.proto
index a0964ab4..36948044 100644
--- a/tests/regression/issue_166/enums.proto
+++ b/tests/regression/issue_166/enums.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
enum SignedEnum {
SE_MIN = -1;
SE_MAX = 255;