Squelch some compiler warnings.

svn path=/trunk/; revision=32036
This commit is contained in:
Guy Harris 2010-02-27 20:12:47 +00:00
parent 0811fba435
commit 45bed99e2b
1 changed files with 4 additions and 6 deletions

View File

@ -507,7 +507,7 @@ gchar *
abs_time_to_str(nstime_t *abs_time, absolute_time_display_e fmt)
{
struct tm *tmp = NULL;
const char *zonename;
const char *zonename = "???";
gchar *buf = NULL;
#ifdef _MSC_VER
@ -538,8 +538,7 @@ abs_time_to_str(nstime_t *abs_time, absolute_time_display_e fmt)
#else
zonename = tmp->tm_isdst ? "?ST" : "?DT";
#endif
} else
zonename = NULL;
}
break;
}
if (tmp) {
@ -578,7 +577,7 @@ gchar *
abs_time_secs_to_str(time_t abs_time, absolute_time_display_e fmt)
{
struct tm *tmp = NULL;
const char *zonename;
const char *zonename = "???";
gchar *buf = NULL;
#ifdef _MSC_VER
@ -609,8 +608,7 @@ abs_time_secs_to_str(time_t abs_time, absolute_time_display_e fmt)
#else
zonename = tmp->tm_isdst ? "?ST" : "?DT";
#endif
} else
zonename = NULL;
}
break;
}
if (tmp) {