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;
}