[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: Fri, 29 Oct 2004 16:26:18 +0100
User-agent: Mutt/1.3.28i

On Fri, Oct 29, 2004 at 03:08:51PM +0200, Petter Reinholdtsen wrote:
a reply from HP claiming this was intended behavior to comply
> firmly to the ANSI C standard.  I'm not sure if they are correct, but
> apparently a future GCC will complain about this as well.  See
> <URL:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11250> for info on
> the GCC bug.
> I'll keep looking into this, but suspect the only sane thing to do is
> to avoid 'char a[] = ("a");' completely in the source of findutils.

I believe I've done that in the case of the "N_" macro.  I'll grep for
other similar usages at the weekend.  I'll check the preprocessor
output, so that should catch all the examples that are findutils'
fault, taking macro expansion into account.  

It's at times like this that I think with respect of the MetaWare
compiler.  When you write something that makes it emit an error
message, it indicates which section and subsection of the ANSI C
standard you've just violated.   


reply via email to

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