commit b1874ba28d8de67583a66c7b7bd48c9750f36e96
Author: Thomas Sailer <t.sailer(a)alumni.ethz.ch>
Date: Fri Feb 22 19:44:36 2013 +0100
explicit cast to satisfy format string
glib-formatstring.patch | 11 +++++++++++
mingw-glib2.spec | 3 +++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/glib-formatstring.patch b/glib-formatstring.patch
new file mode 100644
index 0000000..8977fab
--- /dev/null
+++ b/glib-formatstring.patch
@@ -0,0 +1,11 @@
+--- 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", (long int)t);
+
+ TEST_PRINTF ("%a", "Sat");
+ TEST_PRINTF ("%A", "Saturday");
diff --git a/mingw-glib2.spec b/mingw-glib2.spec
index c5a683d..bc29781 100644
--- a/mingw-glib2.spec
+++ b/mingw-glib2.spec
@@ -55,6 +55,8 @@ Patch2: glib-build-dbus-proxy-testcase-only-on-unix.patch
#
https://bugzilla.gnome.org/show_bug.cgi?id=692085
Patch3: glib-send-log-messages-to-correct-stdout-and-stderr.patch
+Patch4: glib-formatstring.patch
+
%description
MinGW Windows Glib2 library.
@@ -98,6 +100,7 @@ Static version of the MinGW Windows GLib2 library.
%patch1 -p1
%patch2 -p1
%patch3 -p0
+%patch4 -p0
autoreconf -i --force