summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardLexer.h
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/cmStandardLexer.h
parentcefda16d357b6d75ffb70fd9036ca62da87432d7 (diff)
downloadCMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.zip
CMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.tar.gz
CMake-16275c7f82180b2c6f207d2dc9a6f4187ae2e486.tar.bz2
LexerParser: Suppress NVHPC warnings in generated code
Diffstat (limited to 'Source/cmStandardLexer.h')
-rw-r--r--Source/cmStandardLexer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h
index b871f5f..417f14d 100644
--- a/Source/cmStandardLexer.h
+++ b/Source/cmStandardLexer.h
@@ -50,6 +50,11 @@
# endif
#endif
+#if defined(__NVCOMPILER)
+# pragma diag_suppress 111 /* statement is unreachable */
+# pragma diag_suppress 550 /* variable set but never used */
+#endif
+
/* Make sure isatty is available. */
#if defined(_WIN32) && !defined(__CYGWIN__)
# include <io.h>