PATCH PING: fix three libgcov warnings

Nathan Sidwell nathan@codesourcery.com
Mon Jan 19 09:32:00 GMT 2009


Ben Elliston wrote:
> Ping?  Perhaps this is really a libgcc patch.
> 
> http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00781.html

sorry, I looked at this before, but got confused.  I don't understand how the
type of execl's (char *[]) argument is relevant to the initialization of one of
the elements of that array.  You're not changing the execl calls.

-  args[0] = (char *) arg;
+  args[0] = (void *) (intptr_t) arg;

Is GCC warning on explicit cast conversions now?  There surely must be a better
way of silencing it than going via an integer type -- that's just really ugly
and confusing!

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery



More information about the Gcc-patches mailing list