diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-05 11:23:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-05 11:23:24 +0200 |
commit | 5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf (patch) | |
tree | fe075268a0b8ddb889ff198dd681a11c4effd94b /src/pq | |
parent | b9dee3a1d54637a8c8d0e3ef34bd6b8bfd0d1bac (diff) |
fix warnings
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_result_helper.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) |