This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21678] Using inline disables warnings about missing return statements



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]