From: David Reiss Date: Thu, 2 Apr 2009 19:23:59 +0000 (+0000) Subject: THRIFT-420. Warn on implicit (negative) structure field ids X-Git-Tag: 0.2.0~172 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=bb4613629b53f91164a0d63d6676edaf70f26cd0;p=common%2Fthrift.git 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 --- 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);