Source-Changes archive

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

Re: CVS commit: src/sbin/mount



> 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 PURPOSE.

{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åvard



Home | Main Index | Thread Index | Old Index