]> granicus.if.org Git - gc/commitdiff
Workaround false warning about unreachable code path
authorIvan Maidanski <ivmai@mail.ru>
Tue, 1 Mar 2016 09:11:19 +0000 (12:11 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 1 Mar 2016 09:11:19 +0000 (12:11 +0300)
* tests/test.c (FAIL): Remove useless void cast applied to abort()
and Amiga_Fail().

tests/test.c

index 8f37cd2b5e422c4f0c0a5ef1389e8d8ebe0d5098..8bc5558696ae63bbbabee24c8fd053b750635dde 100644 (file)
@@ -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