From d634b018107c5aaeaeca704c14b9e853b9d52bfd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 23 Jul 2008 17:36:41 +0100 Subject: Avoid some compiler warnings --- _dbus_bindings/dbus_bindings-internal.h | 1 + _dbus_glib_bindings/module.c | 2 ++ test/dbus_py_test.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/_dbus_bindings/dbus_bindings-internal.h b/_dbus_bindings/dbus_bindings-internal.h index efc9f40..e2b7fbe 100644 --- a/_dbus_bindings/dbus_bindings-internal.h +++ b/_dbus_bindings/dbus_bindings-internal.h @@ -162,6 +162,7 @@ extern PyTypeObject DBusPyServer_Type; DEFINE_CHECK(DBusPyServer) extern dbus_bool_t dbus_py_init_server_types(void); extern dbus_bool_t dbus_py_insert_server_types(PyObject *this_module); +extern DBusServer *DBusPyServer_BorrowDBusServer(PyObject *self); /* validation.c */ dbus_bool_t dbus_py_validate_bus_name(const char *name, diff --git a/_dbus_glib_bindings/module.c b/_dbus_glib_bindings/module.c index 53e39f3..93503d5 100644 --- a/_dbus_glib_bindings/module.c +++ b/_dbus_glib_bindings/module.c @@ -28,6 +28,8 @@ #include #include +PyMODINIT_FUNC init_dbus_glib_bindings(void); + #if defined(__GNUC__) # if __GNUC__ >= 3 # define UNUSED __attribute__((__unused__)) diff --git a/test/dbus_py_test.c b/test/dbus_py_test.c index 35603cb..5604e32 100644 --- a/test/dbus_py_test.c +++ b/test/dbus_py_test.c @@ -26,6 +26,8 @@ #include #include "dbus-python.h" +PyMODINIT_FUNC initdbus_py_test(void); + #if defined(__GNUC__) # if __GNUC__ >= 3 # define UNUSED __attribute__((__unused__)) -- cgit v1.2.1