diff options
author | Brad King <brad.king@kitware.com> | 2018-07-31 13:02:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-07-31 13:34:55 (GMT) |
commit | 34257b0dd4b035b1e237b76e8b11b82f8015a3c7 (patch) | |
tree | 729ca6bb4f6500e9f3d02be5a3a7154fce849cfe /Source/LexerParser/cmCommandArgumentParser.y | |
parent | cfa6b14f9c7add4a0ab39074d1c37ae300b7fe29 (diff) | |
download | CMake-34257b0dd4b035b1e237b76e8b11b82f8015a3c7.zip CMake-34257b0dd4b035b1e237b76e8b11b82f8015a3c7.tar.gz CMake-34257b0dd4b035b1e237b76e8b11b82f8015a3c7.tar.bz2 |
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/cmCommandArgumentParser.y')
-rw-r--r-- | Source/LexerParser/cmCommandArgumentParser.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/LexerParser/cmCommandArgumentParser.y b/Source/LexerParser/cmCommandArgumentParser.y index 55a88df..0c6aad5 100644 --- a/Source/LexerParser/cmCommandArgumentParser.y +++ b/Source/LexerParser/cmCommandArgumentParser.y @@ -55,6 +55,9 @@ static void cmCommandArgument_yyerror(yyscan_t yyscanner, const char* message); # pragma warning (disable: 4244) /* loss of precision */ # pragma warning (disable: 4702) /* unreachable code */ #endif +#if defined(__GNUC__) && __GNUC__ >= 8 +# pragma GCC diagnostic ignored "-Wconversion" +#endif %} /* Generate a reentrant parser object. */ |