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 Also accept -W to pass to cpp



details:   https://anonhg.NetBSD.org/src/rev/a6bff5bb2d6a
branches:  trunk
changeset: 1027650:a6bff5bb2d6a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 14 16:22:30 2021 +0000

description:
Also accept -W to pass to cpp

diffstat:

 usr.bin/xlint/xlint/lint.1  |  6 ++++--
 usr.bin/xlint/xlint/xlint.c |  7 ++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (69 lines):

diff -r 77fb9c53e5cc -r a6bff5bb2d6a usr.bin/xlint/xlint/lint.1
--- a/usr.bin/xlint/xlint/lint.1        Tue Dec 14 16:22:07 2021 +0000
+++ b/usr.bin/xlint/xlint/lint.1        Tue Dec 14 16:22:30 2021 +0000
@@ -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
diff -r 77fb9c53e5cc -r a6bff5bb2d6a usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c       Tue Dec 14 16:22:07 2021 +0000
+++ b/usr.bin/xlint/xlint/xlint.c       Tue Dec 14 16:22:30 2021 +0000
@@ -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 @@
        (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 @@
                case 'I':
                case 'M':
                case 'U':
+               case 'W':
                        list_add_ref(&cpp.flags,
                            xasprintf("-%c%s", c, optarg));
                        break;



Home | Main Index | Thread Index | Old Index