This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/7104] New: strtol result is not always needed.
- From: "dfs1122 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Dec 2008 07:16:35 -0000
- Subject: [Bug libc/7104] New: strtol result is not always needed.
- Reply-to: sourceware-bugzilla at sourceware dot org
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.