summaryrefslogtreecommitdiff
path: root/Source/LexerParser/cmFortranParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-31 09:02:56 -0400
committerBrad King <brad.king@kitware.com>2018-07-31 09:34:55 -0400
commit34257b0dd4b035b1e237b76e8b11b82f8015a3c7 (patch)
tree729ca6bb4f6500e9f3d02be5a3a7154fce849cfe /Source/LexerParser/cmFortranParser.y
parentcfa6b14f9c7add4a0ab39074d1c37ae300b7fe29 (diff)
downloadcmake-34257b0dd4b035b1e237b76e8b11b82f8015a3c7.tar.gz
LexerParser: Suppress GCC -Wconversion warnings
GCC 8 warns about some of the conversions in bison-generated code. Suppress the warnings.
Diffstat (limited to 'Source/LexerParser/cmFortranParser.y')
-rw-r--r--Source/LexerParser/cmFortranParser.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/LexerParser/cmFortranParser.y b/Source/LexerParser/cmFortranParser.y
index 5e0924872f..87f3e0a16e 100644
--- a/Source/LexerParser/cmFortranParser.y
+++ b/Source/LexerParser/cmFortranParser.y
@@ -56,6 +56,9 @@ static void cmFortran_yyerror(yyscan_t yyscanner, const char* message)
# pragma warning (disable: 4127) /* Conditional expression is constant. */
# pragma warning (disable: 4244) /* Conversion to smaller type, data loss. */
#endif
+#if defined(__GNUC__) && __GNUC__ >= 8
+# pragma GCC diagnostic ignored "-Wconversion"
+#endif
%}
/* Generate a reentrant parser object. */