summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-09 14:16:40 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-09 14:16:40 (GMT)
commitcf42225c0b76b3dfa545caeda99675184e840f55 (patch)
tree14598e47e112382ea75e92ccca21545131bc6137 /Source/cmListFileLexer.c
parentc85e16450ddf1424457d6208dfd3459724b60035 (diff)
downloadCMake-cf42225c0b76b3dfa545caeda99675184e840f55.zip
CMake-cf42225c0b76b3dfa545caeda99675184e840f55.tar.gz
CMake-cf42225c0b76b3dfa545caeda99675184e840f55.tar.bz2
ERR: Removed YY_BREAK statements after return statements because they are unreachable.
Diffstat (limited to 'Source/cmListFileLexer.c')
-rw-r--r--Source/cmListFileLexer.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmListFileLexer.c b/Source/cmListFileLexer.c
index 82f190b..fe74bd2 100644
--- a/Source/cmListFileLexer.c
+++ b/Source/cmListFileLexer.c
@@ -492,6 +492,7 @@ Modify cmListFileLexer.c:
- remove the yyunput function
- add a statement "(void)yyscanner;" to the top of these methods:
yy_fatal_error, yyalloc, yyrealloc, yyfree
+ - remove all YY_BREAK lines occurring right after return statements
*/
@@ -860,7 +861,6 @@ YY_RULE_SETUP
lexer->column = 1;
return 1;
}
- YY_BREAK
case 2:
YY_RULE_SETUP
#line 93 "cmListFileLexer.in.l"
@@ -877,7 +877,6 @@ YY_RULE_SETUP
lexer->column += yyleng;
return 1;
}
- YY_BREAK
case 4:
YY_RULE_SETUP
#line 104 "cmListFileLexer.in.l"
@@ -887,7 +886,6 @@ YY_RULE_SETUP
lexer->column += yyleng;
return 1;
}
- YY_BREAK
case 5:
YY_RULE_SETUP
#line 111 "cmListFileLexer.in.l"
@@ -897,7 +895,6 @@ YY_RULE_SETUP
lexer->column += yyleng;
return 1;
}
- YY_BREAK
case 6:
YY_RULE_SETUP
#line 118 "cmListFileLexer.in.l"
@@ -907,7 +904,6 @@ YY_RULE_SETUP
lexer->column += yyleng;
return 1;
}
- YY_BREAK
case 7:
YY_RULE_SETUP
#line 125 "cmListFileLexer.in.l"
@@ -945,7 +941,6 @@ YY_RULE_SETUP
BEGIN(INITIAL);
return 1;
}
- YY_BREAK
case 11:
YY_RULE_SETUP
#line 149 "cmListFileLexer.in.l"
@@ -970,7 +965,6 @@ YY_RULE_SETUP
lexer->column += yyleng;
return 1;
}
- YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(STRING):
#line 165 "cmListFileLexer.in.l"
@@ -979,7 +973,6 @@ case YY_STATE_EOF(STRING):
cmListFileLexerSetToken(lexer, 0, 0);
return 0;
}
- YY_BREAK
case 14:
YY_RULE_SETUP
#line 171 "cmListFileLexer.in.l"