Re: missing return value

2009-04-01 Thread Paul Koning
> "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()

Re: missing return value

2009-04-01 Thread Joe Buck
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

missing return value

2009-04-01 Thread Paul Koning
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