[libvirt] [PATCH] build: force correct gcc syntax for attribute_nonnull

Eric Blake eblake at redhat.com
Mon Feb 18 21:19:36 UTC 2013


On 02/18/2013 01:47 PM, Laine Stump wrote:
> On 02/18/2013 03:42 PM, Eric Blake wrote:
>> Gcc lets you do:
>>
>> int ATTRIBUTE_NONNULL(1) foo(void *param);
>> int foo(void *param) ATTRIBUTE_NONNULL(1);
>> int ATTRIBUTE_NONNULL(1) foo(void *param) { ... }
>>
>> but chokes on:
>>
>> int foo(void *param) ATTRIBUTE_NONNULL(1) { ... }
>>

>>
>> * src/internal.h (ATTRIBUTE_NONNULL): Expand to empty attribute,
>> rather than nothing, when on gcc.

> 
> ACK.

Thanks; pushed.

-- 
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://listman.redhat.com/archives/libvir-list/attachments/20130218/056620df/attachment-0001.sig>


More information about the libvir-list mailing list