mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
gpg: Silence a compiler warning.
* g10/parse-packet.c (enum_sig_subpkt): Replace hack. -- GCC 5 failure reported by Kevin Locke <kevin@kevinlocke.name> (backport from master commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4)
This commit is contained in:
parent
fea9d4354c
commit
b1653a4083
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user