From 9a2dbdc1f1a73a419c3e174756814b8c79963c68 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 24 Sep 2007 11:16:13 -0400 Subject: COMP: fix warnings on hp --- Source/cmCommandArgumentLexer.cxx | 1 + Source/cmDependsJavaLexer.cxx | 1 + Source/cmExprLexer.cxx | 1 + 3 files changed, 3 insertions(+) diff --git a/Source/cmCommandArgumentLexer.cxx b/Source/cmCommandArgumentLexer.cxx index 4881171..d58d125 100644 --- a/Source/cmCommandArgumentLexer.cxx +++ b/Source/cmCommandArgumentLexer.cxx @@ -1046,6 +1046,7 @@ case YY_STATE_EOF(NOESCAPES): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ +return 0; /* this should not happend but it should silence a warning */ } /* end of cmCommandArgument_yylex */ /* yy_get_next_buffer - try to read in a new buffer diff --git a/Source/cmDependsJavaLexer.cxx b/Source/cmDependsJavaLexer.cxx index a168a7d..3af688a 100644 --- a/Source/cmDependsJavaLexer.cxx +++ b/Source/cmDependsJavaLexer.cxx @@ -1596,6 +1596,7 @@ case YY_STATE_EOF(string): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ +return 0; /* this should not happen but it silences a warning*/ } /* end of cmDependsJava_yylex */ /* yy_get_next_buffer - try to read in a new buffer diff --git a/Source/cmExprLexer.cxx b/Source/cmExprLexer.cxx index 6183804..a53b5c9 100644 --- a/Source/cmExprLexer.cxx +++ b/Source/cmExprLexer.cxx @@ -981,6 +981,7 @@ case YY_STATE_EOF(INITIAL): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ +return 0; /* this should not happen but it silences a warning*/ } /* end of cmExpr_yylex */ /* yy_get_next_buffer - try to read in a new buffer -- cgit v0.12