From 467a7980f0852faae9bf9e36e97c3fbc8be124a0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 31 Mar 2018 09:27:52 -0600 Subject: [PATCH] apps/nshlib/: In netcommds.c, the UNUSED() macro may be applied to an undefined symbol when IPv6 is enabled but IPv4 is not. --- nshlib/nsh_netcmds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 781c7df23..b21c9104a 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -947,6 +947,8 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) UNUSED(hostip); UNUSED(mask); UNUSED(gwip); +#endif +#ifdef CONFIG_NET_IPv4 UNUSED(gip); #endif