[Bug c/65403] -Wno-error=<not implemented> is an error
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 16:09:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-12
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
For fixing the output, the following should be enough:
Index: opts.c
===================================================================
--- opts.c (revision 221118)
+++ opts.c (working copy)
@@ -2341,11 +2341,12 @@ enable_warning_as_error (const char *arg
new_option[0] = 'W';
strcpy (new_option + 1, arg);
option_index = find_opt (new_option, lang_mask);
if (option_index == OPT_SPECIAL_unknown)
{
- error_at (loc, "-Werror=%s: no option -%s", arg, new_option);
+ error_at (loc, "-W%s=%s: no option -%s",
+ value ? "error" : "no-error", arg, new_option);
}
else
{
const diagnostic_t kind = value ? DK_ERROR : DK_WARNING;
More information about the Gcc-bugs
mailing list