public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36778] New: [feature request] -Wfatal-warnings
@ 2008-07-09 22:08 gcc-bugzilla at contacts dot eelis dot net
2008-07-09 22:13 ` [Bug c++/36778] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: gcc-bugzilla at contacts dot eelis dot net @ 2008-07-09 22:08 UTC (permalink / raw)
To: gcc-bugs
Gcc has a versatile set of warning/error flags that let one tune its behavior,
but there is one thing that it seems is currently not supported: the ability to
have gcc abort on the first diagnostic, without losing information about
whether that diagnostic is a warning or an error.
One can use -Werror -Wfatal-errors to get abortion on the first diagnostic, but
then warnings like "suggest parentheses around && within ||" are reported as
errors.
Ideally, there would be a flag -Wfatal-warnings, which would cause the compiler
to abort compilation on the first warning. One could then use -Wfatal-errors
-Wfatal-warnings to get abortion on the first diagnostic without losing
information about whether that diagnostic is a warning or an error.
While I believe this feature would be more generally useful, the particular use
case I'm requesting this for is geordi ( http://www.eelis.net/geordi/ ), a
popular educational IRC C++ bot which compiles C++ code snippets with gcc and
reports the first diagnostic (if any). Since only the first diagnostic is
needed, geordi uses -Werror -Wfatal-errors to reduce its response time, but
this means it misreports warnings like the one mentioned above, as errors.
Having -Wfatal-warnings would trivially solve this without imposing a
responsiveness penalty.
I realize this request might be a bit of a stretch, but I thought I'd give it a
shot. Thanks for your time.
--
Summary: [feature request] -Wfatal-warnings
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bugzilla at contacts dot eelis dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36778
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-01 9:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-36778-4@http.gcc.gnu.org/bugzilla/>
2011-10-01 9:18 ` [Bug c++/36778] [feature request] -Wfatal-warnings paolo.carlini at oracle dot com
2008-07-09 22:08 [Bug c++/36778] New: " gcc-bugzilla at contacts dot eelis dot net
2008-07-09 22:13 ` [Bug c++/36778] " pinskia at gcc dot gnu dot org
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).