From 12fb3f5c0b225663e5dd6b8ddbb18f73350a2c9008f70ddabf4e81e3ec75dc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Sat, 28 May 2011 21:12:32 +0000 Subject: [PATCH] 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 --- tpm-tools.changes | 7 +++++++ tpm-tools.spec | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tpm-tools.changes b/tpm-tools.changes index 4eefc0f..2f2f9ba 100644 --- a/tpm-tools.changes +++ b/tpm-tools.changes @@ -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 diff --git a/tpm-tools.spec b/tpm-tools.spec index 7c2f13d..91298c8 100644 --- a/tpm-tools.spec +++ b/tpm-tools.spec @@ -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