This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix gcc 3.2 error and warningin posix package


Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/posix/current/ChangeLog,v
retrieving revision 1.33
diff -u -5 -p -r1.33 ChangeLog
--- ChangeLog	18 Jan 2003 04:09:31 -0000	1.33
+++ ChangeLog	20 Jan 2003 13:09:03 -0000
@@ -1,5 +1,12 @@
+2003-01-20  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* src/signal.cxx (cyg_posix_deliver_signals): silence warning.
+
+	* src/time.cxx (cyg_timespec_to_ticks): Remove use of default arg in
+	definition.
+
 2003-01-18  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/mqueue.cxx: Fix multi-line string literal warning.
 
 2003-01-13  Jonathan Larmour  <jifl@eCosCentric.com>
Index: src/signal.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/posix/current/src/signal.cxx,v
retrieving revision 1.14
diff -u -5 -p -r1.14 signal.cxx
--- src/signal.cxx	26 Nov 2002 18:16:46 -0000	1.14
+++ src/signal.cxx	20 Jan 2003 13:09:04 -0000
@@ -771,16 +771,19 @@ externC void cyg_posix_deliver_signals( 
         if( mask != NULL )
         {
             oldmask = self->sigmask;
             self->sigmask = *mask;
         }
+        else
+            oldmask = 0;   // silence warning
 
         cyg_deliver_signals();
 
         if( mask != NULL )        
             self->sigmask = oldmask;
     }
+    return;
 }
 
 // -------------------------------------------------------------------------
 // Get set of pending signals for this process
 
Index: src/time.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/posix/current/src/time.cxx,v
retrieving revision 1.7
diff -u -5 -p -r1.7 time.cxx
--- src/time.cxx	23 May 2002 23:00:00 -0000	1.7
+++ src/time.cxx	20 Jan 2003 13:09:04 -0000
@@ -181,11 +181,11 @@ static cyg_bool valid_timespec( const st
 
     return true;
 }
 
 externC cyg_tick_count cyg_timespec_to_ticks( const struct timespec *tp,
-                                         cyg_bool roundup = false)
+                                              cyg_bool roundup)
 {
     init_converters();
 
     // Short circuit zero timespecs
     if( tp->tv_sec == 0 && tp->tv_nsec == 0 )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]