diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-01-23 08:17:19 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-01-23 16:19:33 +0400 |
commit | 8b4a394117585927b44cd807dbd734a99f7dc7a7 (patch) | |
tree | a2bb1c8d0ef2b0e89f1d42cf302f999b649f9155 /dbg_mlc.c | |
parent | f23154f0a8f02b9519632e4341635f7c5e866da0 (diff) | |
download | bdwgc-8b4a394117585927b44cd807dbd734a99f7dc7a7.tar.gz |
Replace ABORTs followed by statement with ABORT_RET having dummy
condition (to suppress 'statement unreachable' compiler warnings
caused by abort tagged as 'no-return')
* dbg_mlc.c (GC_debug_realloc): Replace ABORT() with ABORT_RET().
* gcj_mlc.c (mark_stack_limit): Likewise.
* os_dep.c (catch_exception_raise_state,
catch_exception_raise_state_identity): Likewise.
* typd_mlc.c (GC_descr_obj_size, GC_push_complex_descriptor): Likewise.
* include/private/gc_priv.h (ABORT_RET): New macro.
* mark.c (GC_mark_from): Put ABORT_RET instead of "cannot happen"
comment.
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r-- | dbg_mlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -869,7 +869,7 @@ GC_API void * GC_CALL GC_debug_realloc(void * p, size_t lb, GC_EXTRA_PARAMS) default: result = NULL; /* initialized to prevent warning. */ GC_err_printf("GC_debug_realloc: encountered bad kind\n"); - ABORT("Bad kind"); + ABORT_RET("Bad kind"); } if (result != NULL) { |