bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#20923: mgetgroups.c vs getgrouplist warning on OS X


From: Jim Meyering
Subject: Re: bug#20923: mgetgroups.c vs getgrouplist warning on OS X
Date: Mon, 29 Jun 2015 10:48:42 -0700

On Sun, Jun 28, 2015 at 11:48 PM, Paul Eggert <address@hidden> wrote:
> Jim Meyering wrote:
>>
>> I compiled the just-published snapshot on OS X configured with
>> --enable-gcc-warnings, and saw this:
>>
>> lib/mgetgroups.c: In function 'mgetgroups':
>> lib/mgetgroups.c:90:45: error: pointer targets in passing argument 3
>> of 'getgrouplist' differ in signedness [-Werror=pointer-sign]
>>             ng = getgrouplist (username, gid, g, &max_n_groups);
>
>
> Does the attached gnulib patch fix things for you on OS X?
>
> Its documentation lists OS X 10.11 (released this month), as I assume the
> incompatiblity is in the latest version of OS X and that Apple's never going
> to fix it....

Hi Paul,
Thanks for writing that, but it did not help: the first variant compiled
just fine here (and probably everywhere),
so HAVE_GETGROUPLIST_WITH_INT was not defined.

The problem arises only when using --enable-gcc-warnings and the prototype-
required int* (type of argument 3) conflicts with the gid_t* argument.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]