This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[RFC] warning: initialization discards qualifiers from pointer target type
- From: Devang Patel <dpatel at apple dot com>
- To: GCC List <gcc at gcc dot gnu dot org>
- Date: Sun, 17 Apr 2005 10:02:55 -0700
- Subject: [RFC] warning: initialization discards qualifiers from pointer target type
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;
}