summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmExprParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-27 14:02:30 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-28 14:09:35 (GMT)
commit16275c7f82180b2c6f207d2dc9a6f4187ae2e486 (patch)
tree0e292a50217f32c1fc04c983663949f4ec7161f9 /Source/LexerParser/cmExprParser.y
parentcefda16d357b6d75ffb70fd9036ca62da87432d7 (diff)
downloadCMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.zip
CMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.tar.gz
CMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.tar.bz2
LexerParser: Suppress NVHPC warnings in generated code
Diffstat (limited to 'Source/LexerParser/cmExprParser.y')
-rw-r--r--Source/LexerParser/cmExprParser.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/LexerParser/cmExprParser.y b/Source/LexerParser/cmExprParser.y
index b49f482..fda2395 100644
--- a/Source/LexerParser/cmExprParser.y
+++ b/Source/LexerParser/cmExprParser.y
@@ -44,6 +44,10 @@ static void cmExpr_yyerror(yyscan_t yyscanner, const char* message);
# pragma clang diagnostic ignored "-Wused-but-marked-unused"
# endif
#endif
+
+#if defined(__NVCOMPILER)
+# pragma diag_suppress 550 /* variable set but never used */
+#endif
%}
/* Generate a reentrant parser object. */