------- Comment #2 from rguenth at gcc dot gnu dot org 2006-05-01 15:24 ------- Though 4.1.0 seems to not warn at all:
class QByteArray { public: QByteArray(const QByteArray &); }; class QString { QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result)); inline QByteArray local8Bit() const{ return toLocal8Bit(); } void fooWarnHere() const { toLocal8Bit(); } }; should warn for fooWarnHere, but doesn't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27370