Commit 8b52b8d1 authored by Olaf Hering's avatar Olaf Hering

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's avatarOlaf Hering <olaf@aepfle.de>
parent f808969d
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment