THRIFT-2003: Deprecate senum
authorCarl Yeksigian <carl@apache.org>
Fri, 7 Jun 2013 16:31:13 +0000 (12:31 -0400)
committerCarl Yeksigian <carl@apache.org>
Fri, 7 Jun 2013 16:31:13 +0000 (12:31 -0400)
Patch: Randy Abernethy

compiler/cpp/src/thriftl.ll

index 958bb40..0a04840 100644 (file)
@@ -147,7 +147,10 @@ literal_begin (['\"])
   pwarning(0, "\"slist\" is deprecated and will be removed in a future compiler version.  This type should be replaced with \"string\".\n");
   return tok_slist;
 }
-"senum"              { return tok_senum;                }
+"senum" {
+  pwarning(0, "\"senum\" is deprecated and will be removed in a future compiler version.  This type should be replaced with \"string\".\n");
+  return tok_senum;
+}
 "map"                { return tok_map;                  }
 "list"               { return tok_list;                 }
 "set"                { return tok_set;                  }