THRIFT-420. Warn on implicit (negative) structure field ids
authorDavid Reiss <dreiss@apache.org>
Thu, 2 Apr 2009 19:23:59 +0000 (19:23 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 2 Apr 2009 19:23:59 +0000 (19:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761391 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/thrifty.yy

index 1848efd..c050590 100644 (file)
@@ -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);