From: Ivan Maidanski Date: Fri, 4 Mar 2016 21:47:07 +0000 (+0300) Subject: Revert "Prevent code analysis tool warning about GC_base unchecked result" X-Git-Tag: gc7_6_0~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdad4f4a9a5ed011f58f48b830becef5e55119ed;p=gc Revert "Prevent code analysis tool warning about GC_base unchecked result" (It breaks gctest if assertion is on.) This reverts commit 70fbfadd3842c828ae9dd10ef3212a2d0957ca86. --- diff --git a/mark.c b/mark.c index 5a233884..de57bec1 100644 --- a/mark.c +++ b/mark.c @@ -1439,7 +1439,6 @@ GC_API struct GC_ms_entry * GC_CALL GC_mark_and_push(void *obj, if (EXPECT(IS_FORWARDING_ADDR_OR_NIL(hhdr), FALSE)) { if (hhdr != 0) { r = GC_base(p); - GC_ASSERT(r != NULL); /* to prevent a warning */ hhdr = HDR(r); } if (hhdr == 0) {