THRIFT-2003: Deprecate senum
Patch: Randy Abernethy
diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll
index 958bb40..0a04840 100644
--- a/compiler/cpp/src/thriftl.ll
+++ b/compiler/cpp/src/thriftl.ll
@@ -147,7 +147,10 @@
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; }