This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21678] Using inline disables warnings about missing return statements
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2006 17:04:43 -0000
- Subject: [Bug c++/21678] Using inline disables warnings about missing return statements
- References: <bug-21678-253@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-10-16 17:04 -------
Actually for C++, any inline disables the warning:
inline int fii(int *other)
{
if(!other)return 0;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Using inline + always_inline|Using inline disables
|disables warnings about |warnings about missing
|missing return statements |return statements
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21678