Can lint help an ANSI-C programmer?
Arthur David Olson
ado at elsie.UUCP
Sat Jun 9 10:22:11 AEST 1990
> 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 at alw.nih.gov ADO is a trademark of Ampex.
Script started on Fri Jun 8 20:20:01 1990
elsie$ cat try.c
#include <stdio.h>
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
More information about the Comp.lang.c
mailing list