]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: spoe: use __fallthrough in spoe_handle_appctx()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:22:14 +0000 (07:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids two build warnings when preprocessing happens before compiling
with gcc >= 7.

src/flt_spoe.c

index 853452f5335c4bddbc780c5d14c1ee609559d761..ed31943816e1dcf419241b2ac9398d66205e9069 100644 (file)
@@ -1997,7 +1997,7 @@ spoe_handle_appctx(struct appctx *appctx)
                                goto switchstate;
                        }
                        appctx->st0 = SPOE_APPCTX_ST_PROCESSING;
-                       /* fall through */
+                       __fallthrough;
 
                case SPOE_APPCTX_ST_PROCESSING:
                case SPOE_APPCTX_ST_SENDING_FRAG_NOTIFY:
@@ -2023,7 +2023,7 @@ spoe_handle_appctx(struct appctx *appctx)
                        sc_shutw(sc);
                        sc_shutr(sc);
                        sc_ic(sc)->flags |= CF_READ_NULL;
-                       /* fall through */
+                       __fallthrough;
 
                case SPOE_APPCTX_ST_END:
                        return;