diff options
author | Werner Koch <[email protected]> | 2014-09-18 13:08:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-09-18 13:09:10 +0000 |
commit | 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4 (patch) | |
tree | 1783afc6c7f4eee9cc453f410ded49804b6c8a85 /g10/parse-packet.c | |
parent | gpg: Replace a hash algo test function. (diff) | |
download | gnupg-6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4.tar.gz gnupg-6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4.zip |
gpg: Silence a compiler warning.
* g10/parse-packet.c (enum_sig_subpkt): Replace hack.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index edaa84da4..f7b2079b0 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -1428,11 +1428,10 @@ enum_sig_subpkt (const subpktarea_t * pktbuf, sigsubpkttype_t reqtype, 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; |