Explorar o código

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

Brad King %!s(int64=21) %!d(string=hai) anos
pai
achega
a9af1c23ef

+ 1 - 1
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)

+ 1 - 0
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
 
 */
 

+ 1 - 1
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)

+ 2 - 1
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
 
 */