From: Olaf Hering Date: Mon, 23 May 2011 10:59:13 +0000 (+0200) Subject: fix gcc 4.6 warning -Wunused-but-set-variable in pgp.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e35e4790961c3cbb164e3d7a7823d361984c5112;p=neomutt fix gcc 4.6 warning -Wunused-but-set-variable in pgp.c pgp.c: In function 'pgp_application_pgp_handler': pgp.c:254:8: warning: variable 'start_pos' set but not used [-Wunused-but-set-variable] Signed-off-by: Olaf Hering --- diff --git a/pgp.c b/pgp.c index bf3640a6d..506a078d1 100644 --- a/pgp.c +++ b/pgp.c @@ -251,7 +251,6 @@ int pgp_application_pgp_handler (BODY *m, STATE *s) int needpass = -1, pgp_keyblock = 0; int clearsign = 0, rv, rc; int c = 1; /* silence GCC warning */ - long start_pos = 0; long bytes; LOFF_T last_pos, offset; char buf[HUGE_STRING]; @@ -285,7 +284,6 @@ int pgp_application_pgp_handler (BODY *m, STATE *s) if (mutt_strncmp ("-----BEGIN PGP ", buf, 15) == 0) { clearsign = 0; - start_pos = last_pos; if (mutt_strcmp ("MESSAGE-----\n", buf + 15) == 0) needpass = 1;