mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Changes to remove some warning sduring compilation for ZKit-arm-1769 Board.
This commit is contained in:
+6
-7
@@ -47,14 +47,13 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Macro Name: ASSERT, ASSERTCODE, et al. */
|
||||
/* Macro Name: ASSERT, VERIFY, et al. */
|
||||
|
||||
#undef ASSERT - Assert if the condition is not true
|
||||
#undef ASSERTCODE - Assert with an error code if the condition is not true
|
||||
#undef VERIFY - Assert if a function returns a negative value
|
||||
#undef DEBUGASSERT - Like ASSERT, but only if CONFIG_DEBUG is defined
|
||||
#undef DEBUGVERIFY - Like VERIFY, but only if CONFIG_DEBUG is defined
|
||||
#undef PANIC - Unconditional error with code
|
||||
#undef ASSERT /* Assert if the condition is not true */
|
||||
#undef VERIFY /* Assert if a function returns a negative value */
|
||||
#undef DEBUGASSERT /* Like ASSERT, but only if CONFIG_DEBUG is defined */
|
||||
#undef DEBUGVERIFY /* Like VERIFY, but only if CONFIG_DEBUG is defined */
|
||||
#undef PANIC /* Unconditional abort */
|
||||
|
||||
#ifdef CONFIG_HAVE_FILENAME
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ struct socketlist
|
||||
|
||||
/* Callback from netdev_foreach() */
|
||||
|
||||
struct uip_driver_s; /* Forward reference. See nuttx/net/uip/uip-arch.h */
|
||||
struct uip_driver_s; /* Forward reference. Defined in nuttx/net/uip/uip-arch.h */
|
||||
typedef int (*netdev_callback_t)(FAR struct uip_driver_s *dev, void *arg);
|
||||
|
||||
/****************************************************************************
|
||||
@@ -172,6 +172,7 @@ int psock_close(FAR struct socket *psock);
|
||||
/* net_close.c ***************************************************************/
|
||||
/* Performs the bind() operation on a socket instance */
|
||||
|
||||
struct sockaddr; /* Forward reference. Defined in nuttx/include/sys/socket.h */
|
||||
int psock_bind(FAR struct socket *psock, FAR const struct sockaddr *addr,
|
||||
socklen_t addrlen);
|
||||
|
||||
@@ -198,7 +199,7 @@ ssize_t psock_sendto(FAR struct socket *psock, FAR const void *buf,
|
||||
/* recvfrom using the underlying socket structure */
|
||||
|
||||
ssize_t psock_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
|
||||
int flags,FAR struct sockaddr *from,
|
||||
int flags, FAR struct sockaddr *from,
|
||||
FAR socklen_t *fromlen);
|
||||
|
||||
/* recv using the underlying socket structure */
|
||||
|
||||
Reference in New Issue
Block a user