Accepting request 71854 from security

Disable gcc's new unused-but-set-variable warnings, these are just noise as BIO_*(...) functions returns a value and needs to be handled  (forwarded request 71685 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/71854
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tpm-tools?expand=0&rev=13
This commit is contained in:
Sascha Peilicke 2011-05-30 08:43:55 +00:00 committed by Git OBS Bridge
commit 4e6d8c0c2d
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 27 11:17:43 UTC 2011 - idonmez@novell.com
- Disable gcc's new unused-but-set-variable warnings, these are just
noise as BIO_*(...) functions returns a value and needs to
be handled
-------------------------------------------------------------------
Mon Sep 27 07:54:30 CEST 2010 - meissner@suse.de

View File

@ -29,7 +29,6 @@ Release: 4
Summary: Trusted Platform Module (TPM) administration tools
Source0: %name-%version.tar.bz2
Source1: %name-rpmlintrc
#Patch0: %name-%version.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
@ -51,7 +50,11 @@ Authors:
%setup -q
%build
export RPMOPTFLAGS="$RPM_OPT_FLAGS -Wall -pipe -fno-strict-aliasing"
# Disable unused-but-set warnings with gcc >= 4.6
%if 0%{?suse_version} >= 1200
export CFLAGS="%{optflags} -Wno-unused-but-set-variable"
%endif
%configure --disable-static
make