# HG changeset patch # User Olaf Hering <[email protected]> # Date 1306148354 -7200 # Branch HEAD # Node ID a6fb39a7847a1d27ecb6896fe6df3f8902a8ca22 # Parent 27fb2d16bd930ea6f1457aa78befab996bcb5d02 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 <[email protected]> diff -r 27fb2d16bd93 -r a6fb39a7847a pgppubring.c --- a/pgppubring.c Mon May 23 12:59:13 2011 +0200 +++ b/pgppubring.c Mon May 23 12:59:14 2011 +0200 @@ -420,8 +420,6 @@ static int pgp_parse_pgp3_sig (unsigned 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 j = 2; sigtype = buff[j++]; - pkalg = buff[j++]; - hashalg = buff[j++]; + j += 2; /* pkalg, hashalg */ for (ii = 0; ii < 2; ii++) {
