[RFC] warning: initialization discards qualifiers from pointer target type

Devang Patel dpatel@apple.com
Sun Apr 17 18:00:00 GMT 2005


     warning: initialization discards qualifiers from pointer target  
type

This warning can not be disabled using -Wno-cast-qual
(or any other warning flags). Is it intentional ?
Otherwise I'll prepare patch.

Thanks,
-
Devang

const char *a( void )
{
         return "abc";
}

int main( void )
{
         char *s = a();
         return 0;
}




More information about the Gcc mailing list