py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
diff --git a/py/modmicropython.c b/py/modmicropython.c
index e6adc35..7d1b6bf 100644
--- a/py/modmicropython.c
+++ b/py/modmicropython.c
@@ -54,6 +54,7 @@
#endif
mp_obj_t mp_micropython_mem_info(mp_uint_t n_args, const mp_obj_t *args) {
+ (void)args;
#if MICROPY_MEM_STATS
printf("mem: total=" UINT_FMT ", current=" UINT_FMT ", peak=" UINT_FMT "\n",
m_get_total_bytes_allocated(), m_get_current_bytes_allocated(), m_get_peak_bytes_allocated());
@@ -69,6 +70,8 @@
// arg given means dump gc allocation table
gc_dump_alloc_table();
}
+#else
+ (void)n_args;
#endif
return mp_const_none;
}