summaryrefslogtreecommitdiffstatshomepage
path: root/py/pfenv.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
commitff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 (patch)
tree16b54a843a312757976e15f24f413e00e151fbe2 /py/pfenv.c
parent50912e7f5dc579fd2917537046793dfa30decadf (diff)
downloadmicropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.tar.gz
micropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.zip
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/pfenv.c')
-rw-r--r--py/pfenv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pfenv.c b/py/pfenv.c
index f608a11752..09ca0ef80e 100644
--- a/py/pfenv.c
+++ b/py/pfenv.c
@@ -179,6 +179,8 @@ int pfenv_print_int(const pfenv_t *pfenv, mp_uint_t x, int sgn, int base, int ba
}
int pfenv_print_mp_int(const pfenv_t *pfenv, mp_obj_t x, int sgn, int base, int base_char, int flags, char fill, int width, int prec) {
+ (void)sgn; // TODO why is sgn unused?
+
if (!MP_OBJ_IS_INT(x)) {
// This will convert booleans to int, or raise an error for
// non-integer types.