Mercurial > ecos
changeset 2037:c54d8b5a6811
* src/sync/mbox.cxx (tryget,peak_item): initialize local variable
to avoid compiler warning.
| author | asl |
|---|---|
| date | Sat, 30 Jul 2005 11:58:25 +0000 |
| parents | 65e8e7ac3645 |
| children | 1f65cc07a3e5 |
| files | packages/kernel/current/ChangeLog packages/kernel/current/src/sync/mbox.cxx |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2005-07-30 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/sync/mbox.cxx (tryget,peak_item): initialize local variable + to avoid compiler warning. + 2005-06-21 Peter Korsgaard <jacmet@sunsite.dk> * tests/kcache2.c (test_dcache_operation): Fixed compiler warnings
--- a/packages/kernel/current/src/sync/mbox.cxx +++ b/packages/kernel/current/src/sync/mbox.cxx @@ -129,7 +129,7 @@ Cyg_Mbox::get( cyg_tick_count timeout ) void * Cyg_Mbox::tryget() { - void * p; + void * p=NULL; if ( ! m.tryget( p ) ) return NULL; return p; @@ -160,7 +160,7 @@ Cyg_Mbox::tryput( void *item ) void * Cyg_Mbox::peek_item() // Get next item to be returned { - void *p; + void *p=NULL; if ( ! m.peek_item( p ) ) return NULL; return p;
