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/json | |
parent | b9dee3a1d54637a8c8d0e3ef34bd6b8bfd0d1bac (diff) |
fix warnings
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 != |