On Thu, 13 Jun 1996, Chuck Murcko wrote:
> Remember, this was *both* compilers, with -v on (stricter semantic checking)
> on the Sun cc. There are really only a couple of functions, and the Sun cc
> insists on seeing a return() at the end of main.
Well, main's been prototyped as an int, so one might expect it (like any
other int) function to, well, return an int.
Changing it to void makes this warning go away. Is that portable to other
systems, or is there a good reason it's an int currently?
-- Alexei Kosut <akosut@organic.com>
http://www.nueva.pvt.k12.ca.us/~akosut/
|