[Bug c++/40614] New: no -Werror= for attribute warn_unused_result

esigra at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 2 05:35:00 GMT 2009


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



More information about the Gcc-bugs mailing list