summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-14 01:01:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-14 01:01:25 +0900
commite4b01da97ea28ad1c13f848c55c73dc1cc080760 (patch)
tree5f631219d3119999d87f52d09e23c9626cd1ab9d /src/parse.y
parent774703c5d786519052d096449d544081443c511d (diff)
parent61032c5ab03ee9d71875b8cb63c7cd5702d56ff7 (diff)
downloadmruby-e4b01da97ea28ad1c13f848c55c73dc1cc080760.tar.gz
mruby-e4b01da97ea28ad1c13f848c55c73dc1cc080760.zip
Merge pull request #2393 from goyox86/fix-clang-analizer-warnings
Fix clang analizer warnings
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parse.y b/src/parse.y
index 9841351ea..e88437602 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4243,7 +4243,6 @@ parser_yylex(parser_state *p)
return '=';
case '<':
- last_state = p->lstate;
c = nextc(p);
if (c == '<' &&
p->lstate != EXPR_DOT &&
@@ -4374,7 +4373,7 @@ parser_yylex(parser_state *p)
p->lstate = EXPR_VALUE;
return '?';
}
- token_column = newtok(p);
+ newtok(p);
/* need support UTF-8 if configured */
if ((isalnum(c) || c == '_')) {
int c2 = nextc(p);
@@ -4538,7 +4537,7 @@ parser_yylex(parser_state *p)
is_float = seen_point = seen_e = nondigit = 0;
p->lstate = EXPR_END;
- token_column = newtok(p);
+ newtok(p);
if (c == '-' || c == '+') {
tokadd(p, c);
c = nextc(p);
@@ -5160,7 +5159,6 @@ parser_yylex(parser_state *p)
{
int result = 0;
- last_state = p->lstate;
switch (tok(p)[0]) {
case '$':
p->lstate = EXPR_END;