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;