Question about LINT

Steve Schlaifer x3171 156/224 steve at jplgodo.UUCP
Sat Apr 12 04:24:44 AEST 1986


In article <5000041 at inmet>, az at inmet.UUCP writes:
> 
>     If one has a function which is sometimes called as a procedure
> (ignoring returned value) is there a way to tell lint not to
> complain about this?

Yes, if you have something like

	int foo();

and want to ignore the return function value on a call then

	(void)foo(args);

will keep lint from complaining and also make the code clearer.
-- 

...smeagol\			Steve Schlaifer
......wlbr->!jplgodo!steve	Advance Projects Group, Jet Propulsion Labs
....group3/			4800 Oak Grove Drive, M/S 156/204
				Pasadena, California, 91109
					+1 818 354 3171



More information about the Comp.lang.c mailing list