From bb4613629b53f91164a0d63d6676edaf70f26cd0 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 2 Apr 2009 19:23:59 +0000 Subject: [PATCH] THRIFT-420. Warn on implicit (negative) structure field ids git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761391 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/thrifty.yy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy index 1848efd8..c0505905 100644 --- a/compiler/cpp/src/thrifty.yy +++ b/compiler/cpp/src/thrifty.yy @@ -847,7 +847,7 @@ Field: { pdebug("tok_int_constant : Field -> FieldType tok_identifier"); if ($2 < 0) { - pwarning(2, "No field key specified for %s, resulting protocol may have conflicts or not be backwards compatible!\n", $5); + pwarning(1, "No field key specified for %s, resulting protocol may have conflicts or not be backwards compatible!\n", $5); } $$ = new t_field($4, $5, $2); $$->set_req($3); -- 2.17.1