apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: [PATCH] apr_getopt_long interface update and interleaving support
Date Sun, 26 Nov 2000 20:44:31 GMT
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:   <brane@xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej@hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane@acm.org>            http://www.acm.org/



Mime
View raw message