[libvirt] [PATCH] util: Fix build on s390
Eric Blake
eblake at redhat.com
Thu Oct 13 13:36:54 UTC 2016
On 10/07/2016 05:43 AM, Jiri Denemark wrote:
> GCC on s390 complains
>
> util/virconf.c: In function 'virConfGetValueSizeT':
> util/virconf.c:1220:9: error: format '%zu' expects argument of type
> 'size_t', but argument 9 has type 'unsigned int' [-Werror=format=]
>
That's a bug in s390's system headers. Gnulib should be taught to work
around it.
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> src/util/virconf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/util/virconf.c b/src/util/virconf.c
> index 3e49f41..1372389 100644
> --- a/src/util/virconf.c
> +++ b/src/util/virconf.c
> @@ -1219,7 +1219,7 @@ int virConfGetValueSizeT(virConfPtr conf,
> if (((unsigned long long)cval->l) > SIZE_MAX) {
> virReportError(VIR_ERR_INTERNAL_ERROR,
> _("%s: value for '%s' parameter must be in range 0:%zu"),
> - conf->filename, setting, SIZE_MAX);
> + conf->filename, setting, (size_t) SIZE_MAX);
> return -1;
> }
> #endif
>
--
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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161013/cd9b280c/attachment-0001.sig>
More information about the libvir-list
mailing list