[cairo-bugs] [Bug 58727] warn_unused_result noise

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 7 10:55:40 PDT 2014


--- Comment #6 from Bill Spitzak <spitzak at gmail.com> ---
I think the complaint is about strtol(), which is being used apparently 
to find the other end of the numeric value (returned in the char** arg) 
while the number is ignored, thus causing this error.

It does seem that nobody is going to "accidentally" ignore the result of 
strtol. The warning really should be on functions returning things you 
*must* do something with, for instance malloc() where if you don't free 
the returned value you have a memory leak.

And they really should restore the (void)fn() work-around, which is 

On 05/07/2014 07:34 AM, bugzilla-daemon at freedesktop.org wrote:
> *Comment # 5 <https://bugs.freedesktop.org/show_bug.cgi?id=58727#c5> on
> bug 58727 <https://bugs.freedesktop.org/show_bug.cgi?id=58727> from
> Daniel Macks <mailto:dmacks at netspace.org> *
> Thinking slightly more philosophically, do those functions really need to be
> (warn_unused_result)? Or, if it's important not to ignore the result, why are
> we ignoring the result?
> ------------------------------------------------------------------------
> You are receiving this mail because:
>   * You are watching the QA Contact of the bug.

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140507/5bacabbf/attachment.html>

More information about the cairo-bugs mailing list