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++/80458] [-Wreturn-type] false negative on missing return statement in a member function


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think this is because an unused inline function doesn't generate any code, so
isn't seen by the compiler passes that produce the warning.

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