mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/syck/rubyext.c (mktime_do): remove unused variable offset.
* ext/syck/syck.h: use #ifdef instead of #if DEBUG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1f6a7c18f5
								
							
						
					
					
						commit
						957ec6fcc8
					
				
					 3 changed files with 7 additions and 2 deletions
				
			
		|  | @ -1,3 +1,9 @@ | |||
| Fri May  6 17:43:07 2011  NARUSE, Yui  <naruse@ruby-lang.org> | ||||
| 
 | ||||
| 	* 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@ruby-lang.org> | ||||
| 
 | ||||
| 	* ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438. | ||||
|  |  | |||
|  | @ -274,7 +274,6 @@ mktime_do(VALUE varg) | |||
|     { | ||||
|         char padded[] = "000000.000000"; | ||||
|         const int padding = 6; | ||||
|         const int offset = padding + 1; | ||||
|         const char *end = ptr + 1; | ||||
|         const char *begin = end; | ||||
|         int length; | ||||
|  |  | |||
|  | @ -30,7 +30,7 @@ extern "C" { | |||
| #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 )) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 naruse
						naruse