Skip to content

Commit 56c4f54

Browse files
committed
fixup! 87ce6a0
This needs to be guarded against GCC complaining that it does not know this option... _sigh_ Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d5953d8 commit 56c4f54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/win32/fscache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ struct fsentry {
7979
#pragma GCC diagnostic pop
8080

8181
#pragma GCC diagnostic push
82+
#ifdef __clang__
8283
#pragma GCC diagnostic ignored "-Wflexible-array-extensions"
84+
#endif
8385
struct heap_fsentry {
8486
union {
8587
struct fsentry ent;
@@ -600,7 +602,9 @@ int fscache_lstat(const char *filename, struct stat *st)
600602
{
601603
int dirlen, base, len;
602604
#pragma GCC diagnostic push
605+
#ifdef __clang__
603606
#pragma GCC diagnostic ignored "-Wflexible-array-extensions"
607+
#endif
604608
struct heap_fsentry key[2];
605609
#pragma GCC diagnostic pop
606610
struct fsentry *fse;

0 commit comments

Comments
 (0)