Module Name: src
Committed By: rillig
Date: Mon Jul 3 10:14:31 UTC 2023
Modified Files:
src/usr.bin/xlint/lint1: main1.c
src/usr.bin/xlint/xlint: lint.1
Log Message:
lint: remove redundant comments for command line flags
To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/xlint/xlint/lint.1
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/lint1/main1.c
diff -u src/usr.bin/xlint/lint1/main1.c:1.68 src/usr.bin/xlint/lint1/main1.c:1.69
--- src/usr.bin/xlint/lint1/main1.c:1.68 Mon Jul 3 09:33:07 2023
+++ src/usr.bin/xlint/lint1/main1.c Mon Jul 3 10:14:31 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: main1.c,v 1.68 2023/07/03 09:33:07 rillig Exp $ */
+/* $NetBSD: main1.c,v 1.69 2023/07/03 10:14:31 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: main1.c,v 1.68 2023/07/03 09:33:07 rillig Exp $");
+__RCSID("$NetBSD: main1.c,v 1.69 2023/07/03 10:14:31 rillig Exp $");
#endif
#include <sys/types.h>
@@ -49,62 +49,20 @@ __RCSID("$NetBSD: main1.c,v 1.68 2023/07
#include "lint1.h"
-/* set yydebug to 1*/
-bool yflag;
-
-/*
- * Print warnings if an assignment of an integer type to another integer type
- * causes an implicit narrowing conversion. If aflag is 1, these warnings
- * are printed only if the source type is at least as wide as long. If aflag
- * is greater than 1, they are always printed.
- */
int aflag;
-
-/* Print a warning if a break statement cannot be reached. */
bool bflag;
-
-/* Print warnings for pointer casts. */
bool cflag;
-
-/* Perform stricter checking of enum types and operations on enum types. */
bool eflag;
-
-/* Print complete pathnames, not only the basename. */
bool Fflag;
-
-/* Treat warnings as errors */
-bool wflag;
-
-/*
- * Apply a number of heuristic tests to attempt to intuit bugs, improve
- * style, and reduce waste.
- */
bool hflag;
-
-/* Attempt to check portability to other dialects of C. */
+bool Pflag;
bool pflag;
-
-/*
- * In case of redeclarations/redefinitions print the location of the
- * previous declaration/definition.
- */
bool rflag;
-
bool Tflag;
-
-/* Picky flag */
-bool Pflag;
-
-/*
- * Complain about functions and external variables used and not defined,
- * or defined and not used.
- */
bool uflag = true;
-
-/* Complain about unused function arguments. */
bool vflag = true;
-
-/* Complain about structures which are never defined. */
+bool wflag;
+bool yflag;
bool zflag = true;
/*
Index: src/usr.bin/xlint/xlint/lint.1
diff -u src/usr.bin/xlint/xlint/lint.1:1.60 src/usr.bin/xlint/xlint/lint.1:1.61
--- src/usr.bin/xlint/xlint/lint.1:1.60 Sun Jul 2 23:40:23 2023
+++ src/usr.bin/xlint/xlint/lint.1 Mon Jul 3 10:14:31 2023
@@ -1,4 +1,4 @@
-.\" $NetBSD: lint.1,v 1.60 2023/07/02 23:40:23 rillig Exp $
+.\" $NetBSD: lint.1,v 1.61 2023/07/03 10:14:31 rillig Exp $
.\"
.\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
.\" Copyright (c) 1994, 1995 Jochen Pohl
@@ -251,7 +251,7 @@ types and combinations of
.Sy enum
and integer types.
.It Fl F
-Print pathnames of files.
+Print pathnames of files, not only the basenames.
.Nm
normally prints the filename without the path.
.It Fl g