diff options
author | 2005-12-02 09:07:10 +0000 | |
---|---|---|
committer | 2005-12-02 09:07:10 +0000 | |
commit | ed0d9c78b10d27b276d6affdd4e3009d1d70d6fd (patch) | |
tree | 9fa5de28cc4a576c52788f9b8d837c249de154f2 | |
parent | pollops should be const (diff) | |
download | wireguard-openbsd-ed0d9c78b10d27b276d6affdd4e3009d1d70d6fd.tar.xz wireguard-openbsd-ed0d9c78b10d27b276d6affdd4e3009d1d70d6fd.zip |
make lint invoke cpp with -CC instead of -C, which will cause comments
in #define macros to be preserved. This makes way for addition of lint
statements to a lot of .h files.
ok cloder@
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index de1c7afb52d..ff6f7059166 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xlint.c,v 1.21 2005/11/23 18:21:44 deraadt Exp $ */ +/* $OpenBSD: xlint.c,v 1.22 2005/12/02 09:07:10 grunk Exp $ */ /* $NetBSD: xlint.c,v 1.3 1995/10/23 14:29:30 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: xlint.c,v 1.21 2005/11/23 18:21:44 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: xlint.c,v 1.22 2005/12/02 09:07:10 grunk Exp $"; #endif #include <sys/param.h> @@ -318,7 +318,7 @@ main(int argc, char *argv[]) #if defined(__GNUC__) && __GNUC__ < 3 appcstrg(&cppflags, "-$"); #endif - appcstrg(&cppflags, "-C"); + appcstrg(&cppflags, "-CC"); appcstrg(&cppflags, "-Wcomment"); appcstrg(&cppflags, "-D__OpenBSD__"); appcstrg(&cppflags, "-Dlint"); /* XXX don't def. with -s */ |