mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 06:37:25 +00:00
Silence gcc 7 warning about fall-through in case statement by adding a comment
This commit is contained in:
parent
a7f2ef4aec
commit
98d5e06dba
@ -605,6 +605,7 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l)
|
|||||||
|
|
||||||
/* Else assume compressed address and control fields so
|
/* Else assume compressed address and control fields so
|
||||||
* fall through to get the protocol... */
|
* fall through to get the protocol... */
|
||||||
|
/* Fall through */
|
||||||
case PDCONTROL: /* Process control field. */
|
case PDCONTROL: /* Process control field. */
|
||||||
/* If we don't get a valid control code, restart. */
|
/* If we don't get a valid control code, restart. */
|
||||||
if (cur_char == PPP_UI) {
|
if (cur_char == PPP_UI) {
|
||||||
@ -620,6 +621,8 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l)
|
|||||||
pppos->in_state = PDSTART;
|
pppos->in_state = PDSTART;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
/* Fall through */
|
||||||
|
|
||||||
case PDPROTOCOL1: /* Process protocol field 1. */
|
case PDPROTOCOL1: /* Process protocol field 1. */
|
||||||
/* If the lower bit is set, this is the end of the protocol
|
/* If the lower bit is set, this is the end of the protocol
|
||||||
* field. */
|
* field. */
|
||||||
|
Loading…
Reference in New Issue
Block a user