From: Willy Tarreau Date: Mon, 14 Nov 2022 06:20:09 +0000 (+0100) Subject: BUILD: tools: use __fallthrough in url_decode() X-Git-Tag: v2.7-dev9~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7de8de0bf80b2aee51801bbdcd336ea1a8d0815d;p=thirdparty%2Fhaproxy.git BUILD: tools: use __fallthrough in url_decode() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/tools.c b/src/tools.c index 5f44a2f0c7..b5b6442b3e 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2099,7 +2099,7 @@ int url_decode(char *string, int in_form) break; case '?': in_form = 1; - /* fall through */ + __fallthrough; default: *out++ = *in; break;