# HG changeset patch # User gthomas # Date 1076358219 0 # Node ID 0418d60dd8fb7a037dfbc84b63dcbedb71e89737 # Parent d3c32a6f5eb589bf3f0715231c8edb149c3b0c20 Clean up warnings diff --git a/packages/devs/eth/ns/dp83816/current/src/if_dp83816.c b/packages/devs/eth/ns/dp83816/current/src/if_dp83816.c --- 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 diff --git a/packages/devs/eth/phy/current/src/eth_phy.c b/packages/devs/eth/phy/current/src/eth_phy.c --- 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) diff --git a/packages/hal/powerpc/ppc40x/current/src/var_intr.c b/packages/hal/powerpc/ppc40x/current/src/var_intr.c --- 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; } }