From 6abbfe470d6d854f83f14a0be674aa720ff3fc99 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 18 Apr 2024 12:16:16 -0700 Subject: [PATCH] Update wildmatch.c Allows this to compile with `-Wimplicit-fallthrough` --- watchman/thirdparty/wildmatch/wildmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchman/thirdparty/wildmatch/wildmatch.c b/watchman/thirdparty/wildmatch/wildmatch.c index 3e24c384e1a2..5cd7b1d764ad 100644 --- a/watchman/thirdparty/wildmatch/wildmatch.c +++ b/watchman/thirdparty/wildmatch/wildmatch.c @@ -87,7 +87,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags) /* Literal match with following character. Note that the test * in "default" handles the p[1] == '\0' failure case. */ p_ch = *++p; - /* FALLTHROUGH */ + __attribute__((fallthrough)); default: if (p_ch == '/') { /* Consume any number of consecutive slashes. */