Skip to content

Commit

Permalink
Merge pull request #21082 from krzysztof-cabaj/pkg_lwip_compilation_e…
Browse files Browse the repository at this point in the history
…rror

pkg/lwip: fix unused parameter error, when DEVELHELP = 0
  • Loading branch information
benpicco authored Dec 13, 2024
2 parents a4026b7 + 72cb835 commit 775fd55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lwip/contrib/_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ int netif_set_opt(const netif_t *iface, netopt_t opt, uint16_t context,
switch (opt) {
case NETOPT_ACTIVE: {
assert(value_len >= sizeof(netopt_enable_t));
(void)value_len; /* Eliminates compilation unused parameter error, when DEVELHELP = 0*/
netopt_enable_t *state = value;
if (*state == NETOPT_ENABLE) {
netifapi_netif_set_up(netif);
Expand Down

0 comments on commit 775fd55

Please sign in to comment.