diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-19 10:57:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-19 10:57:27 +0100 |
commit | bdaaa0f6cb8f99168ed9916064a5e4145426480c (patch) | |
tree | bd8e37886cbc6356a00d5a0592d99f30f0b2f3c9 /src/sq | |
parent | dff5510dd36059a567d1110da870cc79bd508f70 (diff) |
-fix misc. compiler warnings
Diffstat (limited to 'src/sq')
-rw-r--r-- | src/sq/sq_query_helper.c | 1 | ||||
-rw-r--r-- | src/sq/sq_result_helper.c | 14 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/sq/sq_query_helper.c b/src/sq/sq_query_helper.c index e9070e147..ad5207e27 100644 --- a/src/sq/sq_query_helper.c +++ b/src/sq/sq_query_helper.c @@ -97,6 +97,7 @@ qconv_amount_nbo (void *cls, struct TALER_Amount amount_hbo; (void) cls; + (void) data_len; TALER_amount_ntoh (&amount_hbo, amount); return qconv_amount (cls, diff --git a/src/sq/sq_result_helper.c b/src/sq/sq_result_helper.c index bc52913b5..7cd8e80b4 100644 --- a/src/sq/sq_result_helper.c +++ b/src/sq/sq_result_helper.c @@ -113,11 +113,15 @@ extract_amount_nbo (void *cls, struct TALER_AmountNBO *amount = dst; struct TALER_Amount amount_hbo; size_t amount_hbo_size = sizeof (struct TALER_Amount); - if (GNUNET_YES != extract_amount (cls, - result, - column, - &amount_hbo_size, - &amount_hbo)) + + (void) cls; + (void) dst_size; + if (GNUNET_YES != + extract_amount (cls, + result, + column, + &amount_hbo_size, + &amount_hbo)) { GNUNET_break (0); return GNUNET_SYSERR; |