From d63394b5f6f251228b38e7f5f319ebad9a168e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sun, 21 Mar 2021 21:25:28 +0100 Subject: DragonFlyBSD: resolve sign comparison Compat.c: In function 'Compat_faccessat': Compat.c:46:14: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare] 46 | if (dirfd != AT_FDCWD || mode != F_OK) { | ^~ --- Compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Compat.c') diff --git a/Compat.c b/Compat.c index 43d02ec7..1077c08b 100644 --- a/Compat.c +++ b/Compat.c @@ -37,7 +37,7 @@ int Compat_faccessat(int dirfd, #endif // Error out on unsupported configurations - if (dirfd != AT_FDCWD || mode != F_OK) { + if (dirfd != (int)AT_FDCWD || mode != F_OK) { errno = EINVAL; return -1; } -- cgit v1.2.3