From 7744acbb6bb8e88f28d3cbf7671741483964b95e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 28 Jul 2021 10:57:50 +0100 Subject: [PATCH] Fix -Dwerror=false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Libvirt builds were failing because of: ../src/util/virconf.c: In function ‘virConfGetValueStringList’: ../src/util/virconf.c:950:13: error: Not available before 2.60 [-Werror] 950 | G_GNUC_FALLTHROUGH; | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -Werror was being passed to GCC. meson -Dwerror=false was being used which is supposed to disable -Werror, but did not do so. Apparently because of git being used to manage patches, libvirt thinks it is being built from git so we need to use: -Dwerror=false -Dgit_werror=disabled to really kill off -Werror. --- libvirt.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt.spec b/libvirt.spec index be84406..603cf88 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -192,7 +192,7 @@ %if 0%{?rhel} %define enable_werror -Dwerror=true %else - %define enable_werror -Dwerror=false + %define enable_werror -Dwerror=false -Dgit_werror=disabled %endif %define tls_priority "@LIBVIRT,SYSTEM"