mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Eliminate new warnings due to unused local variables noted in build testing.
This commit is contained in:
@@ -115,7 +115,6 @@ int vnc_negotiate(FAR struct vnc_session_s *session)
|
|||||||
ssize_t nsent;
|
ssize_t nsent;
|
||||||
ssize_t nrecvd;
|
ssize_t nrecvd;
|
||||||
size_t len;
|
size_t len;
|
||||||
int errcode;
|
|
||||||
|
|
||||||
#ifdef CONFIG_NET_SOCKOPTS
|
#ifdef CONFIG_NET_SOCKOPTS
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ int vnc_read_remainder(FAR struct vnc_session_s *session, size_t msglen,
|
|||||||
{
|
{
|
||||||
ssize_t nrecvd;
|
ssize_t nrecvd;
|
||||||
size_t ntotal;
|
size_t ntotal;
|
||||||
int errcode;
|
|
||||||
|
|
||||||
/* Loop until the rest of the message is recieved. */
|
/* Loop until the rest of the message is recieved. */
|
||||||
|
|
||||||
@@ -136,7 +135,6 @@ int vnc_receiver(FAR struct vnc_session_s *session)
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
#endif
|
#endif
|
||||||
ssize_t nrecvd;
|
ssize_t nrecvd;
|
||||||
int errcode;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(session);
|
DEBUGASSERT(session);
|
||||||
@@ -180,7 +178,7 @@ int vnc_receiver(FAR struct vnc_session_s *session)
|
|||||||
|
|
||||||
else if (nrecvd == 0)
|
else if (nrecvd == 0)
|
||||||
{
|
{
|
||||||
gwarn("WARNING: Connection closed\n", errcode);
|
gwarn("WARNING: Connection closed\n");
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ static inline void os_start_application(void)
|
|||||||
CONFIG_BOARD_INITTHREAD_STACKSIZE,
|
CONFIG_BOARD_INITTHREAD_STACKSIZE,
|
||||||
(main_t)os_start_task, (FAR char * const *)NULL);
|
(main_t)os_start_task, (FAR char * const *)NULL);
|
||||||
DEBUGASSERT(pid > 0);
|
DEBUGASSERT(pid > 0);
|
||||||
|
UNUSED(pid);
|
||||||
#else
|
#else
|
||||||
/* Do the board/application initialization on this thread of execution. */
|
/* Do the board/application initialization on this thread of execution. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user