Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdccs6.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!sdcsvax!sdccs6!ix269 From: ix269@sdccs6.UUCP (Jim) Newsgroups: net.lang.c Subject: Re: lint and #include a static Message-ID: <1638@sdccs6.UUCP> Date: Sat, 21-Jul-84 04:50:55 EDT Article-I.D.: sdccs6.1638 Posted: Sat Jul 21 04:50:55 1984 Date-Received: Tue, 24-Jul-84 03:37:28 EDT Organization: HCDE Lines: 35 (doe static attract lint ? :-) +=+=+=+=+=+=+ lint tmp.c +=+=+=+=+=+=+ tmp.c: tmp.c(3): redeclaration of abc abc defined( ./tmp.h(1) ), but never used +=+=+=+=+=+=+=+ tmp.h +=+=+=+=+=+=+=+ static int abc; +=+=+=+=+=+=+=+ tmp.c +=+=+=+=+=+=+=+ #include "tmp.h" abc = 1; main() { abc = 2; printf("%d\n",abc); } /* Here is an answer to the question about a nasty little bit * about static variables being static to a file, yes but no. * The variable is available for use, but not in any routine in * the file. */ ----- Jim {dcdwest,ucbvax}!sdcsvax!sdccs6!ix269