[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unneeded compiler warning in glob.c
From: |
Adhemerval Zanella |
Subject: |
Re: Unneeded compiler warning in glob.c |
Date: |
Tue, 19 Dec 2017 10:53:26 -0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 15/12/2017 23:30, Paul Eggert wrote:
> On 12/13/2017 01:38 AM, Tim Rühsen wrote:
>> Here is a patch to silence this warning:
>>
>> glob.c: In function 'rpl_glob':
>> glob.c:618:64: warning: pointer of type 'void *' used in arithmetic
>> [-Wpointer-arith]
>> err = getpwnam_r (s.data, &pwbuf, s.data + ssize,
>>
>>
>> With Best Regards, Tim
>>
> Thanks, I tweaked it slightly to avoid inserting a cast (as it's better to
> avoid casts when it's easy), and installed the attached patch into Gnulib, in
> your name. I'll CC: Adhemerval as this should go into glibc too, at some
> point.
>
Thanks for the heads up, I will sync it on glibc side.