[Bug c++/27370] [4.0 Regression] Bogus warning about ignoring function return value (__attribute__ ((warn_unused_result)))
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 1 15:24:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list