summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-23 17:36:41 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-23 17:36:41 +0100
commitd634b018107c5aaeaeca704c14b9e853b9d52bfd (patch)
tree5dbc2783c1516aa7e2be07b9f77db6e6f702ce14
parentfe5981ca2b90978c75d3308b0f58844fabf8ea4d (diff)
downloaddbus-python-d634b018107c5aaeaeca704c14b9e853b9d52bfd.tar.gz
Avoid some compiler warnings
-rw-r--r--_dbus_bindings/dbus_bindings-internal.h1
-rw-r--r--_dbus_glib_bindings/module.c2
-rw-r--r--test/dbus_py_test.c2
3 files changed, 5 insertions, 0 deletions
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 <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
+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 <Python.h>
#include "dbus-python.h"
+PyMODINIT_FUNC initdbus_py_test(void);
+
#if defined(__GNUC__)
# if __GNUC__ >= 3
# define UNUSED __attribute__((__unused__))