From 05a85bae79cfdf126f27a518d9a81c0f47af58d4 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Sat, 3 Jun 2000 00:17:31 +0000 Subject: [PATCH] * gc.h (SCM_VALIDATE_CELL): Cast result to (void) in order to avoid compiler warnings in gcc. (Does this work for other compilers?) --- libguile/gc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/gc.h b/libguile/gc.h index c67edfddf..70309a93f 100644 --- a/libguile/gc.h +++ b/libguile/gc.h @@ -86,7 +86,8 @@ typedef scm_cell * SCM_CELLPTR; */ #define SCM_VALIDATE_CELL(x) \ - (SCM_DEBUG_CELL_ACCESSES ? (!scm_cellp (x) ? (abort (), 0) : 1) : 1) + ((void) \ + (SCM_DEBUG_CELL_ACCESSES ? (!scm_cellp (x) ? (abort (), 0) : 1) : 1)) #define SCM_CELL_WORD(x, n) \ ((SCM_VALIDATE_CELL (x)), \