diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 19:55:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 19:55:25 +0000 |
commit | fa8c20d7442acba1caeabc56e5a97a19b759a938 (patch) | |
tree | b5ac3b9bccd8d1b669137035a316ba53a5b0e276 /time.c | |
parent | 7bf0804e548db6cb1e517f5d75f54ac6fab41500 (diff) | |
download | ruby-fa8c20d7442acba1caeabc56e5a97a19b759a938.tar.gz ruby-fa8c20d7442acba1caeabc56e5a97a19b759a938.tar.xz ruby-fa8c20d7442acba1caeabc56e5a97a19b759a938.zip |
* suppress warnings on cygwin, mingw and mswin.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -333,7 +333,7 @@ time_s_at(int argc, VALUE *argv, VALUE klass) return t; } -static const char const months[][4] = { +static const char months[][4] = { "jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec", }; @@ -829,7 +829,10 @@ static time_t make_time_t(struct tm *tptr, int utc_p) { time_t t; - struct tm *tmp, buf; +#ifdef NEGATIVE_TIME_T + struct tm *tmp; +#endif + struct tm buf; buf = *tptr; if (utc_p) { #if defined(HAVE_TIMEGM) |