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/lib/exchange_api_deposit.c | 12 ++++++++++-- src/lib/exchange_api_handle.c | 1 + src/lib/exchange_api_kyc_proof.c | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c index 408601c6f..7fc8bb6b7 100644 --- a/src/lib/exchange_api_deposit.c +++ b/src/lib/exchange_api_deposit.c @@ -476,6 +476,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki, const struct TALER_Amount *amount, const struct TALER_MerchantWireHash *h_wire, const struct TALER_PrivateContractHash *h_contract_terms, + const struct TALER_ExtensionContractHash *ech, const struct TALER_CoinSpendPublicKeyP *coin_pub, const struct TALER_DenominationSignature *denom_sig, const struct TALER_DenominationPublicKey *denom_pub, @@ -490,7 +491,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki, &dki->fee_deposit, h_wire, h_contract_terms, - NULL /* FIXME: h_extensions! */, + ech, denom_pub_hash, timestamp, merchant_pub, @@ -513,7 +514,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki, .coin_pub = *coin_pub, .denom_pub_hash = *denom_pub_hash, .denom_sig = *denom_sig, - .age_commitment_hash = NULL /* FIXME-Oec */ + .age_commitment_hash = { 0 } /* FIXME-Oec */ }; if (GNUNET_YES != @@ -567,8 +568,12 @@ TALER_EXCHANGE_deposit ( struct TALER_MerchantWireHash h_wire; struct TALER_DenominationHash denom_pub_hash; struct TALER_Amount amount_without_fee; + struct TALER_ExtensionContractHash ech; char arg_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2 + 32]; + if (NULL != extension_details) + TALER_deposit_extension_hash (extension_details, + &ech); { char pub_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2]; char *end; @@ -623,6 +628,9 @@ TALER_EXCHANGE_deposit ( amount, &h_wire, h_contract_terms, + (NULL != extension_details) + ? &ech + : NULL, coin_pub, denom_sig, denom_pub, diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index f2f8b594f..4d7c6db1f 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -535,6 +535,7 @@ auditor_version_cb ( { struct TEAH_AuditorListEntry *ale = cls; + (void) hr; if (NULL == vi) { /* In this case, we don't mark the auditor as 'up' */ diff --git a/src/lib/exchange_api_kyc_proof.c b/src/lib/exchange_api_kyc_proof.c index f8e84d7ca..f2ca24eb1 100644 --- a/src/lib/exchange_api_kyc_proof.c +++ b/src/lib/exchange_api_kyc_proof.c @@ -89,6 +89,8 @@ handle_kyc_proof_finished (void *cls, .http_status = (unsigned int) response_code }; + (void) body; + (void) body_size; kph->job = NULL; switch (response_code) { -- cgit v1.2.3