Re: building with gcc 4.4

Sam Varshavchik <[email protected]> Sat, 18 Apr 2009 22:26:14 -0400
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Milos Jakubicek writes:

> Hi all,
> 
> I'm attaching a tiny patch to make cone building with gcc 4.4, please 
> merge it.

Although this looks very straightforward, I do have some questions. AFAIK, 
SUSv2 explicitly defines strchr as taking a const char * arg. The cast 
should not be necessary. Additionally, [conv.ptr] of the C++ standard 
clearly allows conversion of any pointer type to a void pointer. 
Furthermore, a quick search of the code finds several other instances where 
both strchr() and memcpy() are used with the same parameter types, so if 
these two instances need this kind of a patch, how come the other instances 
don't?

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p

_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAknqi8YACgkQx9p3GYHlUOLN/ACfSM0FWB3iMLlckpKcXgQX3lsN
BwwAnRjKlooLxysUJoZ5wdwsXg2bJz2a
=Bg4Z
-----END PGP SIGNATURE-----