Greg Stein wrote:
"we aren't changing that stuff; sorry about the cast, but you can change your main() decl, or you can complain to the GCC folks because the cast is safe".
I'd just like to point out that this has nothing to do with GCC. The standard requires a diagnostic.
But yes, the cast is safe, because the standard also requires that const and non-const variants of the same type have the same representation and alignment requirements.
-- Brane Čibej home: <[EMAIL PROTECTED]> http://www.xbc.nu/brane/ work: <[EMAIL PROTECTED]> http://www.hermes-softlab.com/ ACM: <[EMAIL PROTECTED]> http://www.acm.org/