summaryrefslogtreecommitdiffstatshomepage
path: root/py/objarray.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-19 00:21:29 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-19 00:25:33 +0000
commit2e2e404ff77e95dbe4fee0f19c91913a5888fb6f (patch)
tree32989d5722293edb145295ae137efc32cfdf6f3a /py/objarray.c
parent02894b51f48779569e72dff2c2a1edfd6d74b6c1 (diff)
downloadmicropython-2e2e404ff77e95dbe4fee0f19c91913a5888fb6f.tar.gz
micropython-2e2e404ff77e95dbe4fee0f19c91913a5888fb6f.zip
py: Allow to compile with extra warnings (sign-compare, unused-param).
Diffstat (limited to 'py/objarray.c')
-rw-r--r--py/objarray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objarray.c b/py/objarray.c
index 85b73ae7f5..8c1caaceaf 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -220,6 +220,8 @@ mp_obj_t mp_obj_new_memoryview(byte typecode, mp_uint_t nitems, void *items) {
}
STATIC mp_obj_t memoryview_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
+ (void)type_in;
+
// TODO possibly allow memoryview constructor to take start/stop so that one
// can do memoryview(b, 4, 8) instead of memoryview(b)[4:8] (uses less RAM)