[Bug c++/41830] Missing "warning: control reaches end of non-void function" in -O2

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 27 02:42:00 GMT 2009



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-10-27 02:41 -------
Fixed on the trunk for 4.5.0, most likely by:
2008-09-17  Jan Hubicka  <jh@suse.cz>

        PR c++/18071
        * tree.h (DECL_INLINE): remove.
        (DECL_DECLARED_INLINE_P): Update docs.
        (DECL_NO_INLINE_WARNING_P): new.
        (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
        * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |diagnostic
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41830



More information about the Gcc-bugs mailing list