From 1e3d72a761a651aab13951b2f1bb861a35d8a5d4 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Fri, 22 Mar 2019 10:17:24 +0000 Subject: [PATCH] Build: Silenced few -Wimplicit-fallthrough warnings. --- ucw-xml/parse.c | 4 ++-- ucw/fb-param.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ucw-xml/parse.c b/ucw-xml/parse.c index 65e556b6..532095da 100644 --- a/ucw-xml/parse.c +++ b/ucw-xml/parse.c @@ -1076,8 +1076,8 @@ xml_next(struct xml_context *ctx) { /* A nasty state machine */ -#define PULL(x) do { if (ctx->pull & XML_PULL_##x) return ctx->state = XML_STATE_##x; case XML_STATE_##x: ; } while (0) -#define PULL_STATE(x, s) do { if (ctx->pull & XML_PULL_##x) return ctx->state = XML_STATE_##s, XML_STATE_##x; case XML_STATE_##s: ; } while (0) +#define PULL(x) do { if (ctx->pull & XML_PULL_##x) return ctx->state = XML_STATE_##x; /* fall-thru */ case XML_STATE_##x: ; } while (0) +#define PULL_STATE(x, s) do { if (ctx->pull & XML_PULL_##x) return ctx->state = XML_STATE_##s, XML_STATE_##x; /* fall-thru */ case XML_STATE_##s: ; } while (0) TRACE(ctx, "xml_next (state=%u)", ctx->state); jmp_buf throw_buf; diff --git a/ucw/fb-param.c b/ucw/fb-param.c index 3bc5a973..3aa20217 100644 --- a/ucw/fb-param.c +++ b/ucw/fb-param.c @@ -161,6 +161,7 @@ bclose_file_helper(struct fastbuf *f, int fd, int is_temp_file) case 1: if (unlink(f->name) < 0) msg(L_ERROR, "unlink(%s): %m", f->name); + /* fall-thru */ case 0: if (close(fd)) msg(L_ERROR, "close(%s): %m", f->name); -- 2.39.2