fix warnings
This commit is contained in:
parent
ea57a95ba3
commit
40d9674856
@ -1027,6 +1027,7 @@ postgres_start (void *cls,
|
||||
GNUNET_PQ_EXECUTE_STATEMENT_END
|
||||
};
|
||||
|
||||
(void) cls;
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_PQ_exec_statements (session->conn,
|
||||
es))
|
||||
|
@ -54,6 +54,9 @@ run (void *cls,
|
||||
{
|
||||
struct TALER_EXCHANGEDB_Plugin *plugin;
|
||||
|
||||
(void) cls;
|
||||
(void) args;
|
||||
(void) cfgfile;
|
||||
if (NULL ==
|
||||
(plugin = TALER_EXCHANGEDB_plugin_load (cfg)))
|
||||
{
|
||||
|
@ -57,6 +57,7 @@ signkeys_iter (void *cls,
|
||||
const char *filename,
|
||||
const struct TALER_EXCHANGEDB_PrivateSigningKeyInformationP *ski)
|
||||
{
|
||||
(void) cls;
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
||||
"Iterating over key `%s' for start time %s\n",
|
||||
filename,
|
||||
@ -135,6 +136,7 @@ denomkeys_iter (void *cls,
|
||||
{
|
||||
struct GNUNET_HashCode hc;
|
||||
|
||||
(void) cls;
|
||||
if (ntohl (dki->issue.properties.purpose.size) !=
|
||||
sizeof (struct TALER_DenominationKeyValidityPS))
|
||||
{
|
||||
@ -235,6 +237,9 @@ run (void *cls,
|
||||
const char *cfgfile,
|
||||
const struct GNUNET_CONFIGURATION_Handle *cfg)
|
||||
{
|
||||
(void) cls;
|
||||
(void) args;
|
||||
(void) cfgfile;
|
||||
kcfg = cfg;
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_filename (kcfg,
|
||||
|
@ -1201,6 +1201,9 @@ run (void *cls,
|
||||
struct GNUNET_TIME_Relative lookahead_sign;
|
||||
struct GNUNET_CRYPTO_EddsaPrivateKey *eddsa_priv;
|
||||
|
||||
(void) cls;
|
||||
(void) args;
|
||||
(void) cfgfile;
|
||||
kcfg = cfg;
|
||||
|
||||
if (now.abs_value_us != now_tmp.abs_value_us)
|
||||
|
@ -61,6 +61,7 @@ sign_account_data (void *cls,
|
||||
FILE *out;
|
||||
int ret;
|
||||
|
||||
(void) cls;
|
||||
if (GNUNET_NO == ai->credit_enabled)
|
||||
return;
|
||||
if (NULL == ai->wire_response_filename)
|
||||
@ -137,6 +138,9 @@ run (void *cls,
|
||||
struct GNUNET_CRYPTO_EddsaPublicKey mpub;
|
||||
struct GNUNET_CRYPTO_EddsaPublicKey mpub_cfg;
|
||||
|
||||
(void) cls;
|
||||
(void) args;
|
||||
(void) cfgfile;
|
||||
if ( (NULL == masterkeyfile) &&
|
||||
(GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_filename (cfg,
|
||||
|
@ -116,6 +116,7 @@ history_cb (void *cls,
|
||||
{
|
||||
char *row_off_enc;
|
||||
|
||||
(void) cls;
|
||||
if (TALER_BANK_DIRECTION_NONE == dir)
|
||||
{
|
||||
fprintf (stdout,
|
||||
|
@ -411,6 +411,7 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -53,6 +53,9 @@ TEH_MHD_handler_static_response (struct TEH_RequestHandler *rh,
|
||||
struct MHD_Response *response;
|
||||
int ret;
|
||||
|
||||
(void) connection_cls;
|
||||
(void) upload_data;
|
||||
(void) upload_data_size;
|
||||
if (0 == rh->data_size)
|
||||
rh->data_size = strlen ((const char *) rh->data);
|
||||
response = MHD_create_response_from_buffer (rh->data_size,
|
||||
@ -99,6 +102,9 @@ TEH_MHD_handler_agpl_redirect (struct TEH_RequestHandler *rh,
|
||||
struct MHD_Response *response;
|
||||
int ret;
|
||||
|
||||
(void) connection_cls;
|
||||
(void) upload_data;
|
||||
(void) upload_data_size;
|
||||
response = MHD_create_response_from_buffer (strlen (agpl),
|
||||
(void *) agpl,
|
||||
MHD_RESPMEM_PERSISTENT);
|
||||
@ -147,6 +153,9 @@ TEH_MHD_handler_send_json_pack_error (struct TEH_RequestHandler *rh,
|
||||
const char *upload_data,
|
||||
size_t *upload_data_size)
|
||||
{
|
||||
(void) connection_cls;
|
||||
(void) upload_data;
|
||||
(void) upload_data_size;
|
||||
return TEH_RESPONSE_reply_json_pack (connection,
|
||||
rh->response_code,
|
||||
"{s:s}",
|
||||
|
@ -598,6 +598,7 @@ TEH_PAYBACK_handler_payback (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -194,6 +194,10 @@ TEH_REFRESH_handler_refresh_link (struct TEH_RequestHandler *rh,
|
||||
int res;
|
||||
struct HTD_Context ctx;
|
||||
|
||||
(void) rh;
|
||||
(void) connection_cls;
|
||||
(void) upload_data;
|
||||
(void) upload_data_size;
|
||||
memset (&ctx,
|
||||
0,
|
||||
sizeof (ctx));
|
||||
|
@ -464,6 +464,7 @@ TEH_REFRESH_handler_refresh_melt (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -874,6 +874,7 @@ TEH_REFRESH_handler_refresh_reveal (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -509,6 +509,7 @@ TEH_REFUND_handler_refund (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -91,7 +91,7 @@ struct ReserveStatusContext
|
||||
* @param connection MHD request which triggered the transaction
|
||||
* @param session database session to use
|
||||
* @param[out] mhd_ret set to MHD response status for @a connection,
|
||||
* if transaction failed (!)
|
||||
* if transaction failed (!); unused
|
||||
* @return transaction status
|
||||
*/
|
||||
static enum GNUNET_DB_QueryStatus
|
||||
@ -102,6 +102,8 @@ reserve_status_transaction (void *cls,
|
||||
{
|
||||
struct ReserveStatusContext *rsc = cls;
|
||||
|
||||
(void) connection;
|
||||
(void) mhd_ret;
|
||||
return TEH_plugin->get_reserve_history (TEH_plugin->cls,
|
||||
session,
|
||||
&rsc->reserve_pub,
|
||||
|
@ -380,6 +380,7 @@ TEH_RESERVE_handler_reserve_withdraw (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -68,6 +68,7 @@ TEH_TEST_handler_test_base32 (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -356,6 +356,7 @@ TEH_TRACKING_handler_track_transaction (struct TEH_RequestHandler *rh,
|
||||
GNUNET_JSON_spec_end ()
|
||||
};
|
||||
|
||||
(void) rh;
|
||||
res = TEH_PARSE_post_json (connection,
|
||||
connection_cls,
|
||||
upload_data,
|
||||
|
@ -280,6 +280,7 @@ handle_transaction_data (void *cls,
|
||||
struct TEH_TrackTransferDetail *wdd;
|
||||
char *wire_method;
|
||||
|
||||
(void) rowid;
|
||||
(void) denom_pub;
|
||||
if (GNUNET_SYSERR == ctx->is_valid)
|
||||
return;
|
||||
|
@ -135,6 +135,10 @@ TEH_WIRE_handler_wire (struct TEH_RequestHandler *rh,
|
||||
const char *upload_data,
|
||||
size_t *upload_data_size)
|
||||
{
|
||||
(void) rh;
|
||||
(void) connection;
|
||||
(void) upload_data;
|
||||
(void) upload_data_size;
|
||||
GNUNET_assert (NULL != wire_methods);
|
||||
return TEH_RESPONSE_reply_json (connection,
|
||||
wire_methods,
|
||||
|
@ -201,6 +201,7 @@ shutdown_task (void *cls)
|
||||
{
|
||||
struct WireAccount *wa;
|
||||
|
||||
(void) cls;
|
||||
if (NULL != task)
|
||||
{
|
||||
GNUNET_SCHEDULER_cancel (task);
|
||||
@ -583,6 +584,7 @@ find_transfers (void *cls)
|
||||
struct TALER_EXCHANGEDB_Session *session;
|
||||
enum GNUNET_DB_QueryStatus qs;
|
||||
|
||||
(void) cls;
|
||||
task = NULL;
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
||||
"Checking for incoming wire transfers\n");
|
||||
@ -677,6 +679,9 @@ run (void *cls,
|
||||
const char *cfgfile,
|
||||
const struct GNUNET_CONFIGURATION_Handle *c)
|
||||
{
|
||||
(void) cls;
|
||||
(void) args;
|
||||
(void) cfgfile;
|
||||
cfg = c;
|
||||
if (GNUNET_OK !=
|
||||
exchange_serve_process_config ())
|
||||
|
@ -253,6 +253,7 @@ static void
|
||||
taler_bank_prepare_wire_transfer_cancel (void *cls,
|
||||
struct TALER_WIRE_PrepareHandle *pth)
|
||||
{
|
||||
(void) cls;
|
||||
if (NULL != pth->task)
|
||||
GNUNET_SCHEDULER_cancel (pth->task);
|
||||
TALER_BANK_auth_free (&pth->auth);
|
||||
@ -547,6 +548,7 @@ execute_cb (void *cls,
|
||||
char *s;
|
||||
uint64_t serial_id_nbo;
|
||||
|
||||
(void) timestamp;
|
||||
eh->aaih = NULL;
|
||||
emsg = NULL;
|
||||
if (NULL != json)
|
||||
@ -567,15 +569,12 @@ execute_cb (void *cls,
|
||||
"%u/%u",
|
||||
http_status,
|
||||
(unsigned int) ec);
|
||||
|
||||
serial_id_nbo = GNUNET_htonll (serial_id);
|
||||
|
||||
eh->cc (eh->cc_cls,
|
||||
(MHD_HTTP_OK == http_status) ? GNUNET_OK : GNUNET_SYSERR,
|
||||
&serial_id_nbo,
|
||||
sizeof (uint64_t),
|
||||
(MHD_HTTP_OK == http_status) ? NULL : s);
|
||||
|
||||
GNUNET_free (s);
|
||||
GNUNET_free (eh);
|
||||
}
|
||||
@ -753,6 +752,7 @@ static void
|
||||
taler_bank_execute_wire_transfer_cancel (void *cls,
|
||||
struct TALER_WIRE_ExecuteHandle *eh)
|
||||
{
|
||||
(void) cls;
|
||||
TALER_BANK_admin_add_incoming_cancel (eh->aaih);
|
||||
GNUNET_free (eh);
|
||||
}
|
||||
@ -841,6 +841,7 @@ bhist_cb (void *cls,
|
||||
uint64_t bserial_id = GNUNET_htonll (serial_id);
|
||||
struct TALER_WIRE_TransferDetails wd;
|
||||
|
||||
(void) json;
|
||||
switch (http_status)
|
||||
{
|
||||
case MHD_HTTP_OK:
|
||||
@ -1104,6 +1105,7 @@ reject_cb (void *cls,
|
||||
{
|
||||
struct TALER_WIRE_RejectHandle *rh = cls;
|
||||
|
||||
(void) http_status;
|
||||
rh->brh = NULL;
|
||||
rh->rej_cb (rh->rej_cb_cls,
|
||||
ec);
|
||||
@ -1129,6 +1131,7 @@ taler_bank_reject_transfer_cancel (void *cls,
|
||||
{
|
||||
void *ret = rh->rej_cb_cls;
|
||||
|
||||
(void) cls;
|
||||
if (NULL != rh->brh)
|
||||
TALER_BANK_reject_cancel (rh->brh);
|
||||
TALER_BANK_auth_free (&rh->auth);
|
||||
|
Loading…
Reference in New Issue
Block a user