py, unix: Allow to compile with -Wunused-parameter.

See issue #699.
This commit is contained in:
Damien George
2015-01-20 12:47:20 +00:00
parent 50912e7f5d
commit ff8dd3f486
51 changed files with 156 additions and 19 deletions

View File

@@ -98,6 +98,8 @@ bool mp_seq_get_fast_slice_indexes(mp_uint_t len, mp_obj_t slice, mp_bound_slice
#endif
mp_obj_t mp_seq_extract_slice(mp_uint_t len, const mp_obj_t *seq, mp_bound_slice_t *indexes) {
(void)len; // TODO can we remove len from the arg list?
mp_int_t start = indexes->start, stop = indexes->stop;
mp_int_t step = indexes->step;