ruby-changes:19406
From: naruse <ko1@a...>
Date: Fri, 6 May 2011 17:44:15 +0900 (JST)
Subject: [ruby-changes:19406] Ruby:r31446 (trunk): * ext/syck/rubyext.c (mktime_do): remove unused variable offset.
naruse 2011-05-06 17:44:07 +0900 (Fri, 06 May 2011) New Revision: 31446 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31446 Log: * ext/syck/rubyext.c (mktime_do): remove unused variable offset. * ext/syck/syck.h: use #ifdef instead of #if DEBUG. Modified files: trunk/ChangeLog trunk/ext/syck/rubyext.c trunk/ext/syck/syck.h Index: ChangeLog =================================================================== --- ChangeLog (revision 31445) +++ ChangeLog (revision 31446) @@ -1,3 +1,9 @@ +Fri May 6 17:43:07 2011 NARUSE, Yui <naruse@r...> + + * ext/syck/rubyext.c (mktime_do): remove unused variable offset. + + * ext/syck/syck.h: use #ifdef instead of #if DEBUG. + Fri May 6 16:27:33 2011 NARUSE, Yui <naruse@r...> * ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438. Index: ext/syck/rubyext.c =================================================================== --- ext/syck/rubyext.c (revision 31445) +++ ext/syck/rubyext.c (revision 31446) @@ -274,7 +274,6 @@ { char padded[] = "000000.000000"; const int padding = 6; - const int offset = padding + 1; const char *end = ptr + 1; const char *begin = end; int length; Index: ext/syck/syck.h =================================================================== --- ext/syck/syck.h (revision 31445) +++ ext/syck/syck.h (revision 31446) @@ -30,7 +30,7 @@ #include <alloca.h> #endif -#if DEBUG +#ifdef DEBUG void syck_assert( const char *, unsigned, const char * ); # define ASSERT(f) \ (( f ) ? (void)0 : syck_assert( __FILE__, __LINE__, #f )) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/