Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/xlint Only pass -Wtraditional to cpp for lint ...
details: https://anonhg.NetBSD.org/src/rev/9c4ec47ecc0a
branches: trunk
changeset: 573784:9c4ec47ecc0a
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Feb 09 21:24:48 2005 +0000
description:
Only pass -Wtraditional to cpp for lint -t ...
Stops warnings about pre-processor constructs like #elif - which there is
no point detecting now that we've changed much of the code to require an
ANSI C compiler.
diffstat:
usr.bin/xlint/xlint/xlint.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r db2cc67bd399 -r 9c4ec47ecc0a usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Wed Feb 09 19:32:36 2005 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Wed Feb 09 21:24:48 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.35 2004/06/20 22:20:17 jmc Exp $ */
+/* $NetBSD: xlint.c,v 1.36 2005/02/09 21:24:48 dsl Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: xlint.c,v 1.35 2004/06/20 22:20:17 jmc Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.36 2005/02/09 21:24:48 dsl Exp $");
#endif
#include <sys/param.h>
@@ -358,8 +358,6 @@
appdef(&cflags, "lint");
- appcstrg(&lcflags, "-Wtraditional");
-
appcstrg(&deflibs, "c");
if (signal(SIGHUP, terminate) == SIG_IGN)
@@ -444,6 +442,7 @@
usage();
freelst(&lcflags);
appcstrg(&lcflags, "-traditional");
+ appcstrg(&lcflags, "-Wtraditional");
appstrg(&lcflags, concat2("-D", MACHINE));
appstrg(&lcflags, concat2("-D", MACHINE_ARCH));
appcstrg(&l1flags, "-t");
Home |
Main Index |
Thread Index |
Old Index