[anjuta/f19] Fix Wformat errors
Richard Hughes
rhughes at fedoraproject.org
Tue May 14 08:55:00 UTC 2013
commit b004dbc22e97269c569ab17117bdb0a1dc7d47a0
Author: Richard Hughes <richard at hughsie.com>
Date: Tue May 14 09:54:54 2013 +0100
Fix Wformat errors
...a-bgo-699327-Use-G_GSIZE_FORMAT-for-gsize.patch | 44 ++++++++++++++++++++
anjuta.spec | 4 ++
2 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/0001-libanjuta-bgo-699327-Use-G_GSIZE_FORMAT-for-gsize.patch b/0001-libanjuta-bgo-699327-Use-G_GSIZE_FORMAT-for-gsize.patch
new file mode 100644
index 0000000..cd9b3d6
--- /dev/null
+++ b/0001-libanjuta-bgo-699327-Use-G_GSIZE_FORMAT-for-gsize.patch
@@ -0,0 +1,44 @@
+From b7a05e8c940694efa103d705c4826a7796100332 Mon Sep 17 00:00:00 2001
+From: "Arnel A. Borja" <kyoushuu at yahoo.com>
+Date: Sun, 28 Apr 2013 00:01:54 +0800
+Subject: [PATCH] libanjuta: bgo #699327 - Use G_GSIZE_FORMAT for gsize
+
+---
+ libanjuta/anjuta-token.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libanjuta/anjuta-token.c b/libanjuta/anjuta-token.c
+index 136e8e9..291b7cf 100644
+--- a/libanjuta/anjuta-token.c
++++ b/libanjuta/anjuta-token.c
+@@ -329,7 +329,7 @@ anjuta_token_show (AnjutaToken *token, gint indent, gchar parent)
+ if (string == NULL)
+ {
+ /* Value doesn't contain a newline */
+- fprintf (stderr, "(%lu)", length);
++ fprintf (stderr, "(%" G_GSIZE_FORMAT ")", length);
+ }
+ else
+ {
+--
+1.8.2.1
+
+commit 15d803e41f5750dddb89bc0b91a954ba5e3fc52d
+Author: Carl-Anton Ingmarsson <ca.ingmarsson at gmail.com>
+Date: Sun Apr 28 22:27:37 2013 +0200
+
+ dir-project: fix compile error
+
+diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
+index 95a95ac..2301e1d 100644
+--- a/plugins/dir-project/dir-project.c
++++ b/plugins/dir-project/dir-project.c
+@@ -268,7 +268,7 @@ dir_pattern_new (const gchar *pattern, gboolean reverse)
+ {
+ ptr++;
+ } while (*ptr == '?');
+- g_string_append_printf (regex, "(.{%d})", ptr - next);
++ g_string_append_printf (regex, "(.{%ld})", ptr - next);
+ }
+ else if (*ptr == '\\')
+ {
diff --git a/anjuta.spec b/anjuta.spec
index 78db9e0..f997fe3 100644
--- a/anjuta.spec
+++ b/anjuta.spec
@@ -15,6 +15,9 @@ Source0: http://download.gnome.org/sources/anjuta/3.8/%{name}-%{version}.
# Already upstream
Patch0: 0001-Fixed-Indonesian-translation.patch
+# Already upstream
+Patch1: 0001-libanjuta-bgo-699327-Use-G_GSIZE_FORMAT-for-gsize.patch
+
BuildRequires: autogen
BuildRequires: desktop-file-utils
BuildRequires: devhelp-devel >= 3.0.0
@@ -71,6 +74,7 @@ This package contains development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .fix-translations
+%patch1 -p1 -b .Use-G_GSIZE_FORMAT-for-gsize
# Suppress rpmlint error.
iconv --from-code ISO8859-1 --to-code UTF-8 ./THANKS \
More information about the scm-commits
mailing list