THRIFT-3528 Fix warnings in thrift.ll This closes #778
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/1b4ebc39 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/1b4ebc39 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/1b4ebc39 Branch: refs/heads/master Commit: 1b4ebc393d32f954b738e6904d3cc21a84bd1d93 Parents: 051ed3c Author: Nobuaki Sukegawa <[email protected]> Authored: Wed Jan 6 20:30:07 2016 +0900 Committer: Nobuaki Sukegawa <[email protected]> Committed: Mon Jan 11 11:34:20 2016 +0900 ---------------------------------------------------------------------- compiler/cpp/src/thriftl.ll | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/1b4ebc39/compiler/cpp/src/thriftl.ll ---------------------------------------------------------------------- diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll index e3478a6..e3cf3e0 100644 --- a/compiler/cpp/src/thriftl.ll +++ b/compiler/cpp/src/thriftl.ll @@ -268,7 +268,6 @@ literal_begin (['\"]) "print" { thrift_reserved_keyword(yytext); } "private" { thrift_reserved_keyword(yytext); } "protected" { thrift_reserved_keyword(yytext); } -"public" { thrift_reserved_keyword(yytext); } "raise" { thrift_reserved_keyword(yytext); } "redo" { thrift_reserved_keyword(yytext); } "rescue" { thrift_reserved_keyword(yytext); } @@ -287,7 +286,6 @@ literal_begin (['\"]) "transient" { thrift_reserved_keyword(yytext); } "try" { thrift_reserved_keyword(yytext); } "undef" { thrift_reserved_keyword(yytext); } -"union" { thrift_reserved_keyword(yytext); } "unless" { thrift_reserved_keyword(yytext); } "unsigned" { thrift_reserved_keyword(yytext); } "until" { thrift_reserved_keyword(yytext); } @@ -410,12 +408,6 @@ literal_begin (['\"]) unexpected_token(yytext); } - -. { - /* Catch-all to let us catch "*" in the parser. */ - return (int) yytext[0]; -} - %% /* vim: filetype=lex
