[LLVMbugs] [Bug 10483] New: Insert warn_unused_result attributes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 25 13:47:27 PDT 2011


           Summary: Insert warn_unused_result attributes
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: scshunt at csclub.uwaterloo.ca
                CC: llvmbugs at cs.uiuc.edu

There are many functions in the standard library that should have
warn_unused_result, such as most const member functions (the example that
sparked this bug was c_str() in a void context). Potentially there should be a
macro to disable them on functions where ignoring the return value is not
necessarily a hard bug, as it might be with some C functions that return error

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list