Re: Why is it taking so long?
From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 03/30/04
- Next message: Nils Petter Vaskinn: "Re: Deleting a node in a singly link list if intermediate pointer is given"
- Previous message: Joona I Palaste: "Re: Hey, im a noob at C, PLEASE READ"
- In reply to:(deleted message) Stefan Ram: "Re: Why is it taking so long?"
- Next in thread: Stefan Ram: "Re: Why is it taking so long?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 11:47:05 GMT
In <c4a4i5$2ge5f3$1@uni-berlin.de> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>"jacob navia" <jacob@jacob.remcomp.fr> writes:
>>I have done my best. I have written most of the functions in the math
>>library from scratch.
>
> Since ISO/IEC 9899:1999 (E) defines a return value for "main",
> if the control reaches the final "}", the
>
>Warning example.c: 3 missing return value
>
> possibly might be removed as a default for "main", or possibly
> be removed if using an "-ansic99" option or so?
I like the warning. Just because the standard allows something, it
doesn't automatically mean that this something is a good thing and
should be encouraged.
It's my guess that this feature was introduced because far too many
clueless/careless people didn't bother to return anything from main.
They do deserve the warning, even if C99 takes care of their carelessness.
Dan
-- Dan Pop DESY Zeuthen, RZ group Email: Dan.Pop@ifh.de
- Next message: Nils Petter Vaskinn: "Re: Deleting a node in a singly link list if intermediate pointer is given"
- Previous message: Joona I Palaste: "Re: Hey, im a noob at C, PLEASE READ"
- In reply to:(deleted message) Stefan Ram: "Re: Why is it taking so long?"
- Next in thread: Stefan Ram: "Re: Why is it taking so long?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|