do not build with -Werror by default

This commit is contained in:
Kamil Dudka 2018-03-16 17:20:56 +01:00
parent 288dc3b592
commit cb05dbf215

View File

@ -87,18 +87,7 @@ autoreconf -fiv
%build
export CFLAGS="$RPM_OPT_FLAGS"
%if 0%{?fedora} == 28
# FIXME: This makes the code compile on Fedora 28 but the resulting binaries
# cannot work properly!!!
CFLAGS="$CFLAGS -Wno-error=cast-function-type"
%endif
%ifarch armv7hl
# FIXME: basically the same problem on armv7hl with both Fedora 27 and 28
CFLAGS="$CFLAGS -Wno-error=cast-align"
%endif
%configure --disable-static \
%configure --enable-compile-warnings=yes --disable-static \
%if %{with gst010}
--with-gstreamer-0.10
%else
@ -154,6 +143,7 @@ make check
%changelog
* Fri Mar 16 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-5.20171128gitfb2f1f7
- do not build with -Werror by default
- make the build more verbose
* Fri Feb 09 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-4.20171128gitfb2f1f7