summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-01-23 08:17:19 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-01-23 16:19:33 +0400
commit8b4a394117585927b44cd807dbd734a99f7dc7a7 (patch)
treea2bb1c8d0ef2b0e89f1d42cf302f999b649f9155 /dbg_mlc.c
parentf23154f0a8f02b9519632e4341635f7c5e866da0 (diff)
downloadbdwgc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index c6b76fe5..f061236d 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -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) {