summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-11-23 12:14:58 -0800
committerDan Halbert <halbert@halwitz.org>2020-12-23 13:49:11 -0500
commitfc1f47d0d24e1069c03671c94d5c994c0eae128c (patch)
treeb3a3b60e2e3fb3cc6de4ca93c6149408705a957f
parentebc765e1e0d2c1e46eb13743f8650892b0f2dc5d (diff)
Ignore size parameter
-rw-r--r--extmod/modujson.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/modujson.c b/extmod/modujson.c
index 515606b70..3bb4b3301 100644
--- a/extmod/modujson.c
+++ b/extmod/modujson.c
@@ -85,6 +85,7 @@ STATIC byte ujson_stream_next(ujson_stream_t *s) {
#define CIRCUITPY_JSON_READ_CHUNK_SIZE 64
STATIC mp_uint_t ujson_python_readinto(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode) {
+ (void) size; // Ignore size because we know it's always 1.
ujson_stream_t* s = obj;
if (s->start == s->end) {