Re: [C++] Omitted return statement
From: Gary Labowitz (glabowitz_at_comcast.net)
Date: 04/30/04
- Next message: Paul: "C++ Conversion functions for pointers"
- Previous message: Scott: "temporary file in C++"
- In reply to: Chris \( Val \): "Re: [C++] Omitted return statement"
- Next in thread: Francis Glassborow: "Re: [C++] Omitted return statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Apr 2004 21:55:12 -0400
"Chris ( Val )" <chrisval@bigpond.com.au> wrote in message
news:c6r24j$f1nom$1@ID-110726.news.uni-berlin.de...
>
> "Gary Labowitz" <glabowitz@comcast.net> wrote in message
> news:vdKdnQjoJZWQmAzdRVn-tA@comcast.com...
> | "Chris ( Val )" <chrisval@bigpond.com.au> wrote in message
> | news:c6qub1$d8srh$1@ID-110726.news.uni-berlin.de...
> | >
> | > "Gary Labowitz" <glabowitz@comcast.net> wrote in message
> | > news:TMmdndSuCcd7aw3dRVn-gQ@comcast.com...
> | > A couple of points for a faulty compiler ?
> | > Boy, you're a tough marker ;-).
> |
> | The compiler didn't leave out the return statement, he did. And,
yes,
> | I am a tough marker.
>
> I never said the compiler did - How could it :-).
>
> Well, since you didn't answer my question about the
> switches, I decided to try your code under GCC 3.3
> on my other box. I recently installed "Windows Services
> for UNIX"(free ~250 MB download from Microsoft), and I
> used the 'C' Shell to compile your sample code.
>
> There were indeed warnings produced when switches
> were used, and none when the switches were left
> out. I therefore conclude, you did not use any :-).
Sorry, Val, I missed that. However, compiling with both -pedantic
and -pedantic-errors produces no warnings or errors. The compiler just
doesn't care if the return is left out.
-- Gary
- Next message: Paul: "C++ Conversion functions for pointers"
- Previous message: Scott: "temporary file in C++"
- In reply to: Chris \( Val \): "Re: [C++] Omitted return statement"
- Next in thread: Francis Glassborow: "Re: [C++] Omitted return statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|