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

Bug#119440: g++: Compiler does not give any errors when a function fails to return required value

On Tue, Nov 13, 2001 at 17:54:14 +0200, Eray Ozkural (exa) wrote:
> In the current case, the compiler does not even give a warning message
> by default. Giving an error message might break valid C++ code (which
> I'm not sure of) but it seems that when you specify -Wall

-Wreturn-type suffices.

> I think this should be the default behavior, which may be suppressed with
> a flag if desired.

Why should this warning be treated any differently from the other warnings
-Wall activates?

People don't respond to any events as real people facing events would.
Otherwise, only one company would ever have installed Microsloth software.
	Paul Tomko in <3a033dbf$1$1584$392904a7@news.execpc.com>

Reply to: