From fca5892454aa8231e0c76557ea597155ba608f36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Dec 2014 12:07:23 +0100 Subject: bsps/mpc83xx: Fix warnings --- c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c index 35a31c01fd..a16369f0e3 100644 --- a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c +++ b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c @@ -635,6 +635,7 @@ static void tsec_receive_packets * throw away mbuf */ MFREE(m,n); + (void) n; } /* * mark buffer as non-allocated (for refill) @@ -684,6 +685,7 @@ static void tsec_refill_rxbds MCLGET(m,M_DONTWAIT); if ((m->m_flags & M_EXT) == 0) { MFREE(m,n); + (void) n; m = NULL; } } @@ -735,7 +737,6 @@ static void tsec_rxDaemon struct tsec_struct *sc = (struct tsec_struct *)arg; bool finished = false; - rtems_event_set events; #if !defined(CLREVENT_IN_IRQ) uint32_t irq_events; #endif @@ -751,7 +752,7 @@ static void tsec_rxDaemon /* * wait for events to come in */ - events = tsec_rx_wait_for_events(sc,INTERRUPT_EVENT); + tsec_rx_wait_for_events(sc,INTERRUPT_EVENT); #if !defined(CLREVENT_IN_IRQ) /* * clear any pending RX events @@ -924,6 +925,7 @@ static void tsec_tx_retire sc->Tx_mBuf_Ptr[bd_idx] = NULL; MFREE(m,n); + (void) n; RetBD->buffer = NULL; /* * Advance CurrBD to next BD @@ -1071,7 +1073,6 @@ static void tsec_txDaemon struct ifnet *ifp = &sc->arpcom.ac_if; struct mbuf *m; bool finished = false; - rtems_event_set events; #if !defined(CLREVENT_IN_IRQ) uint32_t irq_events; #endif @@ -1085,7 +1086,7 @@ static void tsec_txDaemon /* * wait for events to come in */ - events = tsec_tx_wait_for_events(sc, + tsec_tx_wait_for_events(sc, START_TRANSMIT_EVENT | INTERRUPT_EVENT); #if !defined(CLREVENT_IN_IRQ) -- cgit v1.2.3