changeset 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 90cfa133efa9
children 73a01c1a35ba
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 @@
+2007-01-07  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/sync/mbox.cxx (Cyg_Mbox::get): Fix compiler warning with gcc
+	version 4.1.2.
+
 2006-10-12  Nick Garnett  <nickg@ecoscentric.com>
 
 	* cdl/synch.cdl: Added CYGIMP_MBOX_USE_MBOXT_PLAIN option. This is
--- 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;