[glom] Use format "%lu" for GType and add cast
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] Use format "%lu" for GType and add cast
- Date: Fri, 24 Jul 2009 08:06:40 +0000 (UTC)
commit 96717abe35dbeeb70f5ab2648636a3630a793d22
Author: Daniel Elstner <danielk openismus com>
Date: Fri Jul 24 09:50:38 2009 +0200
Use format "%lu" for GType and add cast
* glom/libglom/python_embed/pygdavalue_conversions.c: Change format
specifier in g_warning() message back from "%u" to "%lu", and add an
explicit cast to unsigned long. Looks like GLib silently changed the
type of GType from gulong to gsize, except when using a C++ compiler
with a 64 bit target. (Yes, really.)
ChangeLog | 10 ++++++++++
glom/libglom/python_embed/pygdavalue_conversions.c | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1df89e6..85eaa37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2009-07-24 Daniel Elstner <danielk openismus com>
+ Use format "%lu" for GType and add cast
+
+ * glom/libglom/python_embed/pygdavalue_conversions.c: Change format
+ specifier in g_warning() message back from "%u" to "%lu", and add an
+ explicit cast to unsigned long. Looks like GLib silently changed the
+ type of GType from gulong to gsize, except when using a C++ compiler
+ with a 64 bit target. (Yes, really.)
+
+2009-07-24 Daniel Elstner <danielk openismus com>
+
Suppress warning for missing field initializers
* configure.ac (GLOM_WXXFLAGS): Add -Wno-missing-field-initializers to
diff --git a/glom/libglom/python_embed/pygdavalue_conversions.c b/glom/libglom/python_embed/pygdavalue_conversions.c
index 94c6e41..0a54d2c 100644
--- a/glom/libglom/python_embed/pygdavalue_conversions.c
+++ b/glom/libglom/python_embed/pygdavalue_conversions.c
@@ -156,7 +156,7 @@ pygda_value_as_pyobject(const GValue *boxed, gboolean copy_boxed)
} else if (value_type == G_TYPE_UINT) {
ret = PyInt_FromLong (g_value_get_uint ((GValue*)boxed));
} else {
- g_warning ("G_VALUE_TYPE() returned unknown type %u", value_type);
+ g_warning ("G_VALUE_TYPE() returned unknown type %lu", (unsigned long)value_type);
Py_INCREF (Py_None);
ret = Py_None;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]