This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43245] add option to control "discarding qualifiers" warnings
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2010 15:36:52 -0000
- Subject: [Bug c/43245] add option to control "discarding qualifiers" warnings
- References: <bug-43245-18863@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from manu at gcc dot gnu dot org 2010-03-03 15:36 -------
Use -fdiagnostics-show-option to see which option controls a warning. In this
case, it will show nothing (this is another bug that will be fixed in GCC 4.6)
because, unfortunately, this is a default pedantic warning, so right now your
only choice is to use -pedantic-errors. I turned this to a feature request to
add an option to control the warning, for example, -Wdiscarded-qualifiers.
This is trivial but trunk is on regressions-only mode, so it won't be available
until GCC 4.6.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Severity|normal |enhancement
Summary|discarding const char * |add option to control
|qualifiers cannot be |"discarding qualifiers"
|disabled or turned into an |warnings
|error |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43245