summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-06 08:44:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-06 08:44:07 +0000
commit957ec6fcc81d603216ace1e2366bb841efbf959e (patch)
tree731abfa41803e10b667231de3e33e694723bfa1b /ext
parent1f6a7c18f59a0547bd11a9b355376d2d6fd6e406 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/syck/rubyext.c1
-rw-r--r--ext/syck/syck.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 970b64ed05d..b234efdfadb 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -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;
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 7fd97f1b0ab..8885b000de2 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -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 ))