From 78a7b67f03f9267fd47ab3686f971d1190cadf1a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 27 Sep 2006 13:03:26 +0100 Subject: [PATCH] Cast to PyCFunction to avoid compiler warning for function with kwargs --- _dbus_bindings/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_dbus_bindings/module.c b/_dbus_bindings/module.c index f87119e..4c47cec 100644 --- a/_dbus_bindings/module.c +++ b/_dbus_bindings/module.c @@ -45,7 +45,7 @@ PyDoc_STRVAR(module_doc, #include "bus-impl.h" /* Bus */ static PyMethodDef module_functions[] = { -#define ENTRY(name,flags) {#name, name, flags, name##__doc__} +#define ENTRY(name,flags) {#name, (PyCFunction)name, flags, name##__doc__} ENTRY(validate_interface_name, METH_VARARGS), ENTRY(validate_member_name, METH_VARARGS), ENTRY(validate_bus_name, METH_VARARGS|METH_KEYWORDS), -- 2.11.4.GIT