> "Joe" == Joe Buck writes:
Joe> On Wed, Apr 01, 2009 at 10:18:32AM -0700, Paul Koning wrote:
>> The other day there was a request for a compile error if you do:
>>
>> int foo(void) { }
>>
>> and the answer was "the standard says that this is legal -- after
>> all, you can say 'foo()
On Wed, Apr 01, 2009 at 10:18:32AM -0700, Paul Koning wrote:
> The other day there was a request for a compile error if you do:
>
> int foo(void) { }
>
> and the answer was "the standard says that this is legal -- after all,
> you can say 'foo();' so the return value isn't used and it doesn't
The other day there was a request for a compile error if you do:
int foo(void) { }
and the answer was "the standard says that this is legal -- after all,
you can say 'foo();' so the return value isn't used and it doesn't
matter that it's missing".
That makes sense.
So how about:
int foo