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@xxxxxxxxxx> > --- > 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
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list