This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/7104] New: strtol result is not always needed.


Version: 2.8~20080505-0ubuntu7

warning: ignoring return value of 'strtol', declared with attribute
warn_unused_result

strtol has useful side-effects that do not require examination of the result. 
For example, (void)strtol(string,&string,0) will skip an unneeded number in string.

Suggest warn_unused_result is not applied to strtol and family.

-- 
           Summary: strtol result is not always needed.
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: dfs1122 at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7104

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]