Take out an unused line from gdatetime tests
authorMatthias Clasen <mclasen@redhat.com>
Sat, 17 Aug 2013 17:45:34 +0000 (13:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 Aug 2013 17:45:34 +0000 (13:45 -0400)
This line was apparently causing build problems on Win64,
and since the only test involving the t_str variable was
already commented out, lets just take this out altogether.

https://bugzilla.gnome.org/show_bug.cgi?id=696970

glib/tests/gdatetime.c

index 0cf5e85..2902520 100644 (file)
@@ -812,7 +812,6 @@ test_GDateTime_printf (void)
   gchar dst[64];
   struct tm tt;
   time_t t;
-  gchar t_str[16];
 
 #define TEST_PRINTF(f,o)                        G_STMT_START {  \
 GDateTime *__dt = g_date_time_new_local (2009, 10, 24, 0, 0, 0);\
@@ -855,7 +854,6 @@ GDateTime *__dt = g_date_time_new_local (2009, 10, 24, 0, 0, 0);\
   tt.tm_min = 0;
   tt.tm_hour = 0;
   t = mktime (&tt);
-  g_sprintf (t_str, "%ld", t);
 
   TEST_PRINTF ("%a", "Sat");
   TEST_PRINTF ("%A", "Saturday");
@@ -887,7 +885,6 @@ GDateTime *__dt = g_date_time_new_local (2009, 10, 24, 0, 0, 0);\
   TEST_PRINTF_TIME (13, 13, 13, "%r", "01:13:13 PM");
   TEST_PRINTF ("%R", "00:00");
   TEST_PRINTF_TIME (13, 13, 31, "%R", "13:13");
-  //TEST_PRINTF ("%s", t_str);
   TEST_PRINTF ("%S", "00");
   TEST_PRINTF ("%t", " ");
   TEST_PRINTF ("%u", "6");