From owner-freebsd-bugs Fri May 9 13:39:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA27888 for bugs-outgoing; Fri, 9 May 1997 13:39:19 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA27880; Fri, 9 May 1997 13:39:11 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <19000(7)>; Fri, 9 May 1997 13:35:44 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177486>; Fri, 9 May 1997 13:35:31 -0700 To: "Jin Guojun[ITG]" cc: freebsd-bugs@freebsd.org, joerg@freebsd.org Subject: Re: gnu/3554 In-reply-to: Your message of "Fri, 09 May 97 09:11:41 PDT." <199705091611.JAA28108@george.lbl.gov> Date: Fri, 9 May 1997 13:35:21 PDT From: Bill Fenner Message-Id: <97May9.133531pdt.177486@crevenia.parc.xerox.com> Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk "Jin Guojun[ITG]" 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