From d16eadf7d1e6f631a0039f23a73b6ce2e2478d4a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 25 Feb 2025 11:37:08 +0000 Subject: [PATCH] fixup! 46fe8c94075bd98d637be8777209edfcac8566b5 This needs to be guarded against GCC complaining that it does not know this option... _sigh_ Signed-off-by: Johannes Schindelin --- compat/win32/fscache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/win32/fscache.c b/compat/win32/fscache.c index 589d9c81315f42..cbd90ececf6b37 100644 --- a/compat/win32/fscache.c +++ b/compat/win32/fscache.c @@ -670,7 +670,9 @@ int fscache_is_mount_point(struct strbuf *path) { int dirlen, base, len; #pragma GCC diagnostic push +#ifdef __clang__ #pragma GCC diagnostic ignored "-Wflexible-array-extensions" +#endif struct heap_fsentry key[2]; #pragma GCC diagnostic pop struct fsentry *fse;