Accepting request 501149 from home:michals

fix gcc7 build

OBS-URL: https://build.opensuse.org/request/show/501149
OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=9
This commit is contained in:
John Jolly 2017-06-08 18:27:25 +00:00 committed by Git OBS Bridge
parent 4139df8c72
commit 3574d964cf
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -ur ibmswtpm2-832.org/src/CompilerDependencies.h ibmswtpm2-832/src/CompilerDependencies.h
--- ibmswtpm2-832.org/src/CompilerDependencies.h 2016-11-16 19:31:54.000000000 +0100
+++ ibmswtpm2-832/src/CompilerDependencies.h 2017-06-05 13:47:16.005232774 +0200
@@ -142,7 +142,7 @@
# define LIB_IMPORT
# define _REDUCE_WARNING_LEVEL_(n)
# define _NORMAL_WARNING_LEVEL_
-# define NOT_REFERENCED(x) (x = x)
+# define NOT_REFERENCED(x) (void)(x)
#endif // _MSC_VER
#ifdef TPM_POSIX
Only in ibmswtpm2-832/src: CompilerDependencies.h~

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 5 11:49:18 UTC 2017 - msuchanek@suse.com
- fic build with gcc7: fix_unreferenced_macro-gcc7.patch
-------------------------------------------------------------------
Tue Feb 14 12:16:37 UTC 2017 - msuchanek@suse.com

View File

@ -28,6 +28,7 @@ Url: https://sourceforge.net/projects/ibmswtpm2
Source: ibmtpm%{version}.tar
Patch1: makefile.patch
Patch2: bits.patch
Patch3: fix_unreferenced_macro-gcc7.patch
# FIXME this is broken on BE - upstream is waiting for current spec testing to finish before porting
ExcludeArch: ppc ppc64 s390 s390x
BuildRequires: libopenssl-devel < 1.1
@ -49,6 +50,7 @@ implementation because of this specific interface.
%setup -c -q
%patch1 -p 1
%patch2 -p 1
%patch3 -p 1
%build
cd src