diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-05 14:35:13 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-09-05 14:35:13 +0200 |
commit | c4579930a9961da68fe9e07594a9f893f11b83d2 (patch) | |
tree | 4d1eb2262e049ca284db806aae8fa33290ba17dd /src/wgtpkg-mustach.c | |
parent | 037d537b635b5136f0ffe25627dcac8a810c7418 (diff) |
Fix warnings 'implicit-fallthrough' of gcc 7
Change-Id: I32b42fd8db481fcbdce4b934fc990c118293850d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wgtpkg-mustach.c')
-rw-r--r-- | src/wgtpkg-mustach.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wgtpkg-mustach.c b/src/wgtpkg-mustach.c index 45d94e8..4251427 100644 --- a/src/wgtpkg-mustach.c +++ b/src/wgtpkg-mustach.c @@ -62,8 +62,8 @@ static char *keyval(char *read, int isptr) } else { if (c == '\\') { switch (read[1]) { - case '\\': *write++ = c; - case '=': c = *++read; + case '\\': *write++ = c; /*@fallthrough@*/ + case '=': c = *++read; /*@fallthrough@*/ default: break; } } @@ -92,8 +92,8 @@ static char *first(char **name, int isptr) while (c && c != '/') { if (c == '~') { switch(read[1]) { - case '1': c = '/'; - case '0': read++; + case '1': c = '/'; /*@fallthrough@*/ + case '0': read++; /*@fallthrough@*/ default: break; } } |