This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40614] New: no -Werror= for attribute warn_unused_result
- From: "esigra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2009 05:35:13 -0000
- Subject: [Bug c++/40614] New: no -Werror= for attribute warn_unused_result
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There is no way to get an error for ignoring the result of a function with
attribute warn_unused_result. There should be something like
-Werror=unused-return-value (or attribute error_unused_result).
--
Summary: no -Werror= for attribute warn_unused_result
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: esigra at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40614