Do not warn about missing braces in initialisation on RHEL 7.
This commit is contained in:
parent
82678f4764
commit
e72ee05413
@ -13,6 +13,10 @@
|
|||||||
%global _with_imlib2 --with-imlib2
|
%global _with_imlib2 --with-imlib2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if ! 0%{?fedora} && 0%{?rhel} <= 7
|
||||||
|
%global _missing_braces -Wno-error=missing-braces
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Open source remote desktop protocol (RDP) server
|
Summary: Open source remote desktop protocol (RDP) server
|
||||||
Name: xrdp
|
Name: xrdp
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
@ -111,7 +115,7 @@ echo '#!/bin/bash -l
|
|||||||
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh
|
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \
|
CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations %{?_missing_braces}" \
|
||||||
%configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \
|
%configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \
|
||||||
--enable-ipv6 --with-socketdir=%{_rundir}/%{name} %{?_with_imlib2}
|
--enable-ipv6 --with-socketdir=%{_rundir}/%{name} %{?_with_imlib2}
|
||||||
%make_build
|
%make_build
|
||||||
|
Loading…
Reference in New Issue
Block a user