From a06c97d599113ba2b46d60dc12fe6172ca688f1e Mon Sep 17 00:00:00 2001 From: guoshichao Date: Mon, 22 Jul 2024 15:00:14 +0800 Subject: [PATCH] greenhills: fix the netdev.h build warning "/home/guoshichao/work_profile/vela_os/vela_car_4/nuttx/include/nuttx/net/netdev.h", line 493: warning #231-D: declaration is not visible outside of function FAR struct netdev_ifaddr6_s *addr, ^ Signed-off-by: guoshichao --- include/nuttx/net/netdev.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/nuttx/net/netdev.h b/include/nuttx/net/netdev.h index 7c6b962b6b..4d9810a953 100644 --- a/include/nuttx/net/netdev.h +++ b/include/nuttx/net/netdev.h @@ -274,13 +274,11 @@ struct netdev_varaddr_s }; #endif -#ifdef CONFIG_NET_IPv6 struct netdev_ifaddr6_s { net_ipv6addr_t addr; /* Host IPv6 address */ net_ipv6addr_t mask; /* Network IPv6 subnet mask */ }; -#endif /* This structure collects information that is specific to a specific network * interface driver. If the hardware platform supports only a single