Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 1997 13:35:21 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        "Jin Guojun[ITG]" <jin@george.lbl.gov>
Cc:        freebsd-bugs@freebsd.org, joerg@freebsd.org
Subject:   Re: gnu/3554 
Message-ID:  <97May9.133531pdt.177486@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Fri, 09 May 97 09:11:41 PDT." <199705091611.JAA28108@george.lbl.gov> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Jin Guojun[ITG]" <jin@george.lbl.gov> wrote:
>The cc could be a little smart to do this:
>
>	if "default:" is found in a switch block, then no further check.
>	otherwise, if no "default:" is in a switch block, but some similar
>	label is found, which may be a type, gives a warning:

You could just use "-Wall" (or figure out which -W switch it is
that enables the unused lable warning).

foo.c:6: warning: label `defualt' defined but not used


  Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97May9.133531pdt.177486>