diff options
| author | rillig <rillig@NetBSD.org> | 2023-07-03 10:14:31 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2023-07-03 10:14:31 +0000 |
| commit | 6f9b7795090406af5eb40ffeef54987e595b4463 (patch) | |
| tree | 7820054dce7a5ade5c63bb403508af75a841bf09 /usr.bin | |
| parent | 352b0bad7fc30c8f52e85dd64246039191f90b43 (diff) | |
lint: remove redundant comments for command line flags
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/xlint/lint1/main1.c | 52 | ||||
| -rw-r--r-- | usr.bin/xlint/xlint/lint.1 | 4 |
2 files changed, 7 insertions, 49 deletions
diff --git a/usr.bin/xlint/lint1/main1.c b/usr.bin/xlint/lint1/main1.c index aff820a06d8..f2ba702b492 100644 --- a/usr.bin/xlint/lint1/main1.c +++ b/usr.bin/xlint/lint1/main1.c @@ -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/03 09:33:07 rillig Exp $"); #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; /* diff --git a/usr.bin/xlint/xlint/lint.1 b/usr.bin/xlint/xlint/lint.1 index c8850c69a9e..54ecdcc6d3b 100644 --- a/usr.bin/xlint/xlint/lint.1 +++ b/usr.bin/xlint/xlint/lint.1 @@ -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 |
