summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-08-02 18:03:45 +0200
committerLubomir Rintel <lkundrak@v3.sk>2022-08-02 18:03:45 +0200
commit3ce34510402517dfdffb8fc541c97ff8a457f0b9 (patch)
tree968bc966568230819c4e10fd2a41679f198999c7 /contrib
parent5b7f8f3f7051fb46c409dd1b5e07ad27fb98e793 (diff)
downloadNetworkManager-3ce34510402517dfdffb8fc541c97ff8a457f0b9.tar.gz
Revert "contrib/rpm: enable -Werror on --with debug instead of --with test"
This reverts commit cac11c736d3cc86a657963fec8d3124bb3d0301c. It went in accidentally.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 113c725a17..5063a16b99 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -611,6 +611,9 @@ Preferably use nmcli instead.
%meson \
-Db_ndebug=false \
--warnlevel 2 \
+%if %{with test}
+ --werror \
+%endif
-Dnft=/usr/sbin/nft \
-Diptables=/usr/sbin/iptables \
-Ddhcpcanon=no \
@@ -622,7 +625,6 @@ Preferably use nmcli instead.
-Dcrypto=nss \
%endif
%if %{with debug}
- --werror \
-Dmore_logging=true \
-Dmore_asserts=10000 \
%else
@@ -764,11 +766,9 @@ autoreconf --install --force
--disable-undefined-sanitizer \
%endif
%if %{with debug}
- --enable-more-warnings=error \
--enable-more-logging \
--with-more-asserts=10000 \
%else
- --enable-more-warnings=yes \
--disable-more-logging \
--without-more-asserts \
%endif
@@ -846,6 +846,11 @@ autoreconf --install --force
--with-system-ca-path=/etc/pki/tls/cert.pem \
--with-dbus-sys-dir=%{dbus_sys_dir} \
--with-tests=yes \
+%if %{with test}
+ --enable-more-warnings=error \
+%else
+ --enable-more-warnings=yes \
+%endif
--with-valgrind=no \
--enable-ifcfg-rh=yes \
--enable-ifupdown=no \