Index: stdio/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdio/current/ChangeLog,v retrieving revision 1.35 diff -u -r1.35 ChangeLog --- stdio/current/ChangeLog 14 Apr 2005 16:42:12 -0000 1.35 +++ stdio/current/ChangeLog 30 Jul 2005 11:43:33 -0000 @@ -1,3 +1,9 @@ +2005-07-22 Andrew Lunn + + * src/common/fopen.cxx (fopen): Default the open mode to Read + until we have process the flags. Initialize the dev handle. These + keep the compiler happy. + 2005-04-11 Jonathan Larmour * src/common/stream.cxx (read): don't reference flags.buffering Index: stdio/current/src/common/fopen.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdio/current/src/common/fopen.cxx,v retrieving revision 1.8 diff -u -r1.8 fopen.cxx --- stdio/current/src/common/fopen.cxx 27 Sep 2004 11:33:03 -0000 1.8 +++ stdio/current/src/common/fopen.cxx 30 Jul 2005 11:43:33 -0000 @@ -207,9 +207,9 @@ externC FILE * fopen( const char *filename, const char *mode ) __THROW { - cyg_stdio_handle_t dev; + cyg_stdio_handle_t dev = 0; Cyg_ErrNo err; - Cyg_StdioStream::OpenMode open_mode; + Cyg_StdioStream::OpenMode open_mode = Cyg_StdioStream::CYG_STREAM_READ; cyg_bool binary, append; // process_mode returns true on error Index: string/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/language/c/libc/string/current/ChangeLog,v retrieving revision 1.8 diff -u -r1.8 ChangeLog --- string/current/ChangeLog 15 Mar 2004 15:22:00 -0000 1.8 +++ string/current/ChangeLog 30 Jul 2005 11:43:33 -0000 @@ -1,3 +1,8 @@ +2005-07-22 Andrew Lunn + + * src/strcmp.cxx (__strcmp): Set retval to zero to avoid compiler + warnings. + 2004-02-20 Jonathan Larmour * include/string.h: Prototype strdup(). Index: string/current/src/strcmp.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/language/c/libc/string/current/src/strcmp.cxx,v retrieving revision 1.3 diff -u -r1.3 strcmp.cxx --- string/current/src/strcmp.cxx 23 May 2002 23:07:26 -0000 1.3 +++ string/current/src/strcmp.cxx 30 Jul 2005 11:43:34 -0000 @@ -81,7 +81,7 @@ CYG_CHECK_DATA_PTR( s1, "s1 is not a valid pointer!" ); CYG_CHECK_DATA_PTR( s2, "s2 is not a valid pointer!" ); - int retval; + int retval = 0; CYG_UNUSED_PARAM( int, retval ); // in case tracing is off