https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64875
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think this warning is very relevant to C++. In C++ 'inline' is more useful for telling the compiler that the function may be defined in mutiple translation units, and that is typically more important than whether it is actually inlined or not.