Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!munnari.oz.au!bruce!alanf From: alanf@bruce.OZ (Alan Grant Finlay) Newsgroups: comp.lang.c Subject: Re: turbo-C and lint ? Summary: Please allow me to be more specific Keywords: PD lint Message-ID: <1966@bruce.OZ> Date: 21 Mar 90 02:07:35 GMT References: <1964@bruce.OZ> <1990Mar20.130947.16583@cs.eur.nl> Organization: Monash Uni. Computer Science, Australia Lines: 28 In article <1990Mar20.130947.16583@cs.eur.nl>, reino@cs.eur.nl (Reino de Boer) writes: > > Doesn't Turbo-C have a built-in checking mechanism ? > In article <1555@dinl.mmc.UUCP>, noren@dinl.uucp (Charles Noren) writes: > Turbo C combines the lint checking with its compiler, thus you can optionally > turn on all the lint diagnostics when you compile. The manual provides > details on how to do this. > -- Both of these were in reponse to my original query which may not have been specific enough. Consider the following correct program: check(x,y) long x; char *y; { printf("%10.10s ",y); } main() { check(10l,"testing"); } If you now remove the l after the 10 in the procedure call the compiler issues no relevant warnings and the program misbehaves. Can Turbo-C generate a warning for this kind of error?