From 5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 Sep 2019 11:23:24 +0200 Subject: fix warnings --- src/pq/pq_result_helper.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/pq/pq_result_helper.c') diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c index 97710c43e..f6eab87e1 100644 --- a/src/pq/pq_result_helper.c +++ b/src/pq/pq_result_helper.c @@ -134,6 +134,11 @@ extract_amount_nbo (void *cls, char *frac_name; int ret; + if (sizeof (struct TALER_AmountNBO) != *dst_size) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } GNUNET_asprintf (&val_name, "%s_val", fname); @@ -205,6 +210,11 @@ extract_amount (void *cls, struct TALER_AmountNBO amount_nbo; int ret; + if (sizeof (struct TALER_AmountNBO) != *dst_size) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } GNUNET_asprintf (&val_name, "%s_val", fname); @@ -278,6 +288,8 @@ extract_json (void *cls, json_error_t json_error; size_t slen; + (void) cls; + (void) dst_size; fnum = PQfnumber (result, fname); if (fnum < 0) @@ -327,6 +339,7 @@ clean_json (void *cls, { json_t **dst = rd; + (void) cls; if (NULL != *dst) { json_decref (*dst); @@ -383,6 +396,7 @@ extract_round_time (void *cls, struct GNUNET_TIME_Absolute tmp; int fnum; + (void) cls; fnum = PQfnumber (result, fname); if (fnum < 0) @@ -465,6 +479,7 @@ extract_round_time_nbo (void *cls, struct GNUNET_TIME_Absolute tmp; int fnum; + (void) cls; fnum = PQfnumber (result, fname); if (fnum < 0) -- cgit v1.2.3