# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1306148353 -7200
# Branch HEAD
# Node ID 8d8495a033a8f939a8db262cbe847e47147a2417
# Parent  5782f65d3772274f8971091329757bc9e884d201
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 <[email protected]>

diff -r 5782f65d3772 -r 8d8495a033a8 pgp.c
--- a/pgp.c     Mon May 23 12:59:12 2011 +0200
+++ b/pgp.c     Mon May 23 12:59:13 2011 +0200
@@ -251,7 +251,6 @@ int pgp_application_pgp_handler (BODY *m
   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
     if (mutt_strncmp ("-----BEGIN PGP ", buf, 15) == 0)
     {
       clearsign = 0;
-      start_pos = last_pos;
 
       if (mutt_strcmp ("MESSAGE-----\n", buf + 15) == 0)
         needpass = 1;

Reply via email to