From a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Wed, 27 Jan 2021 19:39:14 +1100 Subject: slof/prim: Compile with -Wextra -Wextra enables a bunch of rather useful checks which this fixes. Reviewed-by: Thomas Huth Signed-off-by: Alexey Kardashevskiy --- slof/prim.code | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slof/prim.code b/slof/prim.code index bb9e036..b9db151 100644 --- a/slof/prim.code +++ b/slof/prim.code @@ -469,18 +469,21 @@ code_FILL: #endif while ((size-=sizeof(type_u)) >= 0) *up++ = fill_v; + break; } case sizeof(type_l): { type_l *lp = (type_l *)d; while ((size-=sizeof(type_l)) >= 0) *lp++ = (type_l)fill_v; + break; } case sizeof(type_w): { type_w *wp = (type_w *)d; while ((size-=sizeof(type_w)) >= 0) *wp++ = (type_w)fill_v; + break; } default: while (size-- > 0) -- cgit v1.1