]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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 f2f04ee62f1e275b3afc89a6f22b697a7c77e78b..ceda3fd5e4354353fff2a1c48a319ff02f8c26bc 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: