BUILD: spoe: use __fallthrough in spoe_handle_appctx()

This avoids two build warnings when preprocessing happens before compiling
with gcc >= 7.
This commit is contained in:
Willy Tarreau 2022-11-14 07:22:14 +01:00
parent 8de35935b0
commit 3064f52b15

View 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;