bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lack of return values not reported


From: Kenton Varda
Subject: Lack of return values not reported
Date: Tue, 22 May 2001 07:11:35 GMT

For some reason, GCC often will not tell me when I forget to return a
value from a non-void function.  Even with -Wall, I get no indication of
the problem.  I can't imagine why this would be anything other than an
error, but at least a warning would be very helpful.  This is especially
frustrating when, say, a function is supposed to return a string, and
the caller just ends up segfaulting in some obscure STL function.

I am currently using GCC 2.96 (via RedHat 7.1), but I have had this
problem with 2.95 as well.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]