[libvirt] [PATCH] build: avoid compiler warning

Eric Blake eblake at redhat.com
Mon May 3 23:15:44 UTC 2010


On 05/03/2010 05:05 PM, Matthias Bolte wrote:
> 2010/5/4 Eric Blake <eblake at redhat.com>:
>> Necessary on cygwin, where uid_t and gid_t are 4-byte long rather
>> than int, causing gcc -Wformat warnings.
>>
>> * src/util/util.c (virFileOperationNoFork, virDirCreateNoFork)
>> (virFileOperation, virDirCreate, virGetUserEnt): Cast uid_t and
>> gid_t before passing to printf.
>> * .gitignore: Ignore Windows executables.
>> ---
>>
>> changes in v2:
>> use unsigned int for all casts
>> change a %d to %u
>> tweak commit log wording
>>
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100503/9de505e2/attachment-0001.sig>


More information about the libvir-list mailing list