Re: [PATCH] Do partial xfers from trace file

Mike Frysinger
2010-04-13T20:21:02Z

[-- Attachment #1: Type: Text/Plain, Size: 866 bytes --]

On Tuesday 13 April 2010 12:26:38 Tom Tromey wrote:
> >>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
> >> tracepoint.c:3895: error: ignoring return value of ‘read’, declared
> >> with attribute warn_unused_result
>
> Stan> It's a little weird that some people get a complaint and others
> Stan> don't... In any case, it's just an oversight, all the other read
> Stan> results are being checked, and so I just committed the fix below.
>
> There is a distro difference here. Some distros have warn_unused_result
> enabled by default on some functions.

not exactly ... all distros that keep up with mainline glibc have this
enumeration. some distros (like Ubuntu and Gentoo) enable _FORTIFY_SOURCE by
default in their gcc which signals glibc to apply the warn_unused_result
attribute to a lot of functions (like read()).
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]