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/json/json_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/json') diff --git a/src/json/json_helper.c b/src/json/json_helper.c index b915faba0..9e601ccd9 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -83,6 +83,7 @@ parse_amount (void *cls, json_int_t fraction; const char *currency; + (void) cls; if (json_is_string (root)) { if (GNUNET_OK != @@ -122,7 +123,7 @@ parse_amount (void *cls, } if ( (value < 0) || (fraction < 0) || - (value > UINT64_MAX) || + (((uint64_t) value) > UINT64_MAX) || (fraction > UINT32_MAX) ) { GNUNET_break_op (0); @@ -183,6 +184,7 @@ parse_amount_nbo (void *cls, json_int_t fraction; const char *currency; + (void) cls; if (json_is_string (root)) { if (GNUNET_OK != -- cgit v1.2.3