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

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Are there any warnings that are enabled by default?

Thanks,

On Tuesday 13 November 2001 23:40, Martin v. Loewis wrote:
> *If* control flow ever falls through the end of a function that needs
> to return a value, the behaviour is undefined. GCC offers the
> -Wreturn-type option to detect this kind of problem. Of course,
> detection cannot be reliable, so the warning is off by default (which
> is also documented).

- -- 
Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE78Z7HfAeuFodNU5wRAqygAKCPhFTSr96GtYDOzHQsLrqw/NEgCQCfZ6GX
yZyypdNGLkmZ142IgZW8YlE=
=tV+v
-----END PGP SIGNATURE-----



Reply to: