summaryrefslogtreecommitdiff
path: root/py/gc.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/gc.c
parent42cec5c893c4055c9c3a4b224bbf65bf0dfd9f49 (diff)
py: Eliminate some cases which trigger unused parameter warnings.
Diffstat (limited to 'py/gc.c')
-rw-r--r--py/gc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/py/gc.c b/py/gc.c
index 7283e5f1f..e4d29d130 100644
--- a/py/gc.c
+++ b/py/gc.c
@@ -413,14 +413,16 @@ found:
// to point to the heap and may prevent other blocks from being reclaimed.
memset((byte*)ret_ptr + n_bytes, 0, (end_block - start_block + 1) * BYTES_PER_BLOCK - n_bytes);
-#if MICROPY_ENABLE_FINALISER
+ #if MICROPY_ENABLE_FINALISER
if (has_finaliser) {
// clear type pointer in case it is never set
((mp_obj_base_t*)ret_ptr)->type = MP_OBJ_NULL;
// set mp_obj flag only if it has a finaliser
FTB_SET(start_block);
}
-#endif
+ #else
+ (void)has_finaliser;
+ #endif
#if EXTENSIVE_HEAP_PROFILING
gc_dump_alloc_table();