public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5044: -Wswitch and `default' case
@ 2002-04-26  1:51 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-26  1:51 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, tromey

Synopsis: -Wswitch and `default' case

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Fri Apr 26 01:51:00 2002
State-Changed-Why:
    Addressed for gcc 3.2.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5044


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

* c/5044: -Wswitch and `default' case
@ 2001-12-07 10:46 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-12-07 10:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5044
>Category:       c
>Synopsis:       -Wswitch and `default' case
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 10:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey <tromey@redhat.com>
>Release:        current cvs
>Organization:
>Environment:

>Description:
Currently -Wswitch requires that a switch not
have a default case.  This isn't always the most
useful thing though.  In my situation, I have a 
bytecode interpreter.  I'd like to use -Wswitch to
ensure that I haven't left out a bytecode.  But
I'd also like to have a default case so that 
erroneous bytecodes are caught.
I think -Wswitch should be augmented to allow this case.
Perhaps a new -Wswitch-default flag could be added.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-04-26  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26  1:51 c/5044: -Wswitch and `default' case rth
  -- strict thread matches above, loose matches on Subject: below --
2001-12-07 10:46 tromey

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