From owner-freebsd-bugs Mon Aug 13 8:20: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 86DA637B40E for ; Mon, 13 Aug 2001 08:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7DFK1C14843; Mon, 13 Aug 2001 08:20:01 -0700 (PDT) (envelope-from gnats) Received: from botbay.net (botbay.net [151.197.159.116]) by hub.freebsd.org (Postfix) with ESMTP id 6762037B40A for ; Mon, 13 Aug 2001 08:15:50 -0700 (PDT) (envelope-from wcampbel@botbay.net) Received: (from wcampbel@localhost) by botbay.net (8.11.4/8.11.4) id f7DFFj466717; Mon, 13 Aug 2001 11:15:45 -0400 (EDT) (envelope-from wcampbel) Message-Id: <200108131515.f7DFFj466717@botbay.net> Date: Mon, 13 Aug 2001 11:15:45 -0400 (EDT) From: Walter Campbell Reply-To: Walter Campbell To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/29675: lint fails on stdio.h Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29675 >Category: bin >Synopsis: lint fails on stdio.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 13 08:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Walter Campbell >Release: FreeBSD 4.3-STABLE i386 >Organization: botbay.net >Environment: System: FreeBSD botbay.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri Jul 27 11:53:35 EDT 2001 root@botbay.net:/usr/obj/usr/src/sys/KABEL i386 Also checked with current cvsup (as of 11h03 EDT) >Description: lint(1) will fail on C files that include stdio.h >How-To-Repeat: wcampbel@botbay (alis-2.2beta2.patched): lint -aacgprxhH *.c alis.c: stdio.h:299: syntax error alis.c:56: warning: argument id unused in function channel_hash_func alis.c:126: warning: pointer casts may be troublesome alis.c:133: warning: pointer casts may be troublesome alis.c:144: warning: pointer casts may be troublesome alis.c:162: warning: pointer casts may be troublesome alis.c:176: warning: pointer casts may be troublesome alis.c:202: warning: pointer casts may be troublesome alis.c:251: warning: declaration hides earlier one: tmp alis.c:753: warning: statement not reached alis.c:711: warning: argument argc unused in function main alis.c:711: warning: argument argv unused in function main This happens with make lint on ircd-hybrid 6.2rc1 netdb.h:127: warning: struct sockaddr never defined dbuf.c: stdio.h:299: syntax error make lint will then error out with return code 1. Sample code that can cause lint to error out: #include int main(int argc, char *arvg[]) { printf("Test\n"); return 0; } Giving the messages: wcampbel@botbay (wcampbel): lint -aacgprxhH lint-test.c lint-test.c: stdio.h:299: syntax error lint-test.c:3: warning: argument argc unused in function main lint-test.c:3: warning: argument arvg unused in function main wcampbel@botbay (wcampbel): echo $? 1 >Fix: I am not sure how to fix this. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message