This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 90aa16a3f5cbbf0d546f28a453a2cd1047f6ee8e Author: zhangyuan29 <[email protected]> AuthorDate: Fri May 8 20:03:52 2026 +0800 fix(net/local): resolve Tasking warning W545 missing return VELAFORCAR-17300 Move return statement out of switch default case to function end, ensuring all control paths have an explicit return value. Warning: ctc W545: missing 'return' File: net/local/local_sockif.c Signed-off-by: Zhang Yuan <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --- net/local/local_sockif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/local/local_sockif.c b/net/local/local_sockif.c index 8659342d82d..5e729603062 100644 --- a/net/local/local_sockif.c +++ b/net/local/local_sockif.c @@ -941,8 +941,10 @@ static int local_connect(FAR struct socket *psock, #endif /* CONFIG_NET_LOCAL_DGRAM */ default: - return -EBADF; + break; } + + return -EBADF; } /****************************************************************************
