mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 06:10:35 +08:00
Fix warning -Wimplicit-fallthrough
This commit is contained in:
committed by
Daniel Agar
parent
b21af471ac
commit
9fb98dad3e
@@ -379,7 +379,8 @@ ssize_t Mavlink2Dev::write(struct file *filp, const char *buffer, size_t buflen)
|
||||
return 0;
|
||||
}
|
||||
|
||||
//no break
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case ParserState::GotLength: {
|
||||
_packet_len -= buflen;
|
||||
int buf_free;
|
||||
@@ -509,8 +510,8 @@ ssize_t RtpsDev::write(struct file *filp, const char *buffer, size_t buflen)
|
||||
_parser_state = ParserState::GotLength;
|
||||
lock(Write);
|
||||
|
||||
/* FALLTHROUGH */
|
||||
|
||||
//no break
|
||||
case ParserState::GotLength: {
|
||||
_packet_len -= buflen;
|
||||
int buf_free;
|
||||
|
||||
Reference in New Issue
Block a user