From b30f8596fd90fd87283980410838ceaa86b4e148 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 16 Dec 2019 13:09:31 -0800 Subject: ffi: shut up gcc7 warnings about switch case. * ffi.c (ffi_array_put, ffi_array_out): Handle conv_none in the switch, even though the whole switch is conditional on the value being other than conv_none. --- ffi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ffi.c') diff --git a/ffi.c b/ffi.c index 21e9024d..a7ccfe28 100644 --- a/ffi.c +++ b/ffi.c @@ -2432,6 +2432,9 @@ static void ffi_array_put(struct txr_ffi_type *tft, val vec, mem_t *dst, case conv_bchar: ffi_bchar_array_put(tft, vec, dst, tft->nelem, self); break; + case conv_none: + /* notreached */ + break; } } else { ffi_array_put_common(tft, vec, dst, self, tft->nelem); @@ -2477,6 +2480,10 @@ static void ffi_array_out(struct txr_ffi_type *tft, int copy, val vec, break; case conv_bchar: ffi_bchar_array_put(tft, vec, dst, tft->nelem, self); + break; + case conv_none: + /* notreached */ + break; } } else { ffi_array_out_common(tft, copy, vec, dst, self, tft->nelem); -- cgit v1.2.3