public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/7104] New: strtol result is not always needed.
@ 2008-12-18  7:17 dfs1122 at gmail dot com
  2008-12-25 18:13 ` [Bug libc/7104] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dfs1122 at gmail dot com @ 2008-12-18  7:17 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/7104] strtol result is not always needed.
  2008-12-18  7:17 [Bug libc/7104] New: strtol result is not always needed dfs1122 at gmail dot com
@ 2008-12-25 18:13 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2008-12-25 18:13 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2008-12-25 18:11 -------
There are always idiotic code sequences.  For those case work around the warning.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-25 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18  7:17 [Bug libc/7104] New: strtol result is not always needed dfs1122 at gmail dot com
2008-12-25 18:13 ` [Bug libc/7104] " drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).