http://llvm.org/bugs/show_bug.cgi?id=10483

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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
codes.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to