Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7cb7fc8
)
THRIFT-2003: Deprecate senum
author
Carl Yeksigian
<carl@apache.org>
Fri, 7 Jun 2013 16:31:13 +0000
(12:31 -0400)
committer
Carl Yeksigian
<carl@apache.org>
Fri, 7 Jun 2013 16:31:13 +0000
(12:31 -0400)
Patch: Randy Abernethy
compiler/cpp/src/thriftl.ll
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/thriftl.ll
b/compiler/cpp/src/thriftl.ll
index
958bb40
..
0a04840
100644
(file)
--- a/
compiler/cpp/src/thriftl.ll
+++ b/
compiler/cpp/src/thriftl.ll
@@
-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; }