ibmswtpm2/fix_unreferenced_macro-gcc7.patch

14 lines
548 B
Diff

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~