Module Name:    src
Committed By:   christos
Date:           Tue Dec 14 16:22:30 UTC 2021

Modified Files:
        src/usr.bin/xlint/xlint: lint.1 xlint.c

Log Message:
Also accept -W to pass to cpp


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/xlint/lint.1
cvs rdiff -u -r1.86 -r1.87 src/usr.bin/xlint/xlint/xlint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/xlint/lint.1
diff -u src/usr.bin/xlint/xlint/lint.1:1.47 src/usr.bin/xlint/xlint/lint.1:1.48
--- src/usr.bin/xlint/xlint/lint.1:1.47	Sun Aug  8 12:53:53 2021
+++ src/usr.bin/xlint/xlint/lint.1	Tue Dec 14 11:22:30 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: lint.1,v 1.47 2021/08/08 16:53:53 wiz Exp $
+.\" $NetBSD: lint.1,v 1.48 2021/12/14 16:22:30 christos Exp $
 .\"
 .\" Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
 .\" Copyright (c) 1994, 1995 Jochen Pohl
@@ -30,7 +30,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd August 8, 2021
+.Dd December 14, 2021
 .Dt LINT 1
 .Os
 .Sh NAME
@@ -50,6 +50,7 @@
 .Op Fl l Ar library
 .Op Fl o Ar outputfile
 .Op Fl U Ar name
+.Op Fl W Ar cppwarnarg
 .Op Fl X Ar id Ns Op ,id ...
 .Op Fl Z Ar cpparg
 .Ar
@@ -64,6 +65,7 @@
 .Op Fl MD
 .Op Fl R Ar old=new
 .Op Fl U Ar name
+.Op Fl W Ar cppwarnarg
 .Op Fl X Ar id Ns Op ,id ...
 .Op Fl Z Ar cpparg
 .Ar

Index: src/usr.bin/xlint/xlint/xlint.c
diff -u src/usr.bin/xlint/xlint/xlint.c:1.86 src/usr.bin/xlint/xlint/xlint.c:1.87
--- src/usr.bin/xlint/xlint/xlint.c:1.86	Sat Nov 27 21:54:26 2021
+++ src/usr.bin/xlint/xlint/xlint.c	Tue Dec 14 11:22:30 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.86 2021/11/28 02:54:26 christos Exp $ */
+/* $NetBSD: xlint.c,v 1.87 2021/12/14 16:22:30 christos 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.86 2021/11/28 02:54:26 christos Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.87 2021/12/14 16:22:30 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -386,7 +386,7 @@ main(int argc, char *argv[])
 	(void)signal(SIGQUIT, terminate);
 	(void)signal(SIGTERM, terminate);
 	while ((c = getopt(argc, argv,
-	    "abcd:eghil:no:prstuvwxzA:B:C:D:FHI:L:M:PR:STU:VX:Z:")) != -1) {
+	    "abcd:eghil:no:prstuvwxzA:B:C:D:FHI:L:M:PR:STU:VW:X:Z:")) != -1) {
 		switch (c) {
 
 		case 'a':
@@ -510,6 +510,7 @@ main(int argc, char *argv[])
 		case 'I':
 		case 'M':
 		case 'U':
+		case 'W':
 			list_add_ref(&cpp.flags,
 			    xasprintf("-%c%s", c, optarg));
 			break;

Reply via email to