util: add unused() macro
This commit is contained in:
parent
bbe28c8729
commit
2b3fddafd1
@ -57,7 +57,7 @@ ep_sock_t* ep_sock_new(_ep_port_data_t* port_data) {
|
||||
if (sock_private == NULL)
|
||||
return NULL;
|
||||
|
||||
(void) port_data;
|
||||
unused(port_data);
|
||||
|
||||
memset(sock_private, 0, sizeof *sock_private);
|
||||
handle_tree_entry_init(&sock_private->pub.tree_entry);
|
||||
|
||||
@ -13,4 +13,6 @@ typedef intptr_t ssize_t;
|
||||
#define container_of(ptr, type, member) \
|
||||
((type*) ((char*) (ptr) -offsetof(type, member)))
|
||||
|
||||
#define unused(v) ((void) (v))
|
||||
|
||||
#endif /* EPOLL_UTIL_H_ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user