diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-01-27 19:39:14 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-02-12 13:46:18 +1100 |
commit | a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa (patch) | |
tree | 5d28cbe561638447f2930d7d8ea193162b431525 /slof/prim.code | |
parent | 1d1615b7b79109aedce51be3fd73baec040418b4 (diff) | |
download | SLOF-a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa.zip SLOF-a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa.tar.gz SLOF-a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa.tar.bz2 |
slof/prim: Compile with -Wextra
-Wextra enables a bunch of rather useful checks which this fixes.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'slof/prim.code')
-rw-r--r-- | slof/prim.code | 3 |
1 files changed, 3 insertions, 0 deletions
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) |