[Bug preprocessor/51391] pragma GCC diag ignored then warning of Winline activates -fno-inline
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 3 03:16:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51391
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-03 03:15:48 UTC ---
inlineBug.h:16:8: warning: function ‘inlineBug::inlineBug()’ can never be
inlined because it is suppressed using -fno-inline
Without any -On (or -O or -Os), -fno-inline is the default. The warnings are
correct based on what you are asking of the compiler.
More information about the Gcc-bugs
mailing list