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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]