From 56c4f543d02f369fd93b99d2ef6eefbaf26c030e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 25 Feb 2025 11:37:08 +0000 Subject: [PATCH] fixup! 87ce6a064bc2a8df6d5fff26f09219420e03ab23 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat/win32/fscache.c b/compat/win32/fscache.c index 74517691e8..589d9c8131 100644 --- a/compat/win32/fscache.c +++ b/compat/win32/fscache.c @@ -79,7 +79,9 @@ struct fsentry { #pragma GCC diagnostic pop #pragma GCC diagnostic push +#ifdef __clang__ #pragma GCC diagnostic ignored "-Wflexible-array-extensions" +#endif struct heap_fsentry { union { struct fsentry ent; @@ -600,7 +602,9 @@ int fscache_lstat(const char *filename, struct stat *st) { 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;