summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmFortranParser.y
diff options
context:
space:
mode:
Diffstat (limited to 'Source/LexerParser/cmFortranParser.y')
-rw-r--r--Source/LexerParser/cmFortranParser.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/LexerParser/cmFortranParser.y b/Source/LexerParser/cmFortranParser.y
index 8ef1903..07ca630 100644
--- a/Source/LexerParser/cmFortranParser.y
+++ b/Source/LexerParser/cmFortranParser.y
@@ -57,6 +57,11 @@ static void cmFortran_yyerror(yyscan_t yyscanner, const char* message)
# pragma GCC diagnostic ignored "-Wconversion"
# pragma GCC diagnostic ignored "-Wfree-nonheap-object"
#endif
+#if defined(__clang__) && defined(__has_warning)
+# if __has_warning("-Wunused-but-set-variable")
+# pragma clang diagnostic ignored "-Wunused-but-set-variable"
+# endif
+#endif
%}
/* Generate a reentrant parser object. */