Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ucsbcsl.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!trwrba!cepu!ucsbcsl!frew From: frew@ucsbcsl.UUCP (James Frew) Newsgroups: net.lang.c Subject: Strange lint behavior Message-ID: <174@ucsbcsl.UUCP> Date: Wed, 17-Oct-84 12:37:32 EDT Article-I.D.: ucsbcsl.174 Posted: Wed Oct 17 12:37:32 1984 Date-Received: Sun, 21-Oct-84 10:35:49 EDT Organization: U.C. Santa Barbara Lines: 35 Alright all you C wizards, gurus, trolls, etc. Howcumzit when I run "lint" on: foo() { struct foo bar; } I get: foo1.c(3): unknown size foo1.c(3): warning: structure foo never defined foo1.c(3): warning: bar unused in function foo foo1.c(3): warning: structure bar never defined whereas with: foo() { static struct foo bar; } I get: foo2.c(3): compiler error: insane structure member list I find the former diagnostics considerably more edifying than the latter. My question is: is there a valid reason for the latter diagnostic (i.e., does it give me any additional information), or should this be considered a bug in "lint"? P.S.: this was run under 4.2BSD James Frew {cepu,dscvax2,sdcsvax,ucbvax}!ucsbcsl!frew Computer Systems Lab., Univ. of Calif., Santa Barbara, CA 93106 (805) 961-2309 -- James Frew {cepu,dscvax2,sdcsvax,ucbvax}!ucsbcsl!frew Computer Systems Lab., Univ. of Calif., Santa Barbara, CA 93106 (805) 961-2309