BUILD: compression: use __fallthrough in comp_http_payload()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:36:05 +0000 (07:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids one build warning when preprocessing happens before compiling
with gcc >= 7.

src/flt_http_comp.c

index f2f04ee..ceda3fd 100644 (file)
@@ -241,7 +241,7 @@ comp_http_payload(struct stream *s, struct filter *filter, struct http_msg *msg,
                                        to_forward += b_data(&trash);
                                }
                                st->flags &= ~COMP_STATE_PROCESSING;
-                               /* fall through */
+                               __fallthrough;
 
                        default:
                          consume: