[Bug c/41215] New: request: option to suppress discarded qualifiers warnings
adam at yorba dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 1 14:39:00 GMT 2009
There is currently no GCC option that will turn off discarded qualifiers
warnings, which typically arise from const/non-const mismatches. These
warnings look like this:
warning: assignment discards qualifiers from pointer target type
warning: passing argument 1 of Âfoo discards qualifiers from pointer target
type
This is a request for an option to suppress these warnings.
A typical C programmer should see these warnings so that they can fix them.
But in tools that automatically generate C code it may sometimes be difficult
to avoid large numbers of warnings like this, and so as a practical matter it
may be helpful to be able to suppress them. (One such tool is the Vala
compiler; see http://live.gnome.org/Vala).
--
Summary: request: option to suppress discarded qualifiers
warnings
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: adam at yorba dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41215
More information about the Gcc-bugs
mailing list