Blob Blame Raw
From 4174f8e8cc4d4cc044330ddfb8eef94339f0d158 Mon Sep 17 00:00:00 2001
Message-Id: <4174f8e8cc4d4cc044330ddfb8eef94339f0d158@dist-git>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Tue, 2 Sep 2014 11:44:25 +0200
Subject: [PATCH] libvirt-override: fix some build warnings

Remove unused label 'cleanup' in 'libvirt_virConnectGetAllDomainStats'
function and remove unused variable 'conn' in function
'libvirt_virDomainListGetStats'.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit bc6da3214c1e49789dcb0062f8b175895bb6f20d)

https://bugzilla.redhat.com/show_bug.cgi?id=1116978

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 libvirt-override.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index dfbe9d3..17ea042 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -8039,7 +8039,6 @@ libvirt_virConnectGetAllDomainStats(PyObject *self ATTRIBUTE_UNUSED,
     if (!(py_retval = convertDomainStatsRecord(records, nrecords)))
         py_retval = VIR_PY_NONE;
 
- cleanup:
     virDomainStatsRecordListFree(records);
 
     return py_retval;
@@ -8053,7 +8052,6 @@ libvirt_virDomainListGetStats(PyObject *self ATTRIBUTE_UNUSED,
     PyObject *pyobj_conn;
     PyObject *py_retval;
     PyObject *py_domlist;
-    virConnectPtr conn;
     virDomainStatsRecordPtr *records = NULL;
     virDomainPtr *doms = NULL;
     int nrecords;
@@ -8065,7 +8063,6 @@ libvirt_virDomainListGetStats(PyObject *self ATTRIBUTE_UNUSED,
     if (!PyArg_ParseTuple(args, (char *)"OOii:virDomainListGetStats",
                           &pyobj_conn, &py_domlist, &stats, &flags))
         return NULL;
-    conn = (virConnectPtr) PyvirConnect_Get(pyobj_conn);
 
     if (PyList_Check(py_domlist)) {
         ndoms = PyList_Size(py_domlist);
-- 
2.1.0