From bdaaa0f6cb8f99168ed9916064a5e4145426480c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 19 Nov 2021 10:57:27 +0100 Subject: -fix misc. compiler warnings --- src/json/json.c | 11 +++++++++++ src/json/json_helper.c | 10 ++++++++++ 2 files changed, 21 insertions(+) (limited to 'src/json') diff --git a/src/json/json.c b/src/json/json.c index 2dfabbf96..62dec7189 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -837,4 +837,15 @@ TALER_JSON_get_error_code2 (const void *data, } +void +TALER_deposit_extension_hash (const json_t *extensions, + struct TALER_ExtensionContractHash *ech) +{ + GNUNET_assert (GNUNET_OK == + dump_and_hash (extensions, + "taler-contract-extensions", + &ech->hash)); +} + + /* End of json/json.c */ diff --git a/src/json/json_helper.c b/src/json/json_helper.c index e82fb2941..7c01cde0c 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -232,6 +232,7 @@ parse_abs_time (void *cls, json_t *json_t_ms; unsigned long long int tval; + (void) cls; if (! json_is_object (root)) { GNUNET_break_op (0); @@ -313,6 +314,7 @@ parse_abs_time_nbo (void *cls, struct GNUNET_TIME_Absolute a; struct GNUNET_JSON_Specification ispec; + (void) cls; ispec = *spec; ispec.parser = &parse_abs_time; ispec.ptr = &a; @@ -364,6 +366,7 @@ parse_rel_time (void *cls, json_t *json_d_ms; unsigned long long int tval; + (void) cls; if (! json_is_object (root)) { GNUNET_break_op (0); @@ -450,6 +453,7 @@ parse_denom_pub (void *cls, const char *emsg; unsigned int eline; + (void) cls; if (GNUNET_OK != GNUNET_JSON_parse (root, dspec, @@ -501,6 +505,7 @@ clean_denom_pub (void *cls, { struct TALER_DenominationPublicKey *denom_pub = spec->ptr; + (void) cls; TALER_denom_pub_free (denom_pub); } @@ -543,6 +548,7 @@ parse_denom_sig (void *cls, const char *emsg; unsigned int eline; + (void) cls; if (GNUNET_OK != GNUNET_JSON_parse (root, dspec, @@ -594,6 +600,7 @@ clean_denom_sig (void *cls, { struct TALER_DenominationSignature *denom_sig = spec->ptr; + (void) cls; TALER_denom_sig_free (denom_sig); } @@ -636,6 +643,7 @@ parse_blinded_denom_sig (void *cls, const char *emsg; unsigned int eline; + (void) cls; if (GNUNET_OK != GNUNET_JSON_parse (root, dspec, @@ -687,6 +695,7 @@ clean_blinded_denom_sig (void *cls, { struct TALER_BlindedDenominationSignature *denom_sig = spec->ptr; + (void) cls; TALER_blinded_denom_sig_free (denom_sig); } @@ -802,6 +811,7 @@ i18n_cleaner (void *cls, { struct I18nContext *ctx = cls; + (void) spec; GNUNET_free (ctx->lp); GNUNET_free (ctx); } -- cgit v1.2.3