Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Why does lint complain? Message-ID: <15237@smoke.brl.mil> Date: 19 Feb 91 01:33:21 GMT References: Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article davis@pacific.mps.ohio-state.edu (John E. Davis) writes: >test.c(9): warning: c may be used before set >test.c(9): warning: cur_time may be used before set >time value declared inconsistently llib-lc(729) :: test.c(10) >exit value declared inconsistently llib-lc(232) :: test.c(19) It appears to me that the first three warnings are a side effect of your assumption that declares time() and defines time_t when in actuality it doesn't appear to do so. The warning about exit() is because you have default-declared it as returning type int, which is wrong. If you have you could use that to declare exit() properly, or you could do it "by hand".