Accepting request 71685 from home:namtrac:branches: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

OBS-URL: https://build.opensuse.org/request/show/71685
OBS-URL: https://build.opensuse.org/package/show/security/tpm-tools?expand=0&rev=10
This commit is contained in:
Cristian Rodríguez 2011-05-28 21:12:32 +00:00 committed by Git OBS Bridge
parent ce0e77aac5
commit 12fb3f5c0b
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