From 46a934ae4480e1613bbe2dfb70117bd986a02c77 Mon Sep 17 00:00:00 2001 From: vczh Date: Mon, 10 Apr 2023 01:07:05 -0700 Subject: [PATCH] Update VlppGlrParser.cpp --- Import/VlppGlrParser.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() {