From: Steve Hay Date: Tue, 13 Jan 2009 15:56:00 +0000 (+0000) Subject: Silence Win32 compiler warnings. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd1759d8c220b9edae81c969dfb04b88bfad2651;p=p5sagit%2Fp5-mst-13.2.git Silence Win32 compiler warnings. --- diff --git a/ext/mro/mro.xs b/ext/mro/mro.xs index 22509f4..3d343d4 100644 --- a/ext/mro/mro.xs +++ b/ext/mro/mro.xs @@ -282,7 +282,6 @@ mro_set_mro(...) PROTOTYPE: $$ PREINIT: SV* classname; - const struct mro_alg *which; HV* class_stash; struct mro_meta* meta; PPCODE: diff --git a/time64.c b/time64.c index c357ce1..5783d5a 100644 --- a/time64.c +++ b/time64.c @@ -380,7 +380,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p) /* Use the system gmtime() if time_t is small enough */ if( SHOULD_USE_SYSTEM_GMTIME(*in_time) ) { - time_t safe_time = *in_time; + time_t safe_time = (time_t)*in_time; struct tm safe_date; GMTIME_R(&safe_time, &safe_date); @@ -505,7 +505,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) /* Use the system localtime() if time_t is small enough */ if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) { - safe_time = *time; + safe_time = (time_t)*time; TRACE1("Using system localtime for %lld\n", *time); @@ -532,7 +532,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) gm_tm.tm_year = safe_year((Year)(gm_tm.tm_year + 1900)) - 1900; } - safe_time = timegm64(&gm_tm); + safe_time = (time_t)timegm64(&gm_tm); if( LOCALTIME_R(&safe_time, &safe_date) == NULL ) { TRACE1("localtime_r(%d) returned NULL\n", (int)safe_time); return NULL;