From f7c45941344ecfbcdd5d9b311b61573d37c6ef58 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 13:48:28 +0000 Subject: Fix further 'variable set but not used' warnings reported from GCC 4.6.0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/keybox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/plugins/keybox.c') diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c index 932fc5fd47..570f4e6c76 100644 --- a/apps/plugins/keybox.c +++ b/apps/plugins/keybox.c @@ -465,7 +465,6 @@ static int parse_buffer(void) static void write_output(int fd) { - size_t bytes_written; int i; size_t len, size; char *p = &buffer[HEADER_LEN]; /* reserve space for salt + hash */ @@ -498,7 +497,7 @@ static void write_output(int fd) encrypt_buffer(&buffer[8], size, &key.words[0]); rb->memcpy(&buffer[0], &salt, sizeof(salt)); - bytes_written = rb->write(fd, &buffer, size); + rb->write(fd, &buffer, size); } static int enter_pw(char *pw_buf, size_t buflen, bool new_pw) -- cgit v1.2.3