summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-02 22:05:38 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-02 22:05:38 (GMT)
commita9af1c23efa81fd6386904c61386bb45e380348c (patch)
tree8166cc0ba35621ce6af3f47a036ba3223eb395a8
parent35ec09480a32a98e4dda725a0fd1b7ba1e8b0b17 (diff)
downloadCMake-a9af1c23efa81fd6386904c61386bb45e380348c.zip
CMake-a9af1c23efa81fd6386904c61386bb45e380348c.tar.gz
CMake-a9af1c23efa81fd6386904c61386bb45e380348c.tar.bz2
COMP: Adding warning work-around for unused case label yyerrorlab on HP compiler.
-rw-r--r--Source/cmDependsFortranParser.cxx2
-rw-r--r--Source/cmDependsFortranParser.y1
-rw-r--r--Source/cmDependsJavaParser.cxx2
-rw-r--r--Source/cmDependsJavaParser.y3
4 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmDependsFortranParser.cxx b/Source/cmDependsFortranParser.cxx
index 3c43c63..286d684 100644
--- a/Source/cmDependsFortranParser.cxx
+++ b/Source/cmDependsFortranParser.cxx
@@ -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)
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index a3f60af..44210e0 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -35,6 +35,7 @@ Run bison like this:
Modify cmDependsFortranParser.cxx:
- remove TABs
+ - add __HP_aCC to the #if test for yyerrorlab warning suppression
*/
diff --git a/Source/cmDependsJavaParser.cxx b/Source/cmDependsJavaParser.cxx
index ac97989..fd4bb2f 100644
--- a/Source/cmDependsJavaParser.cxx
+++ b/Source/cmDependsJavaParser.cxx
@@ -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)
diff --git a/Source/cmDependsJavaParser.y b/Source/cmDependsJavaParser.y
index 5d37d0a..def6f2d 100644
--- a/Source/cmDependsJavaParser.y
+++ b/Source/cmDependsJavaParser.y
@@ -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
*/