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 lint: do not output "Lint pass2:"



details:   https://anonhg.NetBSD.org/src/rev/da708c9c2e75
branches:  trunk
changeset: 1029269:da708c9c2e75
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 28 22:59:56 2021 +0000

description:
lint: do not output "Lint pass2:"

A colon at the end of a line requires at least 1 follow-up line, but
xlint cannot know whether lint2 will find anything to complain about.
Having a colon followed by nothing creates unnecessary confusion.

diffstat:

 usr.bin/xlint/xlint/xlint.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 324354ff7a8f -r da708c9c2e75 usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c       Tue Dec 28 22:54:08 2021 +0000
+++ b/usr.bin/xlint/xlint/xlint.c       Tue Dec 28 22:59:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.87 2021/12/14 16:22:30 christos Exp $ */
+/* $NetBSD: xlint.c,v 1.88 2021/12/28 22:59:56 rillig 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.87 2021/12/14 16:22:30 christos Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.88 2021/12/28 22:59:56 rillig Exp $");
 #endif
 
 #include <sys/param.h>
@@ -606,7 +606,6 @@
                findlibs(deflibs);
        }
 
-       (void)printf("Lint pass2:\n");
        run_lint2();
 
        if (oflag)



Home | Main Index | Thread Index | Old Index