Skip to content

Commit aa19161

Browse files
committed
Fix C warning if -DNDEBUG
1 parent 105a1bb commit aa19161

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/runtime/gencgc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4771,10 +4771,9 @@ static int verify_headered_object(lispobj* object, sword_t nwords,
47714771
}
47724772
#if FUN_SELF_FIXNUM_TAGGED
47734773
if (widetag == CLOSURE_WIDETAG && object[1] != 0) {
4774-
struct simple_fun* sf = (void*)(object[1] - 2*N_WORD_BYTES);
4774+
__attribute__((unused)) struct simple_fun* sf = (void*)(object[1] - 2*N_WORD_BYTES);
47754775
gc_assert(header_widetag(sf->header) == SIMPLE_FUN_WIDETAG);
4776-
struct code* code = fun_code_header(sf);
4777-
gc_assert(header_widetag(code->header) == CODE_HEADER_WIDETAG);
4776+
gc_assert(header_widetag(fun_code_header(sf)->header) == CODE_HEADER_WIDETAG);
47784777
}
47794778
#endif
47804779
if (widetag == SYMBOL_WIDETAG) {

0 commit comments

Comments
 (0)