Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!algor2.algorists.com!jeffrey From: jeffrey@algor2.algorists.com (Jeffrey Kegler) Newsgroups: comp.lang.c Subject: Re: Discarded Function Values (To Cast or Not to Cast) Message-ID: <1989Nov20.121326.28500@algor2.algorists.com> Date: 20 Nov 89 12:13:26 GMT References: <316@voa3.UUCP> <1989Nov17.154621.2698@aqdata.uucp> <1989Nov18.062322.12728@twwells.com> <11644@smoke.BRL.MIL> Reply-To: jeffrey@algor2.ALGORISTS.COM (Jeffrey Kegler) Organization: Algorists, Inc. Lines: 22 In article <11644@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <1989Nov18.062322.12728@twwells.com> bill@twwells.com (T. William Wells) writes: >>I don't worry about lint warnings about functions whose return >>value is never used. It is generally a very short list, ... > >If it isn't a problem for you, more power to you. >I find that I am less likely to overlook genuine problems >reported by "lint" if NO lint output is expected than if >SOME lint output is expected. This is difficult to enforce >when malloc() is involved, although there are ways. I always make lint produce silent output, even when writing device drivers. Even if you can remember which lint messages are harmless, someone inheriting your code has to examine them all, or ignore them all. And a few months later, if lint produces 7 messages instead of 6, I do not feel all that sure that 7th would catch my attention. One instead of zero, I will notice. -- Jeffrey Kegler, Independent UNIX Consultant, Algorists, Inc. jeffrey@algor2.ALGORISTS.COM or uunet!algor2!jeffrey 1762 Wainwright DR, Reston VA 22090