From ff278e28856968dbec3df4f015dc9b9a8bb0a080 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 9 Nov 2018 11:35:37 +0300 Subject: [PATCH] Workaround 'AST broken' syntax error reported by cppcheck in GC_mark_some Cppcheck does not support GNU-specific "&&label" syntax currently. * mark.c [WRAP_MARK_SOME && (MSWIN32 || MSWINCE) && __GNUC__ && !GC_GNUC_PREREQ(4,7) && !GC_CLANG_PREREQ(3,3)] (GC_mark_some): Skip "er.alt_path=&&handle_ex" statement if CPPCHECK. --- mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark.c b/mark.c index 0ee0a575..12d927fe 100644 --- a/mark.c +++ b/mark.c @@ -526,7 +526,7 @@ static void alloc_mark_stack(size_t); # endif er.alt_path = &&handle_ex; # pragma GCC diagnostic pop -# else /* pragma diagnostic is not supported */ +# elif !defined(CPPCHECK) /* pragma diagnostic is not supported */ er.alt_path = &&handle_ex; # endif er.ex_reg.handler = mark_ex_handler; -- 2.40.0