summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-09-04 16:53:46 +0100
committerDamien George <damien.p.george@gmail.com>2015-09-04 16:53:46 +0100
commit3a2171e4061f3a6e3f00c28edf78ff9473355887 (patch)
tree255882baafabc810789d532d244bd9a30e298bb9 /py/objstr.c
parent42cec5c893c4055c9c3a4b224bbf65bf0dfd9f49 (diff)
downloadmicropython-3a2171e4061f3a6e3f00c28edf78ff9473355887.tar.gz
micropython-3a2171e4061f3a6e3f00c28edf78ff9473355887.zip
py: Eliminate some cases which trigger unused parameter warnings.
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index ed61d17f89..9982322490 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -172,11 +172,13 @@ mp_obj_t mp_obj_str_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw,
STATIC mp_obj_t bytes_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;
-#if MICROPY_CPYTHON_COMPAT
+ #if MICROPY_CPYTHON_COMPAT
if (n_kw != 0) {
mp_arg_error_unimpl_kw();
}
-#endif
+ #else
+ (void)n_kw;
+ #endif
if (n_args == 0) {
return mp_const_empty_bytes;