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. --- unix/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unix/file.c') diff --git a/unix/file.c b/unix/file.c index a2706a96c5..6688028a4c 100644 --- a/unix/file.c +++ b/unix/file.c @@ -61,6 +61,7 @@ extern const mp_obj_type_t mp_type_fileio; extern const mp_obj_type_t mp_type_textio; STATIC void fdfile_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)kind; mp_obj_fdfile_t *self = self_in; print(env, "", mp_obj_get_type_str(self), self->fd); } @@ -123,6 +124,7 @@ STATIC mp_obj_t fdfile_close(mp_obj_t self_in) { STATIC MP_DEFINE_CONST_FUN_OBJ_1(fdfile_close_obj, fdfile_close); STATIC mp_obj_t fdfile___exit__(mp_uint_t n_args, const mp_obj_t *args) { + (void)n_args; return fdfile_close(args[0]); } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(fdfile___exit___obj, 4, 4, fdfile___exit__); -- cgit v1.2.3