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/exchange/taler-exchange-httpd.c | 4 ++++ src/exchange/taler-exchange-httpd_db.c | 2 +- src/exchange/taler-exchange-httpd_keys.c | 2 ++ src/exchange/taler-exchange-httpd_kyc-wallet.c | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index c29984e2d..386d6089e 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -467,6 +467,7 @@ handler_seed (struct TEH_RequestContext *rc, MHD_RESULT ret; struct MHD_Response *resp; + (void) args; body = malloc (SEED_SIZE); /* must use malloc(), because MHD will use free() */ if (NULL == body) return MHD_NO; @@ -1712,6 +1713,9 @@ run (void *cls, enum TALER_MHD_GlobalOptions go; int fh; + (void) cls; + (void) args; + (void ) cfgfile; go = TALER_MHD_GO_NONE; if (connection_close) go |= TALER_MHD_GO_FORCE_CONNECTION_CLOSE; diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index 3c6936497..1d78fb8e4 100644 --- a/src/exchange/taler-exchange-httpd_db.c +++ b/src/exchange/taler-exchange-httpd_db.c @@ -182,7 +182,7 @@ TEH_DB_run_transaction (struct MHD_Connection *connection, } /* make sure callback did not violate invariants! */ GNUNET_assert ( (NULL == mhd_ret) || - (-1 == *mhd_ret) ); + (-1 == (int) *mhd_ret) ); if (0 <= qs) return GNUNET_OK; } diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index f09f61c0e..81c77df29 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -1238,6 +1238,7 @@ add_sign_key_cb (void *cls, struct SignKeyCtx *ctx = cls; struct SigningKey *sk = value; + (void) pid; ctx->next_sk_expire = GNUNET_TIME_absolute_min (ctx->next_sk_expire, sk->meta.expire_sign); @@ -2575,6 +2576,7 @@ TEH_keys_management_get_keys_handler (const struct TEH_RequestHandler *rh, struct TEH_KeyStateHandle *ksh; json_t *reply; + (void) rh; ksh = get_key_state (true); if (NULL == ksh) { diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c index dcab3dca2..3db174bf0 100644 --- a/src/exchange/taler-exchange-httpd_kyc-wallet.c +++ b/src/exchange/taler-exchange-httpd_kyc-wallet.c @@ -109,6 +109,7 @@ TEH_handler_kyc_wallet ( .purpose = htonl (TALER_SIGNATURE_WALLET_ACCOUNT_SETUP) }; + (void) args; ret = TALER_MHD_parse_json_data (rc->connection, root, spec); -- cgit v1.2.3