Warnings in stl_deque.h
Peter Simons
peter.simons@gmd.de
Tue Sep 22 16:36:00 GMT 1998
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> Mike Stump writes:
> What missing return statement? The above is valid ANSI C++ [...]
Well, no doubt about that. Arguably, though, it wouldn't hurt if there
were a warning when compiling with -pedantic. Maybe a small one. :-)
Falling out of a routine that is supposed to return a value is never a
good idea, be it main() or not.
-peter
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
iQCVAwUBNggszw9HL1s0103BAQHmWwP/ZuFvTZAW89hyUABFwVcegwwHSYgdL89L
3g8b8Y4mrt8Ot5p2G4+2iyVLDZXFGb1yWtgHlBDx9t2rK7YQ0yCVm2QEmmjfYWtm
Gc7h7B73pDP25eZl2xSioqjS9mB3Z1jKbTuD2Dw6DHSLV1ogqwc3knWP4ReAAQU6
zzTJLxifzik=
=sKka
-----END PGP SIGNATURE-----
More information about the Gcc-bugs
mailing list