From 3fbc3a79f3980a402613b81ef41676162b4d4781 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 1 Mar 2016 12:11:19 +0300 Subject: [PATCH] Workaround false warning about unreachable code path * tests/test.c (FAIL): Remove useless void cast applied to abort() and Amiga_Fail(). --- tests/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0