From ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 20 Jan 2015 12:47:20 +0000 Subject: py, unix: Allow to compile with -Wunused-parameter. See issue #699. --- py/objslice.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/objslice.c') diff --git a/py/objslice.c b/py/objslice.c index 3f090dc23..4f3d054c6 100644 --- a/py/objslice.c +++ b/py/objslice.c @@ -39,6 +39,8 @@ typedef struct _mp_obj_ellipsis_t { } mp_obj_ellipsis_t; STATIC void ellipsis_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)self_in; + (void)kind; print(env, "Ellipsis"); } @@ -65,6 +67,7 @@ typedef struct _mp_obj_slice_t { } mp_obj_slice_t; STATIC void slice_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { + (void)kind; mp_obj_slice_t *o = o_in; print(env, "slice("); mp_obj_print_helper(print, env, o->start, PRINT_REPR); -- cgit v1.2.3