Author: dreiss
Date: Thu Apr  2 19:23:59 2009
New Revision: 761391

URL: http://svn.apache.org/viewvc?rev=761391&view=rev
Log:
THRIFT-420. Warn on implicit (negative) structure field ids

Modified:
    incubator/thrift/trunk/compiler/cpp/src/thrifty.yy

Modified: incubator/thrift/trunk/compiler/cpp/src/thrifty.yy
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/thrifty.yy?rev=761391&r1=761390&r2=761391&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/thrifty.yy (original)
+++ incubator/thrift/trunk/compiler/cpp/src/thrifty.yy Thu Apr  2 19:23:59 2009
@@ -847,7 +847,7 @@
     {
       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);


Reply via email to