public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27371]  New: [4.1/4.2 Regression] Does not warn about unused function result (__attribute__((warn_unused_result)))
@ 2006-05-01 15:41 rguenth at gcc dot gnu dot org
  2006-05-02 15:35 ` [Bug c++/27371] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-01 15:41 UTC (permalink / raw)
  To: gcc-bugs

class QByteArray {
public:
  QByteArray(const QByteArray &);
};
class QString {
  QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result));
  void fooWarnHere() const { toLocal8Bit(); }
};

Does not complain about fooWarnHere().  4.0.3 did this.


-- 
           Summary: [4.1/4.2 Regression] Does not warn about unused function
                    result (__attribute__((warn_unused_result)))
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27371


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-09-08  7:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01 15:41 [Bug c++/27371] New: [4.1/4.2 Regression] Does not warn about unused function result (__attribute__((warn_unused_result))) rguenth at gcc dot gnu dot org
2006-05-02 15:35 ` [Bug c++/27371] " pinskia at gcc dot gnu dot org
2006-05-04 14:47 ` rguenth at gcc dot gnu dot org
2006-05-14 22:32 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
2006-09-06  5:49 ` jason at gcc dot gnu dot org
2006-09-06  5:59 ` jason at gcc dot gnu dot org
2006-09-06 18:47 ` jason at gcc dot gnu dot org
2006-09-07  1:13 ` jason at gcc dot gnu dot org
2006-09-07 21:10 ` [Bug c++/27371] [4.1 " hjl at lucon dot org
2006-09-07 22:47 ` jason at gcc dot gnu dot org
2006-09-07 22:51 ` jason at redhat dot com
2006-09-07 23:07 ` jason at gcc dot gnu dot org
2006-09-08  7:40 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).