>From fbd765408c303f9514aa7059a1fa83a196793d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Mon, 9 Nov 2020 13:12:31 +0000 Subject: [PATCH] mgetgroups: avoid warning with clang * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1, so disable -Wpointer-sign for all clang versions. --- lib/mgetgroups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mgetgroups.c b/lib/mgetgroups.c index 3377d7bb2..5997e627e 100644 --- a/lib/mgetgroups.c +++ b/lib/mgetgroups.c @@ -35,7 +35,7 @@ /* Work around an incompatibility of OS X 10.11: getgrouplist accepts int *, not gid_t *, and int and gid_t differ in sign. */ -#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) +#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) || defined __clang__ # pragma GCC diagnostic ignored "-Wpointer-sign" #endif -- 2.26.2