Remove compiler warnings for obscure combinations of build options.

This commit is contained in:
Simon Kelley
2025-05-24 15:09:53 +01:00
parent ebef27f321
commit 90b248582c
4 changed files with 17 additions and 2 deletions

View File

@@ -213,6 +213,11 @@ static int ubus_handle_set_connmark_allowlist(struct ubus_context *ctx, struct u
size_t num_patterns = 0;
struct blob_attr *tb[policy_len];
struct blob_attr *attr;
(void)ctx;
(void)obj;
(void)req;
(void)method;
if (blobmsg_parse(policy, policy_len, tb, blob_data(msg), blob_len(msg)))
return UBUS_STATUS_INVALID_ARGUMENT;