[SeaBIOS] [PATCH] tcgbios: Remove unused const variable

Paul Menzel paulepanter at users.sourceforge.net
Fri May 13 07:29:30 CEST 2016


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/seabios/attachments/20160513/5f335f9a/attachment.asc>


More information about the SeaBIOS mailing list