summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-07-16 01:34:17 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-07-23 19:02:31 -0400
commitb50aa2df51dbfdc83e5625f7afa6e549b20a96a7 (patch)
tree52aeddd40bc46b37dda76076e98c48150a1a5775
parentd66cbe9577ac092163babe6b816205fd14f1bc5a (diff)
downloadlighttpd1.4-b50aa2df51dbfdc83e5625f7afa6e549b20a96a7.tar.gz
lighttpd1.4-b50aa2df51dbfdc83e5625f7afa6e549b20a96a7.zip
quell compiler warnings for -Wimplicit-fallthrough
-rw-r--r--src/connections.c1
-rw-r--r--src/mod_openssl.c1
-rw-r--r--src/mod_rewrite.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/connections.c b/src/connections.c
index 049db918..ad3ba34e 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -1150,6 +1150,7 @@ int connection_state_machine(server *srv, connection *con) {
break; /* come back here */
}
/* response headers received from backend; fall through to start response */
+ /* fall through */
case HANDLER_FINISHED:
if (con->error_handler_saved_status > 0) {
con->request.http_method = con->error_handler_saved_method;
diff --git a/src/mod_openssl.c b/src/mod_openssl.c
index 8b7c9f36..f3caadd4 100644
--- a/src/mod_openssl.c
+++ b/src/mod_openssl.c
@@ -1317,6 +1317,7 @@ connection_read_cq_ssl (server *srv, connection *con,
switch ((r = SSL_get_error(hctx->ssl, len))) {
case SSL_ERROR_WANT_WRITE:
con->is_writable = -1;
+ /* fall through */
case SSL_ERROR_WANT_READ:
con->is_readable = 0;
diff --git a/src/mod_rewrite.c b/src/mod_rewrite.c
index 994a5dae..70b25845 100644
--- a/src/mod_rewrite.c
+++ b/src/mod_rewrite.c
@@ -464,6 +464,7 @@ URIHANDLER_FUNC(mod_rewrite_physical) {
switch(r = process_rewrite_rules(srv, con, p, p->conf.rewrite_NF)) {
case HANDLER_COMEBACK:
buffer_reset(con->physical.path);
+ /* fall through */
default:
return r;
}