https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61229

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-04-28
                 CC|                            |jason at gcc dot gnu.org
          Component|c++                         |middle-end
            Summary|warn_unused_result fails to |warn_unused_result doesn't
                   |work with member functions  |warn in unused inline
                   |                            |function
     Ever confirmed|0                           |1

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
The testcases in comments 2 and 3 are covered by bug 38172.  The original issue
is with unused inline functions, and affects C as well:

__attribute__((warn_unused_result)) int callme( ) { return 42; }

inline void foo()
{
  callme();
}

Reply via email to