Skip to content

Fixed error: struct ubus_context declared inside parameter list

Bogdan Bogush requested to merge ubus_comp_err into devel

Fixed compilation for RDK-B json RPC. json RPC daemon does not use ubus therefore ubus headers are not included before libdmtree/dmentry.h.

In file included from daemon/json_rpc/get_helper.c:21:
libdmtree/dmentry.h:51:53: error: 'struct ubus_context' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
|    51 | int handle_transaction_of_registered_service(struct ubus_context *ctx, struct blob_buf *trans_bb, struct list_head *srvlist,
|       |                                                     ^~~~~~~~~~~~
| cc1: all warnings being treated as errors

Merge request reports

Loading