From 8b52b8d15f8c00ecc240e95d1d4e0b83a0f34de5 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 23 May 2011 12:59:14 +0200 Subject: [PATCH] fix gcc 4.6 warning -Wunused-but-set-variable in pgppubring.c pgppubring.c: In function 'pgp_parse_pgp3_sig': pgppubring.c:424:17: warning: variable 'hashalg' set but not used [-Wunused-but-set-variable] pgppubring.c:423:17: warning: variable 'pkalg' set but not used [-Wunused-but-set-variable] Signed-off-by: Olaf Hering --- pgppubring.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pgppubring.c b/pgppubring.c index b85dca0e..654e4f4e 100644 --- a/pgppubring.c +++ b/pgppubring.c @@ -420,8 +420,6 @@ static int pgp_parse_pgp3_sig (unsigned char *buff, size_t l, pgp_key_t p, pgp_sig_t *s) { unsigned char sigtype; - unsigned char pkalg; - unsigned char hashalg; unsigned char skt; time_t sig_gen_time = -1; long validity = -1; @@ -440,8 +438,7 @@ static int pgp_parse_pgp3_sig (unsigned char *buff, size_t l, j = 2; sigtype = buff[j++]; - pkalg = buff[j++]; - hashalg = buff[j++]; + j += 2; /* pkalg, hashalg */ for (ii = 0; ii < 2; ii++) { -- 2.40.0