From: Olaf Hering Date: Mon, 23 May 2011 10:59:14 +0000 (+0200) Subject: fix gcc 4.6 warning -Wunused-but-set-variable in pgppubring.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dae29696b2559313136d8a1b71792a9656ead0d2;p=neomutt 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 --- diff --git a/pgppubring.c b/pgppubring.c index b85dca0e5..654e4f4ea 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++) {