Subject: Re: CVS commit: src/sbin/mount
To: None <uwe@ptc.spbu.ru>
From: Havard Eidnes <he@netbsd.org>
List: source-changes
Date: 01/31/2005 16:08:45
> Is -Wdeclaration-after-statement only supported in gcc 3.4?

Yes, that appears to be the case:

{2} gcc --version
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is=
 NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP=
OSE.

{3} vi /tmp/c.c
{4} gcc -Wdeclaration-after-statement -c /tmp/c.c
cc1: error: unrecognized option `-Wdeclaration-after-statement'
{5}

> Would come in handy to catch these errors.

Yep.

> Or do we expect to switch vax to gcc3 when gcc 3.4 hits our tree?

That's for the vax toolchain maintainer to answer to...  Last I
recall there were problems related to shared libraries with the
new gcc, but I'm possibly not up to date with respect to the
status of that work.

Regards,

- H=E5vard