Mercurial > nand-ecoscentric
diff packages/kernel/current/src/sync/mbox.cxx @ 2347:f5f9a2e0c73b
* src/sync/mbox.cxx (Cyg_Mbox::get): Fix compiler warning with gcc
version 4.1.2.
| author | asl |
|---|---|
| date | Sun, 07 Jan 2007 17:08:53 +0000 |
| parents | c54d8b5a6811 |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/kernel/current/src/sync/mbox.cxx +++ b/packages/kernel/current/src/sync/mbox.cxx @@ -109,7 +109,7 @@ Cyg_Mbox::check_this(cyg_assert_class_ze void * Cyg_Mbox::get() { - void * p; + void * p=NULL; if ( ! m.get( p ) ) return NULL; return p; @@ -119,7 +119,7 @@ Cyg_Mbox::get() void * Cyg_Mbox::get( cyg_tick_count timeout ) { - void * p; + void * p=NULL; if ( ! m.get( p, timeout ) ) return NULL; return p;
