Skip to content

Commit 2fd5ad0

Browse files
Remove unused function warnings during mimalloc build on CYGWIN
This patch fixes issue #146594. See also #113141.
1 parent aa66807 commit 2fd5ad0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Objects/mimalloc/prim/unix

Objects/mimalloc/prim/unix/prim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int mi_prim_access(const char *fpath, int mode) {
7777
return syscall(SYS_access,fpath,mode);
7878
}
7979

80-
#elif !defined(__APPLE__) && !defined(_AIX) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(__NetBSD__) // avoid unused warnings
80+
#elif !defined(__APPLE__) && !defined(_AIX) && !defined(__CYGWIN__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(__NetBSD__) // avoid unused warnings
8181

8282
static int mi_prim_open(const char* fpath, int open_flags) {
8383
return open(fpath,open_flags);

0 commit comments

Comments
 (0)