1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

gcc: gcc8 only recognizes fallthu

Later gcc is more accepting, but there's at least one gcc8 toolchain that only likes
to hear "fallthru", or it will flag it
This commit is contained in:
David Jeffers 2021-06-24 17:25:38 +01:00 committed by Andy Green
parent 1c72e9eee6
commit c90feba3f6
2 changed files with 4 additions and 1 deletions

View file

@ -2039,6 +2039,7 @@ next:
goto bail;
}
#endif
/* fallthru */
case LWSCD_FINALIZATION:

View file

@ -143,10 +143,12 @@ lws_http_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd)
lws_set_timeout(wsi, NO_PENDING_TIMEOUT, 0);
/* fallthrough */
/* fallthru */
#endif
/* dummy fallthru to satisfy compiler */
/* fallthru */
case LRS_H1C_ISSUE_HANDSHAKE:
lwsl_debug("%s: LRS_H1C_ISSUE_HANDSHAKE\n", __func__);