OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Refreshed genx.h, plus some plans

[ Lists Home | Date Index | Thread Index ]

> So Joe's claim looks exactly right: passing a const char array to a
> function expecting a plain char array raises a warning; other combinations
> do not.  Granted that a cast will suppress this warning, but it will
> suppress almost every type warning in C (you can't cast a function pointer
> to something else, nor vice versa).

I'm convinced. It was me who didn't know how it worked; actually, I did
until I tried with a compiler claiming ANSI C conformance, got no warnings,
re-read the standard and was misled to think it should allow this usage.

David




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS