summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmFortranParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-06 19:59:36 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-06 20:02:03 (GMT)
commit2646d5dfcfc4c2dd8a0824de2db5c6888476fcec (patch)
tree09dfa29926d8ae00e362b3da4760dc45ac22ae34 /Source/LexerParser/cmFortranParser.y
parent8add899c030bf5c4c946df04f70b77716b86cf31 (diff)
downloadCMake-2646d5dfcfc4c2dd8a0824de2db5c6888476fcec.zip
CMake-2646d5dfcfc4c2dd8a0824de2db5c6888476fcec.tar.gz
CMake-2646d5dfcfc4c2dd8a0824de2db5c6888476fcec.tar.bz2
LexerParser: Suppress clang -Wunused-but-set-variable warnings
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. */