--- glib/tests/gdatetime.c.orig	2013-02-22 19:12:04.254926898 +0100
+++ glib/tests/gdatetime.c	2013-02-22 19:42:53.195159124 +0100
@@ -844,7 +844,7 @@
   tt.tm_min = 0;
   tt.tm_hour = 0;
   t = mktime (&tt);
-  g_sprintf (t_str, "%ld", t);
+  g_sprintf (t_str, "%ld", (glong)t);
 
   TEST_PRINTF ("%a", "Sat");
   TEST_PRINTF ("%A", "Saturday");
--- gio/gdbusmessage.c.orig	2013-02-22 20:07:15.294752111 +0100
+++ gio/gdbusmessage.c	2013-02-22 20:07:55.788028585 +0100
@@ -1384,7 +1384,7 @@
                                 "Wanted to read %lu byte but only got %lu",
                                 (gulong)len),
                                 (gulong)len,
-                   (gulong)mbuf->valid_len - mbuf->pos);
+                   (gulong)(mbuf->valid_len - mbuf->pos));
       mbuf->pos = mbuf->valid_len;
       return NULL;
     }
