Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-arpa!male!pitstop!texsun!texbell!killer!pollux!ti-csl!m2!ramey From: ramey@m2.csc.ti.com (Joe Ramey) Newsgroups: comp.lang.c Subject: Why does lint complain about this? Message-ID: <75688@ti-csl.csc.ti.com> Date: 24 Apr 89 16:38:31 GMT Sender: news@ti-csl.csc.ti.com Reply-To: ramey@m2.csc.ti.com (Joe Ramey) Organization: TI Computer Science Center, Dallas Lines: 24 When I run lint on this program main() { try(0); } try(foo) char *foo; { } I get this output: trylint.c: trylint.c(7): warning: argument foo unused in function try try, arg. 1 used inconsistently trylint.c(8) :: trylint.c(3) Why does lint say that the arg. is used inconsistently? I thought that zero could be assigned to any pointer type. Shouldn't lint recognize the constant 0 and realize that it is compatible with (char *) ? Joe Ramey (ti-csl!ramey , ramey@csc.ti.com) TI Computer Science Center