summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/unix/modjni.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c
index 4aefb2476..50dd10dd2 100644
--- a/ports/unix/modjni.c
+++ b/ports/unix/modjni.c
@@ -241,6 +241,7 @@ STATIC void get_jclass_name(jobject obj, char *buf) {
check_exception();
}
+#pragma GCC diagnostic ignored "-Wunused-parameter"
STATIC mp_obj_t jobject_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value, mp_obj_t instance) {
mp_obj_jobject_t *self = self_in;
mp_uint_t idx = mp_obj_get_int(index);