[PATCH] build: don't use attribute((leaf)) on static functions

Eric Blake eblake@redhat.com
Wed Oct 2 22:37:00 GMT 2013


On 10/02/2013 12:03 PM, Mike Frysinger wrote:
> On Tuesday 01 October 2013 21:38:04 Eric Blake wrote:
>> Remember, attribute((leaf)) makes sense only for extern
>> functions, and as some versions of gcc warn about its use
>> on static functions, using __THROWNL for those will have
>> no change in intended semantics.
> 
> seems worthy of adding to `make check` ?

Indeed - but how do I go about doing that?  It looks like there are a
couple of existing syntax-checker style rules - if I create a new file
scripts/check-*, will it automatically get run by 'make check'?  I'm not
familiar enough with the glibc layout to know where to begin tackling
this.  Help would be appreciated.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20131002/c0d8688a/attachment.sig>


More information about the Libc-alpha mailing list