bug-gnulib
[Top][All Lists]
Advanced

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

Re: Unneeded compiler warning in glob.c


From: Paul Eggert
Subject: Re: Unneeded compiler warning in glob.c
Date: Fri, 15 Dec 2017 17:30:52 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

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.

Attachment: 0001-glob.c-Silence-warning-about-void-pointer-arithmetic.patch
Description: Text Data


reply via email to

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