| www.delorie.com/archives/browse.cgi | search |
| Date: | Wed, 21 Feb 2001 11:47:21 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Johan Henriksson <jhe AT realsoftware DOT cjb DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: What does this mean? |
| In-Reply-To: | <02a901c09b7c$92b8abc0$6300a8c0@brk> |
| Message-ID: | <Pine.SUN.3.91.1010221114701.18287L-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Tue, 20 Feb 2001, Johan Henriksson wrote:
> switch(val)
> { case 1: return(2);
> case 2: return(3);
> default: return(5);
> }
> }
>
> I'm not sure but I think this is one of the codesnippets that fool's GCC.
Did you try this? I don't think GCC will emit a warning for this
code. It might print a warning if there's no `default' clause,
though.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |