diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-09-04 16:53:46 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-09-04 16:53:46 +0100 |
| commit | 3a2171e4061f3a6e3f00c28edf78ff9473355887 (patch) | |
| tree | 255882baafabc810789d532d244bd9a30e298bb9 /py/gc.c | |
| parent | 42cec5c893c4055c9c3a4b224bbf65bf0dfd9f49 (diff) | |
py: Eliminate some cases which trigger unused parameter warnings.
Diffstat (limited to 'py/gc.c')
| -rw-r--r-- | py/gc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(); |
