diff options
author | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 2000-06-03 00:17:31 +0000 |
---|---|---|
committer | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 2000-06-03 00:17:31 +0000 |
commit | 05a85bae79cfdf126f27a518d9a81c0f47af58d4 (patch) | |
tree | 6a6abcf3bfe2415d1ba85843340e23150b93d585 | |
parent | 4ecf5aa35776a5ef8ffc753efe84221af507bbe7 (diff) | |
download | guile-05a85bae79cfdf126f27a518d9a81c0f47af58d4.tar.gz |
* gc.h (SCM_VALIDATE_CELL): Cast result to (void) in order to
avoid compiler warnings in gcc. (Does this work for other
compilers?)
-rw-r--r-- | libguile/gc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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)), \ |