diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/glib/test-dbus-glib.c | 2 | ||||
-rw-r--r-- | test/test-segfault.c | 3 | ||||
-rw-r--r-- | test/test-utils.c | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/test/glib/test-dbus-glib.c b/test/glib/test-dbus-glib.c index 86c9f7ec..03a1a736 100644 --- a/test/glib/test-dbus-glib.c +++ b/test/glib/test-dbus-glib.c @@ -216,13 +216,11 @@ increment_received_cb (DBusGProxy *proxy, gpointer data) { GError *error; - char *echo_data; guint val; g_assert (!strcmp (data, "moo")); error = NULL; - echo_data = NULL; if (!dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &val, G_TYPE_INVALID)) diff --git a/test/test-segfault.c b/test/test-segfault.c index 94b42749..6a99131e 100644 --- a/test/test-segfault.c +++ b/test/test-segfault.c @@ -1,4 +1,5 @@ /* This is simply a process that segfaults */ +#include <stdlib.h> #include <signal.h> #include <sys/time.h> @@ -17,7 +18,7 @@ main (int argc, char **argv) raise (SIGSEGV); - p = 0; + p = NULL; *p = 'a'; return 0; diff --git a/test/test-utils.c b/test/test-utils.c index 5e367d4d..9665eda3 100644 --- a/test/test-utils.c +++ b/test/test-utils.c @@ -41,8 +41,6 @@ static void connection_timeout_callback (DBusTimeout *timeout, void *data) { - CData *cd = data; - /* Can return FALSE on OOM but we just let it fire again later */ dbus_timeout_handle (timeout); } |