__attribute__ ((fallthrough)) tells the compiler to not complain about an intended fallthrough.
diff --git a/tp_meter.c b/tp_meter.c index 918fb79..592a9ed 100644 --- a/tp_meter.c +++ b/tp_meter.c @@ -501,6 +501,7 @@ int tp_meter(char *mesh_iface, int argc, char **argv) case BATADV_TP_REASON_CANCEL: printf("CANCEL received: test aborted\n"); /* fall through and print the partial result */ + __attribute__ ((fallthrough)); case BATADV_TP_REASON_COMPLETE: if (result.test_time > 0) { throughput = result.total_bytes * 1000;