Path: utzoo!utgpu!attcan!uunet!vsedev!logan From: logan@vsedev.VSE.COM (James Logan III) Newsgroups: comp.lang.c Subject: Re: YALF (yet another lint foulup) Message-ID: <1283@vsedev.VSE.COM> Date: 16 Dec 88 02:15:53 GMT References: <4700030@m.cs.uiuc.edu> Reply-To: logan@vsedev.VSE.COM (James Logan III) Organization: VSE Software Development Lab Lines: 27 In article <4700030@m.cs.uiuc.edu> wsmith@m.cs.uiuc.edu writes: # # Lint believes this simple program has both return(e); and just return; # # function() # { # int flag; # do{ # return(3); # } while(flag); # } # # I suppose this should be added to the canonical collection of lint foulups. The function itself is a foulup. First, you haven't initialized "flag", and second, the function can be replaced with: #define function() 3 What's the point? Returning from the middle of a loop is poor programming! -Jim -- Jim Logan logan@vsedev.vse.com (703) 892-0002 uucp: ..!uunet!vsedev!logan inet: logan%vsedev.vse.com@uunet.uu.net