BUILD: stconn: use __fallthrough in various shutw() functions
This avoids 7 build warnings when preprocessing happens before compiling
with gcc >= 7.
diff --git a/src/stconn.c b/src/stconn.c
index 3ad075f..a6ed548 100644
--- a/src/stconn.c
+++ b/src/stconn.c
@@ -564,14 +564,14 @@
!(ic->flags & (CF_SHUTR|CF_DONT_READ)))
return;
- /* fall through */
+ __fallthrough;
case SC_ST_CON:
case SC_ST_CER:
case SC_ST_QUE:
case SC_ST_TAR:
/* Note that none of these states may happen with applets */
sc->state = SC_ST_DIS;
- /* fall through */
+ __fallthrough;
default:
sc->flags &= ~SC_FL_NOLINGER;
ic->flags |= CF_SHUTR;
@@ -728,18 +728,18 @@
return;
}
- /* fall through */
+ __fallthrough;
case SC_ST_CON:
/* we may have to close a pending connection, and mark the
* response buffer as shutr
*/
sc_conn_shut(sc);
- /* fall through */
+ __fallthrough;
case SC_ST_CER:
case SC_ST_QUE:
case SC_ST_TAR:
sc->state = SC_ST_DIS;
- /* fall through */
+ __fallthrough;
default:
sc->flags &= ~SC_FL_NOLINGER;
ic->flags |= CF_SHUTR;
@@ -937,7 +937,7 @@
!(ic->flags & (CF_SHUTR|CF_DONT_READ)))
return;
- /* fall through */
+ __fallthrough;
case SC_ST_CON:
case SC_ST_CER:
case SC_ST_QUE:
@@ -945,7 +945,7 @@
/* Note that none of these states may happen with applets */
appctx_shut(__sc_appctx(sc));
sc->state = SC_ST_DIS;
- /* fall through */
+ __fallthrough;
default:
sc->flags &= ~SC_FL_NOLINGER;
ic->flags |= CF_SHUTR;