diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2019-11-28 12:47:21 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2020-10-22 11:53:16 +0200 |
commit | ccd92335a11f03597f94da2ac937811ff3fa50cf (patch) | |
tree | 2a31448c25724edf2ff5213b1cc1b52dd5ff0f82 /py/gc.c | |
parent | dde3db21fcd8d810bb59e0c56dfa5fd9208e1544 (diff) |
py, extmod: Introduce and use MP_FALLTHROUGH macro.
Newer GCC versions are able to warn about switch cases that fall
through. This is usually a sign of a forgotten break statement, but in
the few cases where a fall through is intended we annotate it with this
macro to avoid the warning.
Diffstat (limited to 'py/gc.c')
-rw-r--r-- | py/gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -298,7 +298,8 @@ STATIC void gc_sweep(void) { #if MICROPY_PY_GC_COLLECT_RETVAL MP_STATE_MEM(gc_collected)++; #endif - // fall through to free the head + // fall through to free the head + MP_FALLTHROUGH case AT_TAIL: if (free_tail) { |