[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Use 'return' from main() instead of calling exit()

From: James Youngman
Subject: Re: [PATCH] Use 'return' from main() instead of calling exit()
Date: Sun, 24 Oct 2004 19:26:36 +0100
User-agent: Mutt/1.3.28i

On Fri, Oct 22, 2004 at 01:30:33PM +0200, Petter Reinholdtsen wrote:

> Here is a patch for findutils 4.1.20 to avoid warnings from the
> compiler about unreachable code.  It changes all calls to exit() in
> main() to use the 'return' statement instead.  Please include in a
> future version of findutils.

I have made a similar change in the development code (which is
available vai anonymous CVS).  My change also modifies the calling
mechanism for usage() and doesn't use redundant parentheses with the
return statement (I don't want to have a discussion of the relative
merits of that though).

> It failed to compile on HP-UX 11.23 for ia64.  I'll get back to you
> with patches for this one.

OK.  It might be worth trying findutils 4.2.1 from


reply via email to

[Prev in Thread] Current Thread [Next in Thread]