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; 3+ 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] 3+ messages in thread

* [Bug c++/36778] [feature request] -Wfatal-warnings
  2008-07-09 22:08 [Bug c++/36778] New: [feature request] -Wfatal-warnings gcc-bugzilla at contacts dot eelis dot net
@ 2008-07-09 22:13 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-07-09 22:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36778


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

* [Bug c++/36778] [feature request] -Wfatal-warnings
       [not found] <bug-36778-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-01  9:18 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-01  9:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36778

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|gcc-bugs at gcc dot gnu.org |
         Resolution|                            |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-01 09:18:32 UTC ---
Seems unnecessary, see: http://gcc.gnu.org/ml/gcc/2011-10/msg00001.html


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

end of thread, other threads:[~2011-10-01  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-09 22:08 [Bug c++/36778] New: [feature request] -Wfatal-warnings gcc-bugzilla at contacts dot eelis dot net
2008-07-09 22:13 ` [Bug c++/36778] " pinskia at gcc dot gnu dot org
     [not found] <bug-36778-4@http.gcc.gnu.org/bugzilla/>
2011-10-01  9:18 ` paolo.carlini at oracle 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).