summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-09-10 22:01:44 +0200
committerThomas Haller <thaller@redhat.com>2017-09-20 12:47:39 +0200
commitb1134f2d3b4c54fb3cab48a08a2a7fa7c6b640ca (patch)
tree3c5dceb106ca027e6b782a4d86b5fa4aaba2cec8
parent1685c79c19756099d5e845a99f146dec8a0306f3 (diff)
downloadNetworkManager-b1134f2d3b4c54fb3cab48a08a2a7fa7c6b640ca.tar.gz
contrib/rpm: allow building RPM without fatal warnings
A newer compiler version might emit some warnings and break the build of the RPM. Of course, such warnings must be fixed. But it is still very inconvenient to break the build of an old RPM version without easy workaround. When building without "test" (which is on by default), don't use fatal warnings for compilation. (cherry picked from commit 7d00a96d235c149b8b03238c2b8269e050d01f4b)
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 56638b4c66..efd6404cf0 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -371,7 +371,11 @@ intltoolize --automake --copy --force
--with-dhclient=yes \
--with-dhcpcd=no \
--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 \