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
|
||||
%endif
|
||||
|
||||
%if ! 0%{?fedora} && 0%{?rhel} <= 7
|
||||
%global _missing_braces -Wno-error=missing-braces
|
||||
%endif
|
||||
|
||||
Summary: Open source remote desktop protocol (RDP) server
|
||||
Name: xrdp
|
||||
Epoch: 1
|
||||
@ -111,7 +115,7 @@ echo '#!/bin/bash -l
|
||||
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh
|
||||
|
||||
%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 \
|
||||
--enable-ipv6 --with-socketdir=%{_rundir}/%{name} %{?_with_imlib2}
|
||||
%make_build
|
||||
|
Loading…
Reference in New Issue
Block a user