summaryrefslogtreecommitdiff
path: root/py/objlist.c
diff options
context:
space:
mode:
authorRoy Hooper <rhooper@toybox.ca>2019-11-23 13:52:14 -0500
committerRoy Hooper <rhooper@toybox.ca>2019-11-23 13:52:14 -0500
commita9baa441c94bf4ba9fe676a34e8a47fee6001559 (patch)
tree05f914a9697010523cfcacf807cee99318eb910b /py/objlist.c
parent75e1e7da4b2cae6adae2b3e12ec4fb6de628598d (diff)
disable -Wunused-parameter on subscr functions
Diffstat (limited to 'py/objlist.c')
-rw-r--r--py/objlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objlist.c b/py/objlist.c
index b0c62a6ee..c544c27f0 100644
--- a/py/objlist.c
+++ b/py/objlist.c
@@ -158,6 +158,7 @@ STATIC mp_obj_t list_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) {
}
}
+#pragma GCC diagnostic ignored "-Wunused-parameter"
STATIC mp_obj_t list_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value, mp_obj_t instance) {
if (value == MP_OBJ_NULL) {
// delete