mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
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:
parent
8de35935b0
commit
3064f52b15
@ -1997,7 +1997,7 @@ spoe_handle_appctx(struct appctx *appctx)
|
|||||||
goto switchstate;
|
goto switchstate;
|
||||||
}
|
}
|
||||||
appctx->st0 = SPOE_APPCTX_ST_PROCESSING;
|
appctx->st0 = SPOE_APPCTX_ST_PROCESSING;
|
||||||
/* fall through */
|
__fallthrough;
|
||||||
|
|
||||||
case SPOE_APPCTX_ST_PROCESSING:
|
case SPOE_APPCTX_ST_PROCESSING:
|
||||||
case SPOE_APPCTX_ST_SENDING_FRAG_NOTIFY:
|
case SPOE_APPCTX_ST_SENDING_FRAG_NOTIFY:
|
||||||
@ -2023,7 +2023,7 @@ spoe_handle_appctx(struct appctx *appctx)
|
|||||||
sc_shutw(sc);
|
sc_shutw(sc);
|
||||||
sc_shutr(sc);
|
sc_shutr(sc);
|
||||||
sc_ic(sc)->flags |= CF_READ_NULL;
|
sc_ic(sc)->flags |= CF_READ_NULL;
|
||||||
/* fall through */
|
__fallthrough;
|
||||||
|
|
||||||
case SPOE_APPCTX_ST_END:
|
case SPOE_APPCTX_ST_END:
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user