From 987fcfa2d61bfc455b402160ee2833916d3dd0b4 Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Thu, 14 Oct 2021 01:31:35 +0800 Subject: [PATCH] [posix] fix fall-through issue (#7066) When compiling OpenThread in Android, the compiler generates an error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] --- src/posix/platform/infra_if.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posix/platform/infra_if.cpp b/src/posix/platform/infra_if.cpp index 4ca87b617..859967c37 100644 --- a/src/posix/platform/infra_if.cpp +++ b/src/posix/platform/infra_if.cpp @@ -423,6 +423,7 @@ void InfraNetif::ReceiveNetLinkMessage(void) OT_UNUSED_VARIABLE(errMsg); otLogWarnPlat("netlink NLMSG_ERROR response: seq=%u, error=%d", header->nlmsg_seq, errMsg->error); + break; } default: break;