Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site uiucdcsb Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!robison From: robison@uiucdcsb.CS.UIUC.EDU Newsgroups: net.lang.c Subject: Re: Question about LINT Message-ID: <139200026@uiucdcsb> Date: Mon, 14-Apr-86 12:30:00 EST Article-I.D.: uiucdcsb.139200026 Posted: Mon Apr 14 12:30:00 1986 Date-Received: Wed, 16-Apr-86 06:10:51 EST References: <5000041@inmet> Lines: 19 Nf-ID: #R:inmet:5000041:uiucdcsb:139200026:000:351 Nf-From: uiucdcsb.CS.UIUC.EDU!robison Apr 14 11:30:00 1986 > 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? Cast the result to (void) when you call the function as a procedure, i.e. int foo (x) int x; { return x; } main () { (void) foo (2); } Arch D. Robison