Date: Fri, 13 May 2016 07:10:32 +0200 Subject: [PATCH 2/2] tcgbios: Remove unused const variable
Remove the unused array `PhysicalPresence_CMD_DISABLE` to fix the GCC 6 warnings below.
``` $ gcc-6 --version gcc-6 (Debian 6.1.1-3) 6.1.1 20160511 […] $ make -j CC=gcc-6 […] Compile checking out/src/tcgbios.o […] src/tcgbios.c:36:17: warning: 'PhysicalPresence_CMD_DISABLE' defined but not used [-Wunused-const-variable=] static const u8 PhysicalPresence_CMD_DISABLE[] = { 0x01, 0x00 }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Signed-off-by: Paul Menzel paulepanter@users.sourceforge.net --- src/tcgbios.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/src/tcgbios.c b/src/tcgbios.c index ddf4f79..334d99b 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -33,7 +33,6 @@ static const u8 Startup_ST_CLEAR[] = { 0x00, TPM_ST_CLEAR }; static const u8 Startup_ST_STATE[] = { 0x00, TPM_ST_STATE }; static const u8 PhysicalPresence_CMD_ENABLE[] = { 0x00, 0x20 }; -static const u8 PhysicalPresence_CMD_DISABLE[] = { 0x01, 0x00 }; static const u8 PhysicalPresence_PRESENT[] = { 0x00, 0x08 }; static const u8 PhysicalPresence_NOT_PRESENT_LOCK[] = { 0x00, 0x14 }; -- 2.8.1
On Fri, May 13, 2016 at 07:29:30AM +0200, Paul Menzel wrote:
Date: Fri, 13 May 2016 07:10:32 +0200 Subject: [PATCH 2/2] tcgbios: Remove unused const variable
Remove the unused array `PhysicalPresence_CMD_DISABLE` to fix the GCC 6 warnings below.
Thanks. Your patches got corrupted, but I applied them manually.
-Kevin