]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Disable -Werror in Fedora RPM builds
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Dec 2014 15:24:01 +0000 (15:24 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Dec 2014 18:08:45 +0000 (18:08 +0000)
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

libvirt.spec.in

index 264c06fce32527989232687ea4df3c5b085390aa..edf2df8af24ad4bc37ff148bbff756fe6f7dd268 100644 (file)
 # changes in reported warnings
 %if 0%{?rhel}
     %define enable_werror --enable-werror
+else
+    %define enable_werror --disable-werror
 %endif