contrib/rpm: don't force fatal warnings with tests

It just doesn't make sense and just breaks stuff when nobody asked for
it.
This commit is contained in:
Lubomir Rintel 2018-02-08 12:12:50 +01:00
parent c4c8ffd113
commit f7b5e48cdb

View file

@ -402,11 +402,6 @@ intltoolize --automake --copy --force
--with-dhcpcanon=no \
--with-config-dhcp-default=dhclient \
--with-crypto=nss \
%if %{with test}
--enable-more-warnings=error \
%else
--enable-more-warnings=yes \
%endif
%if %{with sanitizer}
--enable-address-sanitizer \
--enable-undefined-sanitizer \
@ -478,6 +473,7 @@ intltoolize --automake --copy --force
%if %{with test}
--with-tests=yes \
%else
--enable-more-warnings=yes \
--with-tests=no \
%endif
--with-valgrind=no \