Gcc warning fixed in spec file

This commit is contained in:
Honza Horak 2011-02-01 17:54:01 +01:00
parent 730bcb0a08
commit 42031f98df

View File

@ -16,7 +16,6 @@ Patch6: cdrkit-1.1.10-build-fix.patch
Patch7: cdrkit-1.1.11-manpagefix.patch
Patch8: cdrkit-1.1.11-rootstat.patch
BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -101,7 +100,7 @@ find doc -type f -print0 | xargs -0 chmod a-x
%build
mkdir fedora
cd fedora
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -fno-strict-aliasing"
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
export FFLAGS="$CFLAGS"
cmake .. \