diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-22 22:45:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-22 22:45:41 +0200 |
commit | 9ed99558e21ac6b81f112670b982262d2349e5a5 (patch) | |
tree | 2b4e5b064a1968f38e736794cc13f38e955f82f4 /src/json | |
parent | a199ba7fe61d1ea0aa7f9dcd4083ae2e52546c40 (diff) |
-fix clang compiler warnings
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 1db65ff66..fd7e99d93 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -419,7 +419,9 @@ parse_age_commitment (void *cls, unsigned int idx; size_t num; - if (NULL == root || ! json_is_array (root)) + (void) cls; + if ( (NULL == root) || + (! json_is_array (root))) { GNUNET_break_op (0); return GNUNET_SYSERR; @@ -645,7 +647,8 @@ parse_denom_pub_cipher (void *cls, struct GNUNET_JSON_Specification *spec) { struct TALER_DenominationPublicKey *denom_pub = spec->ptr; - enum TALER_DenominationCipher cipher = (enum TALER_DenominationCipher) cls; + enum TALER_DenominationCipher cipher = + (enum TALER_DenominationCipher) (long) cls; const char *emsg; unsigned int eline; |