summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi.c7
1 files changed, 7 insertions, 0 deletions
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);