From 98d5e06dba396e02e7300fe348987f31c1447d01 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 22 Oct 2017 21:27:32 +0200 Subject: [PATCH] Silence gcc 7 warning about fall-through in case statement by adding a comment --- src/netif/ppp/pppos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/netif/ppp/pppos.c b/src/netif/ppp/pppos.c index 706bc09b..e4f73028 100644 --- a/src/netif/ppp/pppos.c +++ b/src/netif/ppp/pppos.c @@ -605,6 +605,7 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l) /* Else assume compressed address and control fields so * fall through to get the protocol... */ + /* Fall through */ case PDCONTROL: /* Process control field. */ /* If we don't get a valid control code, restart. */ if (cur_char == PPP_UI) { @@ -620,7 +621,9 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l) pppos->in_state = PDSTART; } #endif - case PDPROTOCOL1: /* Process protocol field 1. */ + /* Fall through */ + + case PDPROTOCOL1: /* Process protocol field 1. */ /* If the lower bit is set, this is the end of the protocol * field. */ if (cur_char & 1) {