projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a86e65
)
libubus.h: marking unused variables
author
Emanuel Taube
<emanuel.taube@gmail.com>
Fri, 12 Feb 2016 12:28:12 +0000
(13:28 +0100)
committer
John Crispin
<blogic@openwrt.org>
Mon, 22 Feb 2016 10:41:03 +0000
(11:41 +0100)
Inform the compiler that the variables are not gona be used to avoid
compiler warnings.
Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
libubus.h
patch
|
blob
|
history
diff --git
a/libubus.h
b/libubus.h
index 1b219b7f9e4520208408957ce477ccee0af7a6db..07239d6664d4ade26de378df46d4e44d9876b413 100644
(file)
--- 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;
}