summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--giscanner/giscannermodule.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1878ae1d..0b6d19d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2008-04-27 Johan Dahlin <johan@gnome.org>
+ * giscanner/giscannermodule.c (]): Cast the getter, avoids
+ a compilation warning.
+
* tools/Makefile.am (g_ir_scanner_SOURCES):
g-ir-scanner has no sources.
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 933936c3..ce5c4561 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -234,7 +234,8 @@ static const PyGetSetDef _PyGISourceSymbol_getsets[] = {
/* gboolean const_int_set; */
{ "const_int", (getter)symbol_get_const_int, NULL, NULL},
{ "const_string", (getter)symbol_get_const_string, NULL, NULL},
- { "directives", (getter)symbol_get_directives, symbol_set_directives, NULL},
+ { "directives", (getter)symbol_get_directives,
+ (setter)symbol_set_directives, NULL},
{ 0 }
};