Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!rex!ames!haven!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.lang.c Subject: Re: Can lint help an ANSI-C programmer? Message-ID: <90177@elsie.UUCP> Date: 9 Jun 90 00:22:11 GMT References: <6328.265D8157@puddle.fidonet.org> <1754@tkou02.enet.dec.com> Organization: NIH-LEC, Bethesda, MD Lines: 24 > You may not care about the return value - but does your compiler take > the time to warn you that you didn't supply a needed argument to the > printf() call?? > > (does lint warn about this?) Some lint's, and some newer gcc's, do. -- Arthur David Olson ado@alw.nih.gov ADO is a trademark of Ampex. Script started on Fri Jun 8 20:20:01 1990 elsie$ cat try.c #include func() { printf("name=%s\n"); } elsie$ gcc -c -Wformat try.c try.c: In function func: try.c:5: warning: too few arguments for format elsie$ exit script done on Fri Jun 8 20:20:35 1990