Subject: main() warnings, revisited...
To: None <current-users@NetBSD.ORG>
From: Peter Seebach <seebs@solon.com>
List: current-users
Date: 03/24/1997 14:49:08
A while back, I submitted patches to correct any number of "void main"
declarations in the source tree.  (I found, but have not yet corrected,
a pair in some of the i386 specific stuff, too.)

Since then, I finished my "complete" set of patches to gcc to catch
strange declarations of main, and they've been accepted.  Since NetBSD's
default build options may eventuall trigger these, I thought I'd bring
up a couple of questions:

1.  Is it a problem that the default way to disable the warnings
(-ffreestanding) currently implies -fno-builtin?  Should I submit
patches to change this?

2.  Does anyone see a good reason for make's 'parse.c' to have an
object named 'main'?  It's not actually invalid C, but -Wall will
be complaining about it real soon, as will -Wmain.  I've just been
renaming it 'listmain', but I don't know if the name was intentional,
although it seems to be a bad idea from my point of view.

-s