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
From af192d3b675182c3944bfb14488942f4f55d63fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.rueh...@gmx.de> Date: Wed, 13 Dec 2017 10:37:08 +0100 Subject: [PATCH] glob.c: Silence warning about void pointer arithmetic --- lib/glob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/glob.c b/lib/glob.c index 511be12dd..563f580d5 100644 --- a/lib/glob.c +++ b/lib/glob.c @@ -615,7 +615,7 @@ glob (const char *pattern, int flags, int (*errfunc) (const char *, int), { # if defined HAVE_GETPWNAM_R || defined _LIBC size_t ssize = strlen (s.data) + 1; - err = getpwnam_r (s.data, &pwbuf, s.data + ssize, + err = getpwnam_r (s.data, &pwbuf, ((char *) s.data) + ssize, s.length - ssize, &p); # else p = getpwnam (s.data); -- 2.15.1
signature.asc
Description: OpenPGP digital signature