Elminate some warnings with TCP and UDP are disabled
This commit is contained in:
parent
7a614072da
commit
f6bec26e53
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user