diff --git a/Import/VlppGlrParser.cpp b/Import/VlppGlrParser.cpp index a043375c..a181e376 100644 --- a/Import/VlppGlrParser.cpp +++ b/Import/VlppGlrParser.cpp @@ -1178,6 +1178,13 @@ namespace vl ErrorArgs ***********************************************************************/ +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnull-dereference" +#elif defined (__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnull-dereference" +#endif ErrorArgs ErrorArgs::UnrecognizedToken(const regex::RegexToken& token) { return { @@ -1233,6 +1240,11 @@ ErrorArgs ast }; } +#if defined (__clang__) +#pragma clang diagnostic pop +#elif defined (__GNUC__) +#pragma GCC diagnostic pop +#endif ParsingError ErrorArgs::ToParsingError() {