mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 04:30:16 +01:00
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 7d00a96d23)
This commit is contained in:
parent
1685c79c19
commit
b1134f2d3b
1 changed files with 4 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue