Subject: Re: main return...
To: Peter Seebach <seebs@solon.com>
From: Jim Wise <jim@santafe.arch.columbia.edu>
List: current-users
Date: 03/21/1996 13:47:29
At 4:05 PM 3/20/96, Peter Seebach wrote:
>Would anyone *object* to enabling the gcc hack for detecting invalid return
>types from main, and returning 0 automatically if no return is
>specified?
>
>This would get pedant points and make naive programs (those that forget
>to return a value) safer in shell scripts.
>
>If there are no objections, I'll probably send-pr this. It's a trivial
>thing (one line in config/netbsd.h) and will help NetBSD users everywhere
>write better C.
>
>(Oops. arch/netbsd.h, for our integrated gcc.)
While your at it do we/should we apply the 'repo' patch to gcc to allow for
standard template
instantiation?
Jim Wise
System Administrator
Columbia University GSAPP
jim@santafe.arch.columbia.edu
http://www.arch.columbia.edu/~jim