COMP: Adding warning work-around for unused case label yyerrorlab on HP compiler.

This commit is contained in:
Brad King 2005-02-02 17:05:38 -05:00
parent 35ec09480a
commit a9af1c23ef
4 changed files with 5 additions and 3 deletions

View File

@ -1410,7 +1410,7 @@ yyerrlab:
`---------------------------------------------------*/ `---------------------------------------------------*/
yyerrorlab: yyerrorlab:
#ifdef __GNUC__ #if defined(__GNUC__) || defined(__HP_aCC)
/* Pacify GCC when the user code never invokes YYERROR and the label /* Pacify GCC when the user code never invokes YYERROR and the label
yyerrorlab therefore never appears in user code. */ yyerrorlab therefore never appears in user code. */
if (0) if (0)

View File

@ -35,6 +35,7 @@ Run bison like this:
Modify cmDependsFortranParser.cxx: Modify cmDependsFortranParser.cxx:
- remove TABs - remove TABs
- add __HP_aCC to the #if test for yyerrorlab warning suppression
*/ */

View File

@ -5912,7 +5912,7 @@ yyerrlab:
`---------------------------------------------------*/ `---------------------------------------------------*/
yyerrorlab: yyerrorlab:
#ifdef __GNUC__ #if defined(__GNUC__) || defined(__HP_aCC)
/* Pacify GCC when the user code never invokes YYERROR and the label /* Pacify GCC when the user code never invokes YYERROR and the label
yyerrorlab therefore never appears in user code. */ yyerrorlab therefore never appears in user code. */
if (0) if (0)

View File

@ -23,8 +23,9 @@ Run bison like this:
bison --yacc --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y bison --yacc --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y
Modify cmDependsJavaParser.c: Modify cmDependsJavaParser.cxx:
- remove TABs - remove TABs
- add __HP_aCC to the #if test for yyerrorlab warning suppression
*/ */