From: Ivan Maidanski Date: Tue, 1 Mar 2016 09:11:19 +0000 (+0300) Subject: Workaround false warning about unreachable code path X-Git-Tag: gc7_6_0~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fbc3a79f3980a402613b81ef41676162b4d4781;p=gc Workaround false warning about unreachable code path * tests/test.c (FAIL): Remove useless void cast applied to abort() and Amiga_Fail(). --- diff --git a/tests/test.c b/tests/test.c index 8f37cd2b..8bc55586 100644 --- a/tests/test.c +++ b/tests/test.c @@ -155,7 +155,7 @@ int realloc_count = 0; void GC_amiga_free_all_mem(void); void Amiga_Fail(void){GC_amiga_free_all_mem();abort();} -# define FAIL (void)Amiga_Fail() +# define FAIL Amiga_Fail() void *GC_amiga_gctest_malloc_explicitly_typed(size_t lb, GC_descr d){ void *ret=GC_malloc_explicitly_typed(lb,d); if(ret==NULL){ @@ -188,7 +188,7 @@ int realloc_count = 0; #else /* !AMIGA_FASTALLOC */ # if defined(PCR) || defined(LINT2) -# define FAIL (void)abort() +# define FAIL abort() # else # define FAIL ABORT("Test failed") # endif