From c90feba3f602c749849a76ba1c718c5854323b9d Mon Sep 17 00:00:00 2001 From: David Jeffers Date: Thu, 24 Jun 2021 17:25:38 +0100 Subject: [PATCH] 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 --- lib/core/context.c | 1 + lib/roles/http/client/client-http.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/context.c b/lib/core/context.c index 9157c4c89..76d1139af 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -2039,6 +2039,7 @@ next: goto bail; } #endif + /* fallthru */ case LWSCD_FINALIZATION: diff --git a/lib/roles/http/client/client-http.c b/lib/roles/http/client/client-http.c index 381e9fd58..ebdea820e 100644 --- a/lib/roles/http/client/client-http.c +++ b/lib/roles/http/client/client-http.c @@ -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__);