On Mon, Jun 02, 2008 at 01:54:28PM +0100, Ben Laurie wrote: > Bodo Moeller wrote: >> On Mon, Jun 2, 2008 at 12:47 PM, Dr. Stephen Henson <[EMAIL PROTECTED]> >> wrote: >>> On Sun, Jun 01, 2008, Ben Laurie wrote: >> >>>>> Stop const mismatch warning. >> >>>>> - else if (index_name_cmp(row,rrow)) >>>>> + else if (index_name_cmp((const CSTRING *)row,(const CSTRING *)rrow)) >> >>>> I do wish you'd find ways to fix these that don't involve casts! >> >>> Well I'm open to suggestions on this one... >>> >>> It's a "feature" of C that if you do... >>> >>> const something * const *foo; >>> something **bar; >>> >>> foo = bar; >>> >>> you get a warning about different const types. > > Anyone know what's behind the warning?
See: http://c-faq.com/ansi/constmismatch.html http://c-faq.com/decl/constparm.html might also be interesting to read. Kurt ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
