]> mj.ucw.cz Git - libucw.git/commitdiff
Build: Silenced few -Wimplicit-fallthrough warnings.
authorPavel Charvat <pchar@ucw.cz>
Fri, 22 Mar 2019 10:17:24 +0000 (10:17 +0000)
committerPavel Charvat <pchar@ucw.cz>
Fri, 22 Mar 2019 10:17:24 +0000 (10:17 +0000)
ucw-xml/parse.c
ucw/fb-param.c

index 65e556b602a0d5ae7c666ab743f31ed012694ddc..532095daec7780f447c748d9cb656d46ff381ad4 100644 (file)
@@ -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;
index 3bc5a97301fb4b0531c4024fcb9823bd33bfcf20..3aa202175eae67a030893d9ed549b135d878a581 100644 (file)
@@ -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);