ruby-changes:7083
From: nobu <ko1@a...>
Date: Thu, 14 Aug 2008 12:20:54 +0900 (JST)
Subject: [ruby-changes:7083] Ruby:r18601 (trunk): * transcode.c (load_transcoder): suppress warning.
nobu 2008-08-14 12:20:38 +0900 (Thu, 14 Aug 2008) New Revision: 18601 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18601 Log: * transcode.c (load_transcoder): suppress warning. * missing/vsnprintf.c (BSD_vfprintf): ditto. Modified files: trunk/ChangeLog trunk/missing/vsnprintf.c trunk/transcode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18600) +++ ChangeLog (revision 18601) @@ -1,3 +1,9 @@ +Thu Aug 14 12:20:36 2008 Nobuyoshi Nakada <nobu@r...> + + * transcode.c (load_transcoder): suppress warning. + + * missing/vsnprintf.c (BSD_vfprintf): ditto. + Thu Aug 14 12:01:39 2008 Nobuyoshi Nakada <nobu@r...> * configure.in (gnumake): check for GNU make. Index: transcode.c =================================================================== --- transcode.c (revision 18600) +++ transcode.c (revision 18601) @@ -269,6 +269,7 @@ return NULL; } +#if USE_TRANSCODING_OPEN static const rb_transcoder * load_transcoder(const char *from, const char *to) { @@ -285,6 +286,7 @@ return tr; } +#endif static const char* get_replacement_character(rb_encoding *enc, int *len_ret) @@ -641,7 +643,7 @@ return tc; } -#if 0 +#if USE_TRANSCODING_OPEN static rb_transcoding * rb_transcoding_open(const char *from, const char *to, int flags) { Index: missing/vsnprintf.c =================================================================== --- missing/vsnprintf.c (revision 18600) +++ missing/vsnprintf.c (revision 18601) @@ -535,10 +535,10 @@ char sign; /* sign prefix (' ', '+', '-', or \0) */ #ifdef FLOATING_POINT char softsign; /* temporary negative sign for floats */ - double _double; /* double precision arguments %[eEfgG] */ + double _double = 0; /* double precision arguments %[eEfgG] */ int expt; /* integer value of exponent */ - int expsize; /* character count for expstr */ - int ndig; /* actual number of digits returned by cvt */ + int expsize = 0; /* character count for expstr */ + int ndig = 0; /* actual number of digits returned by cvt */ char expstr[7]; /* buffer for exponent string */ #endif u_long ulval; /* integer arguments %[diouxX] */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/