Skip to content

Commit

Permalink
fixup! fscache: implement an FSCache-aware is_mount_point()
Browse files Browse the repository at this point in the history
This is needed because clang now complains about arrays of structs that
contain flex array members.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Feb 25, 2025
1 parent 87ce6a0 commit 46fe8c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compat/win32/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,10 @@ int fscache_lstat(const char *filename, struct stat *st)
int fscache_is_mount_point(struct strbuf *path)
{
int dirlen, base, len;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wflexible-array-extensions"
struct heap_fsentry key[2];
#pragma GCC diagnostic pop
struct fsentry *fse;
struct fscache *cache = fscache_getcache();

Expand Down

0 comments on commit 46fe8c9

Please sign in to comment.