From ad9fb6b442d71863476befa9c43974640cb5435b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 11 May 2023 08:05:30 -0700 Subject: ffi: fix unused variable warning. * ffi.c (ffi_varray_null_term_get): An i variable is initialized and incremented in a for loop, but never used. --- ffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffi.c b/ffi.c index 91704da7..dae972b1 100644 --- a/ffi.c +++ b/ffi.c @@ -3316,9 +3316,9 @@ static val ffi_varray_null_term_get(struct txr_ffi_type *tft, mem_t *src, val vec = vector(zero, nil); struct txr_ffi_type *etft = ffi_type_struct(eltype); cnum elsize = etft->size; - cnum offs, i; + cnum offs = 0; - for (i = 0, offs = 0; ; i++) { + for (;;) { mem_t *el = src + offs, *p; for (p = el; p < el + elsize; p++) -- cgit v1.2.3