Elminate some warnings with TCP and UDP are disabled

This commit is contained in:
Gregory Nutt 2015-01-29 09:33:45 -06:00
parent 7a614072da
commit f6bec26e53

View File

@ -288,6 +288,10 @@ int psock_socket(int domain, int type, int protocol, FAR struct socket *psock)
goto errout;
}
#if !defined(CONFIG_NET_TCP) && !defined(CONFIG_NET_UDP)
UNUSED(ipdomain);
#endif
/* Only SOCK_STREAM, SOCK_DGRAM and possible SOCK_RAW are supported */
switch (type)