]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: tools: use __fallthrough in url_decode()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:20:09 +0000 (07:20 +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/tools.c

index 5f44a2f0c768ce74800149d0d48ae1a22f93cae3..b5b6442b3e24b7daf1ad08d5113d794e4ab09138 100644 (file)
@@ -2099,7 +2099,7 @@ int url_decode(char *string, int in_form)
                        break;
                case '?':
                        in_form = 1;
-                       /* fall through */
+                       __fallthrough;
                default:
                        *out++ = *in;
                        break;