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 90d758fd53012c2b68282b3ab1344d55c4227d5b Author: chenxiaoyi <[email protected]> AuthorDate: Tue Dec 2 19:34:35 2025 +0800 vsock: fix build error with clang nuttx/net/vsock/vsock_sockif.c:164:52: error: '_Static_assert' with no message is a C23 extension [-Werror,-Wc23-extensions] nuttx/net/vsock/vsock_sockif.c:769:1: error: unused function 'vsock_free_tx_credit' [-Werror,-Wunused-function] Signed-off-by: chenxiaoyi <[email protected]> --- net/vsock/vsock_sockif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/vsock/vsock_sockif.c b/net/vsock/vsock_sockif.c index 82331b94646..08ac12ab956 100644 --- a/net/vsock/vsock_sockif.c +++ b/net/vsock/vsock_sockif.c @@ -161,8 +161,8 @@ static FAR const char *g_vsock_op[] = }; #endif -static_assert(SHUT_RD == VIRTIO_VSOCK_SHUTDOWN_RECV); -static_assert(SHUT_WR == VIRTIO_VSOCK_SHUTDOWN_SEND); +static_assert(SHUT_RD == VIRTIO_VSOCK_SHUTDOWN_RECV, ""); +static_assert(SHUT_WR == VIRTIO_VSOCK_SHUTDOWN_SEND, ""); /**************************************************************************** * Private Function Prototypes @@ -757,7 +757,7 @@ vsock_alloc_tx_credit(FAR struct vsock_conn_s *conn, uint32_t credit) * Name: vsock_free_tx_credit ****************************************************************************/ -static inline_function void +static unused_code inline_function void vsock_free_tx_credit(FAR struct vsock_conn_s *conn, uint32_t credit) { irqstate_t flags;
