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