Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!samsung!brutus.cs.uiuc.edu!jarthur!aqdata!sullivan From: sullivan@aqdata.uucp (Michael T. Sullivan) Newsgroups: comp.lang.c Subject: Re: Discarded Function Values (To Cast or Not to Cast) Message-ID: <1989Nov17.154621.2698@aqdata.uucp> Date: 17 Nov 89 15:46:21 GMT References: <316@voa3.UUCP> Organization: aQdata, Inc. Western Region -- San Dimas, CA Lines: 15 From article <316@voa3.UUCP>, by ck@voa3.UUCP (Chris Kern): > ... Should I cast the function > call to void, or am I just indulging in the trivial luxury of > silencing lint? Although you are merely silencing lint, you are also doing yourself a service. If you start letting warnings like "return value ignored" pop up then you will someday miss an real warning/error message that is buried amongst the "fake" warning/error messages. Silence as many lint warnings as you can (will somebody PLEASE do something about the malloc bugaboo) and the real ones will stand out easily. -- Michael Sullivan uunet!jarthur.uucp!aqdata!sullivan aQdata, Inc. San Dimas, CA