From c4579930a9961da68fe9e07594a9f893f11b83d2 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 5 Sep 2017 14:35:13 +0200 Subject: Fix warnings 'implicit-fallthrough' of gcc 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I32b42fd8db481fcbdce4b934fc990c118293850d Signed-off-by: José Bollo --- src/wgtpkg-mustach.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wgtpkg-mustach.c') 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; } } -- cgit 1.2.3-korg