Subject: Re: Lint errors for traditional C compatibility
To: None <tech-toolchain@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: tech-toolchain
Date: 02/07/2005 15:35:26
David Laight <david@l8s.co.uk> writes:
> Now we are changing the source tree so that it won't compile with a
> non-ansiC compiler, is it worth stopping lint complaining about
> #elif and #error ?
>
> (these come from passing -Wtraditional to cpp)
-t probably should still do -Wtraditional. -s certainly should not.
Default? I'd probably say "should not...".
Perry
>
> David
>
> Index: xlint.c
> ===================================================================
> RCS file: /cvsroot/src/usr.bin/xlint/xlint/xlint.c,v
> retrieving revision 1.35
> diff -u -p -r1.35 xlint.c
> --- xlint.c 20 Jun 2004 22:20:17 -0000 1.35
> +++ xlint.c 5 Feb 2005 20:51:13 -0000
> @@ -358,7 +358,9 @@ main(int argc, char *argv[])
>
> appdef(&cflags, "lint");
>
> +#if 0
> appcstrg(&lcflags, "-Wtraditional");
> +#endif
>
> appcstrg(&deflibs, "c");
>
>
> David
>
> --
> David Laight: david@l8s.co.uk
>
--
Perry E. Metzger perry@piermont.com