Skip to content

Commit 5360417

Browse files
committed
lwip: do not mark used arguments as unused
1 parent 114237c commit 5360417

File tree

1 file changed

+6
-6
lines changed
  • examples/lwip_ethernet_tap

1 file changed

+6
-6
lines changed

examples/lwip_ethernet_tap/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ typedef struct {
105105
// We only use this as a mechanism for the kernel to inform the app that at
106106
// least one frame has been placed into the streaming process slice. Hence this
107107
// simply sets the `frame_received` flag passed in `data`:
108-
static void frame_rx_upcall(__attribute__((unused)) int p0,
109-
__attribute__((unused)) int p1,
110-
__attribute__((unused)) int p2,
111-
__attribute__((unused)) void* data) {
108+
static void frame_rx_upcall(__attribute__((unused)) int p0,
109+
__attribute__((unused)) int p1,
110+
__attribute__((unused)) int p2,
111+
void* data) {
112112
struct netif* tapif = data;
113113
tapif_state_t* state = tapif->state;
114114

@@ -142,8 +142,8 @@ static void frame_tx_upcall(int statuscode_int,
142142
}
143143

144144
// LwIP packet (Ethernet frame) transmission callback:
145-
static err_t tapif_output(__attribute__((unused)) struct netif* tapif,
146-
struct pbuf* p) {
145+
static err_t tapif_output(struct netif* tapif,
146+
struct pbuf* p) {
147147
tapif_state_t* state = tapif->state;
148148

149149
// Increment the link statistics

0 commit comments

Comments
 (0)