[rtems commit] bsps/mpc83xx: Fix warnings

Sebastian Huber sebh at rtems.org
Fri Jan 9 13:09:38 UTC 2015


Module:    rtems
Branch:    master
Commit:    fca5892454aa8231e0c76557ea597155ba608f36
Changeset: http://git.rtems.org/rtems/commit/?id=fca5892454aa8231e0c76557ea597155ba608f36

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 19 12:07:23 2014 +0100

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 35a31c0..a16369f 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)




More information about the vc mailing list