[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.29-11-gb1653a4

by Werner Koch cvs at cvs.gnupg.org
Thu Oct 1 07:33:54 CEST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-0 has been updated
       via  b1653a4083b91cfa85d90f59612fa1c3f4d51778 (commit)
      from  fea9d4354c93b662c75febe020fb799ce4f2ec89 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b1653a4083b91cfa85d90f59612fa1c3f4d51778
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Sep 18 15:08:51 2014 +0200

    gpg: Silence a compiler warning.
    
    * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
    
    --
    
    GCC 5 failure reported by Kevin Locke <kevin at kevinlocke.name>
    
    (backport from master commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4)

diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index a8f9d99..c925e94 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -1258,10 +1258,10 @@ enum_sig_subpkt( const subpktarea_t *pktbuf, sigsubpkttype_t reqtype,
       critical=&critical_dummy;
 
     if( !pktbuf || reqseq == -1 ) {
-	/* return some value different from NULL to indicate that
-	 * there is no critical bit we do not understand.  The caller
-	 * will never use the value.  Yes I know, it is an ugly hack */
-	return reqtype == SIGSUBPKT_TEST_CRITICAL? (const byte*)&pktbuf : NULL;
+	static char dummy[] = "x";
+	/* Return a value different from NULL to indicate that
+	 * there is no critical bit we do not understand.  */
+	return reqtype ==	SIGSUBPKT_TEST_CRITICAL ? dummy : NULL;
     }
     buffer = pktbuf->data;
     buflen = pktbuf->len;

-----------------------------------------------------------------------

Summary of changes:
 g10/parse-packet.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list