aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-12-07 15:16:44 -0800
committerChih-Hung Hsieh <chh@google.com>2017-12-07 15:16:44 -0800
commit8588bcf7e6fa9026d7b60c6ed81ed91d3d993e80 (patch)
tree98b1698b79a9c053ef13a443c12c4d70f822a0ac
parent2bee1dec3f05ba8f4dd44bc4901774f9e99d96ef (diff)
downloadsdk-8588bcf7e6fa9026d7b60c6ed81ed91d3d993e80.tar.gz
Remove unused local variable.
* These will be errors with default -Werror. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I0c82299c12e928f05bd7a87ae58213d1d27622b0
-rw-r--r--emulator/mksdcard/src/source/mksdcard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/mksdcard/src/source/mksdcard.c b/emulator/mksdcard/src/source/mksdcard.c
index c9a3eeb72..d0b6d5cf6 100644
--- a/emulator/mksdcard/src/source/mksdcard.c
+++ b/emulator/mksdcard/src/source/mksdcard.c
@@ -60,13 +60,13 @@ typedef Byte* Bytes;
static Byte s_boot_sector [ BYTES_PER_SECTOR ]; /* boot sector */
static Byte s_fsinfo_sector [ BYTES_PER_SECTOR ]; /* FS Info sector */
static Byte s_fat_head [ BYTES_PER_SECTOR ]; /* first FAT sector */
-static Byte s_zero_sector [ BYTES_PER_SECTOR ]; /* empty sector */
+// static Byte s_zero_sector [ BYTES_PER_SECTOR ]; /* empty sector */
/* this is the date and time when creating the disk */
static int
get_serial_id( void )
{
- unsigned short lo, hi, mid;
+ unsigned short lo, hi;
time_t now = time(NULL);
struct tm tm = gmtime( &now )[0];