summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-11-23 12:14:58 -0800
committerScott Shawcroft <scott@tannewt.org>2020-11-23 12:14:58 -0800
commit368fa88312c14d1a74f44b7539fb00c7ef8754f8 (patch)
treedee82a6eec77afa70adb1a108a0f722657ba0027 /extmod
parent123210a989eae73fb60146d707f7ba890f8311ee (diff)
Ignore size parameter
Diffstat (limited to 'extmod')
-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) {