Subject: bin/22515: lint cares too much about comments
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lha@stacken.kth.se>
List: netbsd-bugs
Date: 08/17/2003 19:54:27
>Number: 22515
>Category: bin
>Synopsis: lint cares too much about comments
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 17 17:55:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Love
>Release: NetBSD 1.6W
>Organization:
SU
>Environment:
System: NetBSD nutcracker.stacken.kth.se 1.6W NetBSD 1.6W (NUTCRACKER) #32: Thu Aug 7 00:14:40 CEST 2003 lha@nutcracker.stacken.kth.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:
lint cares about comments in defines
>How-To-Repeat:
$ cat > lint-define.c
#define LINTFOO 1 /* comment */
#define LINTFOO 1 /* diffrent */
int foo;
$ gcc -Wall -c lint-define.c
$ lint -z -v -u lint-define.c
lint-define.c:
lint-define.c:2: warning: `LINTFOO' redefined
lint-define.c:1: warning: this is the location of the previous definition
Lint pass2:
while
$ cat > lint-define.c
#define LINTFOO 1 /* comment */
#define LINTFOO 1 /* comment */
$ gcc -Wall -c lint-define.c
$ lint -z -v -u lint-define.c
lint-define.c:
Lint pass2:
is just fine
>Fix:
what should the behavior be ?
>Release-Note:
>Audit-Trail:
>Unformatted: