[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove warning when compiling with gcc-3.0

From: Jeff Bailey
Subject: Re: Remove warning when compiling with gcc-3.0
Date: Sun, 2 Dec 2001 12:24:51 -0800
User-agent: Mutt/1.2.5i

On Sun, Dec 02, 2001 at 12:15:24PM -0800, Thomas Bushnell, BSG wrote:
> Jeff Bailey <jbailey@nisa.net> writes:
> > 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
> I have no objection to your patch, but since when was this syntax
> "deprecated"?

>From http://gcc.gnu.org/gcc-3.0/caveats.html:

* The undocumented extension that allowed C programs to have a label
at the end of a compound statement has been deprecated and may be
removed in a future version. Programs that now generate a warning
about this may be fixed by adding a null statement (a single
semicolon) after the label.

Abandon the search for truth; settle for a good fantasy.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]