From: Emanuel Taube Date: Fri, 12 Feb 2016 12:28:12 +0000 (+0100) Subject: libubus.h: marking unused variables X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=fda009d8ba39398a1385fc43ae840977c875bbde 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 --- diff --git a/libubus.h b/libubus.h index 1b219b7..07239d6 100644 --- a/libubus.h +++ b/libubus.h @@ -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; }