[OpenWrt-Devel] [PATCH] libubus.h: marking unused variables

Emanuel Taube emanuel.taube at gmail.com
Wed Feb 10 08:04:47 EST 2016


diff --git a/libubus.h b/libubus.h
index 08dac49..d419205 100644
--- a/libubus.h
+++ b/libubus.h
@@ -285,7 +285,7 @@ int ubus_invoke_async(struct ubus_context *ctx, uint32_t obj, const char *method
 int ubus_send_reply(struct ubus_context *ctx, struct ubus_request_data *req,
 		    struct blob_attr *msg);
 
-static inline void ubus_defer_request(struct ubus_context *ctx,
+static inline void ubus_defer_request(struct ubus_context *ctx __attribute__((__unused__)),
 				      struct ubus_request_data *req,
 				      struct ubus_request_data *new_req)
 {
@@ -293,7 +293,7 @@ static inline void ubus_defer_request(struct ubus_context *ctx,
     req->deferred = true;
 }
 
-static inline void ubus_request_set_fd(struct ubus_context *ctx,
+static inline void ubus_request_set_fd(struct ubus_context *ctx __attribute__((__unused__)),
 				       struct ubus_request_data *req, int fd)
 {
     req->fd = fd;
-- 
2.7.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list