]> granicus.if.org Git - neomutt/commitdiff
fix gcc 4.6 warning -Wunused-but-set-variable in pgppubring.c
authorOlaf Hering <olaf@aepfle.de>
Mon, 23 May 2011 10:59:14 +0000 (12:59 +0200)
committerOlaf Hering <olaf@aepfle.de>
Mon, 23 May 2011 10:59:14 +0000 (12:59 +0200)
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 <olaf@aepfle.de>
pgppubring.c

index b85dca0e5723590c7e9b78a89d7adc21d3347d66..654e4f4eade7708507083b4d57331b80d060977e 100644 (file)
@@ -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++)
   {