[libnet-dbus-perl] 294/335: Fix more compile warnings, including missing variable return

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:08:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit 7e5f4128da31f22cfbb53bbce3490f9a18ab3fe2
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Thu Jun 30 21:51:14 2011 +0100

    Fix more compile warnings, including missing variable return
---
 DBus.xs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/DBus.xs b/DBus.xs
index 2c000db..4291759 100644
--- a/DBus.xs
+++ b/DBus.xs
@@ -294,14 +294,12 @@ _message_filter(DBusConnection *con,
 		DBusMessage *msg,
 		void *data) {
     SV *selfref;
-    HV *self;
     SV *value;
     int count;
     int handled = 0;
     dSP;
 
     selfref = (SV*)dbus_connection_get_data(con, connection_data_slot);
-    self = (HV*)SvRV(selfref);
 
     DEBUG_MSG("Create message in filter %p\n", msg);
     DEBUG_MSG("  Type %d\n", dbus_message_get_type(msg));
@@ -341,12 +339,10 @@ void
 _pending_call_callback(DBusPendingCall *call,
 		       void *data) {
     SV *selfref;
-    HV *self;
     dSP;
 
     DEBUG_MSG("In pending call callback %p\n", call);
     selfref = (SV*)dbus_pending_call_get_data(call, pending_call_data_slot);
-    self = (HV*)SvRV(selfref);
 
     dbus_pending_call_ref(call);
 
@@ -754,6 +750,8 @@ dbus_bus_register(con)
 	  _croak_error(&error);
 	}
 	RETVAL = reply;
+  OUTPUT:
+        RETVAL
 
 void
 dbus_bus_add_match(con, rule)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list