[libvirt] [PATCH] build: avoid compiler warning
Matthias Bolte
matthias.bolte at googlemail.com
Mon May 3 23:05:01 UTC 2010
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.
Matthias
More information about the libvir-list
mailing list