httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@organic.com>
Subject Re: Solaris 2.4 warnings/error
Date Thu, 13 Jun 1996 20:51:16 GMT
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/


Mime
View raw message