[pcp] [Fwd: Re: pcp updates]
kenj at internode.on.net
Thu Aug 25 01:29:06 CDT 2011
Meant to send this to the list ...
-------- Forwarded Message --------
From: Ken McDonell <kenj at internode.on.net>
To: Nathan Scott <nathans at aconex.com>
Subject: Re: [pcp] pcp updates
Date: Thu, 25 Aug 2011 16:21:26 +1000
On Thu, 2011-08-25 at 13:10 +1000, Nathan Scott wrote:
> > src/libpcp/src/logutil.c | 8
> Instead of the gcc-specific hack, is it not possible to cast
> the returned value to (void)? I've seen this done in some
> other places, so here: "(void)strtol(q+1, &end, 10);" and if
> that works toss that big comment and local "tmpl" variable?
The gcc pixies refuse to let (void) cast over-ride the warning if the
__attribute(()) is set on the function ... there are long mail wars
between the gcc mob, the glibc mob and everyone else.
I played with this a lot, and this is the only way I've found to make
the warnings go away on all platforms.
ps please make sure you pull in my last round of changes ... there are a
couple of additional tweaks needed for the configure.in changes.
More information about the pcp