diff options
author | Emanuel Taube <emanuel.taube@gmail.com> | 2016-02-12 13:28:12 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-02-22 11:41:03 +0100 |
commit | fda009d8ba39398a1385fc43ae840977c875bbde (patch) | |
tree | 09c4f8091f97bcb13e7019f11cd3d369cc6b1a62 | |
parent | 6a86e65f7d4836bfe387d213a6dfaea1d5d162dd (diff) | |
download | ubus-fda009d8ba39398a1385fc43ae840977c875bbde.tar.gz |
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>
-rw-r--r-- | libubus.h | 2 |
1 files changed, 2 insertions, 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; } |