libubus.h: marking unused variables
Inform the compiler that the variables are not gona be used to avoid compiler warnings. Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
This commit is contained in:
parent
6a86e65f7d
commit
fda009d8ba
1 changed files with 2 additions and 0 deletions
|
@ -344,6 +344,7 @@ static inline void ubus_defer_request(struct ubus_context *ctx,
|
|||
struct ubus_request_data *req,
|
||||
struct ubus_request_data *new_req)
|
||||
{
|
||||
(void) ctx;
|
||||
memcpy(new_req, req, sizeof(*req));
|
||||
req->deferred = true;
|
||||
}
|
||||
|
@ -351,6 +352,7 @@ static inline void ubus_defer_request(struct ubus_context *ctx,
|
|||
static inline void ubus_request_set_fd(struct ubus_context *ctx,
|
||||
struct ubus_request_data *req, int fd)
|
||||
{
|
||||
(void) ctx;
|
||||
req->fd = fd;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue