changeset 1489:0418d60dd8fb

Clean up warnings
author gthomas
date Mon, 09 Feb 2004 20:23:39 +0000
parents d3c32a6f5eb5
children d606c80a8421
files packages/devs/eth/ns/dp83816/current/src/if_dp83816.c packages/devs/eth/phy/current/src/eth_phy.c packages/hal/powerpc/ppc40x/current/src/var_intr.c
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/eth/ns/dp83816/current/src/if_dp83816.c
+++ b/packages/devs/eth/ns/dp83816/current/src/if_dp83816.c
@@ -9,6 +9,7 @@
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2003, 2004 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -379,7 +380,6 @@ dp83816_warm_reset(struct eth_drv_sc *sc
 {
     struct dp83816_priv_data *dp = (struct dp83816_priv_data *)sc->driver_private;
     dp83816_bd_t *bdp;
-    int len, err;
     int i;
 
     // Free up any active Tx buffers
--- a/packages/devs/eth/phy/current/src/eth_phy.c
+++ b/packages/devs/eth/phy/current/src/eth_phy.c
@@ -8,7 +8,7 @@
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 2003 Gary Thomas
+// Copyright (C) 2003, 2004 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -234,7 +234,7 @@ externC int
 
     if (!f->init_done) {
         diag_printf("PHY config without init on PHY: %x\n", f);
-        return;
+        return 0;
     }
 
     // Reset PHY (transceiver)
--- a/packages/hal/powerpc/ppc40x/current/src/var_intr.c
+++ b/packages/hal/powerpc/ppc40x/current/src/var_intr.c
@@ -9,7 +9,7 @@
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2002, 2003 Gary Thomas
+// Copyright (C) 2002, 2003, 2004 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -193,6 +193,7 @@ hal_ppc40x_interrupt_mask(int vector)
         _hold_tcr = tcr;
         break;
     default:
+        break;
     }
 }
 
@@ -242,6 +243,7 @@ hal_ppc40x_interrupt_unmask(int vector)
         _hold_tcr = tcr;
         break;
     default:
+        break;
     }
 }
 
@@ -275,6 +277,7 @@ hal_ppc40x_interrupt_acknowledge(int vec
     case CYGNUM_HAL_INTERRUPT_DMA2:
     case CYGNUM_HAL_INTERRUPT_DMA3:
     default:
+        break;
     }
 }
 
@@ -369,6 +372,7 @@ hal_ppc40x_interrupt_mask(int vector)
         _hold_tcr = tcr;
         break;
     default:
+        break;
     }
 }
 
@@ -409,6 +413,7 @@ hal_ppc40x_interrupt_unmask(int vector)
         _hold_tcr = tcr;
         break;
     default:
+        break;
     }
 }
 
@@ -433,6 +438,7 @@ hal_ppc40x_interrupt_acknowledge(int vec
         CYGARC_MTSPR(SPR_TSR, TSR_WIS);  // clear & acknowledge interrupt
         break;
     default:
+        break;
     }
 }