From: Daniel P. Berrange Date: Mon, 15 Dec 2014 15:24:01 +0000 (+0000) Subject: spec: Disable -Werror in Fedora RPM builds X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=34f03984a6f6d3e5a08a67e2fd844aa9aab6150c;p=libvirt.git spec: Disable -Werror in Fedora RPM builds Since we switched to using GIT to apply patches in the RPM spec, we automagically also turned on -Werror, since the .git directory now exists. We don't want this on in Fedora, since changing header files often lead to new warnings being issued. Explicitly turn off -Werror for non-RHEL platforms, instead of relying on the defaults --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 264c06fce3..edf2df8af2 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -357,6 +357,8 @@ # changes in reported warnings %if 0%{?rhel} %define enable_werror --enable-werror +else + %define enable_werror --disable-werror %endif