[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove warning when compiling with gcc-3.0
From: |
Niels Möller |
Subject: |
Re: Remove warning when compiling with gcc-3.0 |
Date: |
02 Dec 2001 23:07:39 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Jeff Bailey <jbailey@nisa.net> writes:
> When compiling with gcc-3.0, I get the following warning:
>
> In file included from ../sysdeps/mach/hurd/uname.c:21:
> ../hurd/hurd.h: In function `__hurd_fail':
> ../hurd/hurd.h:71: warning: deprecated use of label at end of compound
> statement
>
> It appears from looking at locale/programs/locale.c (Thanks mmenal!)
> that this is the way to fix it.
Adding an empty statement should also work, like
case 0:
return 0;
default:
;
}
But break; may be more idiomatic.
/Niels