diff --git a/Source/cmDependsFortranParser.cxx b/Source/cmDependsFortranParser.cxx index 286d684ec..42c9953dc 100644 --- a/Source/cmDependsFortranParser.cxx +++ b/Source/cmDependsFortranParser.cxx @@ -1410,7 +1410,7 @@ yyerrlab: `---------------------------------------------------*/ yyerrorlab: -#if defined(__GNUC__) || defined(__HP_aCC) +#if defined(__GNUC__) || defined(__HP_aCC) || defined(__INTEL_COMPILER) /* 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 44210e024..be04c38fd 100644 --- a/Source/cmDependsFortranParser.y +++ b/Source/cmDependsFortranParser.y @@ -36,6 +36,7 @@ Run bison like this: Modify cmDependsFortranParser.cxx: - remove TABs - add __HP_aCC to the #if test for yyerrorlab warning suppression + - add __INTEL_COMPILER to the #if test for yyerrorlab warning suppression */