Skip to content

Commit 875d11a

Browse files
clamattiakartben
authored andcommitted
net: hostname: Fix compiler warning unused argument
For the `static inline` replacement of the `hostname_set`-function add `ARG_UNUSED`-macros, such that the compiler does not warn about the unused arguments. Signed-off-by: Cla Mattia Galliard <cla-mattia.galliard@zuehlke.com>
1 parent dcd8bcb commit 875d11a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/zephyr/net/hostname.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ int net_hostname_set(char *host, size_t len);
7575
#else
7676
static inline int net_hostname_set(char *host, size_t len)
7777
{
78+
ARG_UNUSED(host);
79+
ARG_UNUSED(len);
7880
return -ENOTSUP;
7981
}
8082
#endif

0 commit comments

Comments
 (0)