Skip to content

Commit 46fe8c9

Browse files
committed
fixup! fscache: implement an FSCache-aware is_mount_point()
This is needed because clang now complains about arrays of structs that contain flex array members. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 87ce6a0 commit 46fe8c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compat/win32/fscache.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,10 @@ int fscache_lstat(const char *filename, struct stat *st)
665665
int fscache_is_mount_point(struct strbuf *path)
666666
{
667667
int dirlen, base, len;
668+
#pragma GCC diagnostic push
669+
#pragma GCC diagnostic ignored "-Wflexible-array-extensions"
668670
struct heap_fsentry key[2];
671+
#pragma GCC diagnostic pop
669672
struct fsentry *fse;
670673
struct fscache *cache = fscache_getcache();
671674

0 commit comments

Comments
 (0)