Subject: main return...
To: None <current-users@NetBSD.ORG>
From: Peter Seebach <seebs@solon.com>
List: current-users
Date: 03/20/1996 16:05:45
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.)

-s