COMP: Adding warning work-around for unused case label yyerrorlab on HP compiler.
This commit is contained in:
parent
35ec09480a
commit
a9af1c23ef
|
@ -1410,7 +1410,7 @@ yyerrlab:
|
|||
`---------------------------------------------------*/
|
||||
yyerrorlab:
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__HP_aCC)
|
||||
/* Pacify GCC when the user code never invokes YYERROR and the label
|
||||
yyerrorlab therefore never appears in user code. */
|
||||
if (0)
|
||||
|
|
|
@ -35,6 +35,7 @@ Run bison like this:
|
|||
|
||||
Modify cmDependsFortranParser.cxx:
|
||||
- remove TABs
|
||||
- add __HP_aCC to the #if test for yyerrorlab warning suppression
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -5912,7 +5912,7 @@ yyerrlab:
|
|||
`---------------------------------------------------*/
|
||||
yyerrorlab:
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__HP_aCC)
|
||||
/* Pacify GCC when the user code never invokes YYERROR and the label
|
||||
yyerrorlab therefore never appears in user code. */
|
||||
if (0)
|
||||
|
|
|
@ -23,8 +23,9 @@ Run bison like this:
|
|||
|
||||
bison --yacc --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y
|
||||
|
||||
Modify cmDependsJavaParser.c:
|
||||
Modify cmDependsJavaParser.cxx:
|
||||
- remove TABs
|
||||
- add __HP_aCC to the #if test for yyerrorlab warning suppression
|
||||
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue