Turning off -Werror

Richard W.M. Jones rjones at redhat.com
Wed Jul 28 10:20:27 UTC 2021


  commit 3c3c55be66e230ef09ad927eda038dc32f01a166
  Author: Daniel P. Berrangé <berrange at redhat.com>
  Date:   Thu Apr 8 11:50:30 2021 +0100

    meson: don't probe for -Werror if --werror is enabled

Builds are failing in Fedora Rawhide at the moment because of a
warning being turned into an error.  Fedora's spec file has this which
is supposed to turn off -Werror, but it no longer works after the
above commit was added.

https://src.fedoraproject.org/rpms/libvirt/blob/rawhide/f/libvirt.spec#_189

I'm trying to understand how you're supposed to turn off -Werror.
According to meson documentation omitting --werror should work.
According to some different docs, use --werror=false.  Neither are
working for me.

I'm actually wondering if the commit above is wrong.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the libvir-list mailing list