Skip to content

Commit 294a26b

Browse files
clamattiakartben
authored andcommitted
net: mgmt: fix compiler warnings for static inline shims
Add ARG_UNUSED(x) for static inline shims inside net_mgmt.h. This avoids compiler warnings for "unused variables". Signed-off-by: Cla Mattia Galliard <cla-mattia.galliard@zuehlke.com>
1 parent 1dbe1df commit 294a26b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/zephyr/net/net_mgmt.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ static inline int net_mgmt_event_wait(uint32_t mgmt_event_mask,
345345
size_t *info_length,
346346
k_timeout_t timeout)
347347
{
348+
ARG_UNUSED(mgmt_event_mask);
349+
ARG_UNUSED(raised_event);
350+
ARG_UNUSED(iface);
351+
ARG_UNUSED(info);
352+
ARG_UNUSED(info_length);
353+
ARG_UNUSED(timeout);
348354
return 0;
349355
}
350356
#endif
@@ -383,6 +389,12 @@ static inline int net_mgmt_event_wait_on_iface(struct net_if *iface,
383389
size_t *info_length,
384390
k_timeout_t timeout)
385391
{
392+
ARG_UNUSED(iface);
393+
ARG_UNUSED(mgmt_event_mask);
394+
ARG_UNUSED(raised_event);
395+
ARG_UNUSED(info);
396+
ARG_UNUSED(info_length);
397+
ARG_UNUSED(timeout);
386398
return 0;
387399
}
388400
#endif

0 commit comments

Comments
 (0)