public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65403] New: -Wno-error=<not implemented> is an error
@ 2015-03-12 14:36 rguenth at gcc dot gnu.org
  2015-03-12 14:38 ` [Bug c/65403] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-12 14:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403

            Bug ID: 65403
           Summary: -Wno-error=<not implemented> is an error
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org

If you want to silence warnings you can use -Wno-XXX without caring about
whether
a compiler implements -WXXX already.  This doesn't seem to work with
-Wno-error=XXX which errors on unknown XXX.

It seems to me that we should treat -W[no-]error=XXX the same as -Wno-XXX
for unknown XXX as it certainly will enable/disable errors for the warning XXX
both if present or not present (no warnings anyway).

> gcc-5 -Wall -Werror -Wno-error=logical-not-parentheses -S t.c
> gcc-4.8 -Wall -Werror -Wno-error=logical-not-parentheses -S t.c
cc1: error: -Werror=logical-not-parentheses: no option
-Wlogical-not-parentheses

> gcc-5 -Wno-error=foo -S t.c
cc1: error: -Werror=foo: no option -Wfoo


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-12 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 14:36 [Bug c/65403] New: -Wno-error=<not implemented> is an error rguenth at gcc dot gnu.org
2015-03-12 14:38 ` [Bug c/65403] " rguenth at gcc dot gnu.org
2015-03-12 16:09 ` manu at gcc dot gnu.org
2015-03-12 17:10 ` manu at gcc dot gnu.org
2021-08-12 16:48 ` alexhenrie24 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).