[RFC] warning: initialization discards qualifiers from pointer target type
Eric Christopher
echristo@redhat.com
Tue Apr 19 05:09:00 GMT 2005
> >
> > Though of course, this doesn't mean that we can't have an option to
> > control it. -Wno-cast-qual doesn't seem like the right choice, as
> > there is no user cast here. Maybe something like -Wno-discard-
> > qual, where -Wdiscard-qual is the default.
> >
> > I notice that these are pedwarns,
>
> In that case, we can enable it only when -pedantic is used (like many
> pedwarns) ?
You could, but in this case it's probably best to fix the code...
-eric
More information about the Gcc
mailing list