[just now noticing an old thread]

On 06/03/2013 05:05 AM, Colin Watson wrote:
> I get these warnings from a project using Gnulib 20130529:
> 
>   glob.c:165:1: warning: '__leaf__' attribute has no effect on unit local 
> functions [-Wattributes]
>   glob.c:213:1: warning: '__leaf__' attribute has no effect on unit local 
> functions [-Wattributes]
>   glob.c:214:1: warning: '__leaf__' attribute has no effect on unit local 
> functions [-Wattributes]
> 
> These are from uses of __THROW on static functions.  Is it perhaps worth
> using (and defining if necessary) __THROWNL instead, which I think would
> pacify these warnings?

What version of gcc and what CFLAGS were you using?  Yes, this is
probably worth fixing.

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to