Re: warnings, errors;source code is included
- From: David Benson <daveb idealab com>
- To: James Henstridge <james daa com au>
- cc: * * <msg124 hotmail com>, gnome-devel-list gnome org, recipient list not shown: ;
- Subject: Re: warnings, errors;source code is included
- Date: Sun, 14 Nov 1999 17:17:02 -0800 (PST)
Though `void main()' suppresses the compiler warnings,
the calling function will assume main's exit status
is to be the exit status for the process.
In other words, if you want to reliably exit and indicate
that the run was successful, you should declare `int main()'
and return 0 if you are exitting successfully.
Of course, in many gui environments, exit codes are
just ignored... but you shouldn't assume that...
- Dave
On Mon, 15 Nov 1999, James Henstridge wrote:
> As someone replied to you, this means you have not specified return values
> for some of your functions. Specifically, the functions
> UpdateProgressTimer and main. If you don't want them to return anything,
> use the return type void (so you would use "void main(..." instead of just
> "main(...").
>
> James.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]