[libvirt] [PATCH] build: avoid warning about unused variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>From 8ddff3e6cdccc2b4289509c6941b43f2ddf8e643 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@xxxxxxxxxx>
Date: Thu, 25 Feb 2010 14:19:33 +0100
Subject: [PATCH] build: avoid warning about unused variables

* tools/virsh.c (cmdCPUBaseline): Remove declarations of unused
variables, p and cur.
---
 tools/virsh.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 5fdbbe5..89eefcf 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -7048,12 +7048,11 @@ cmdCPUBaseline(vshControl *ctl, const vshCmd *cmd)
     int found;
     int ret = TRUE;
     char *buffer;
-    char *p;
     char *result = NULL;
     const char **list = NULL;
     unsigned int count = 0;
     xmlDocPtr doc = NULL;
-    xmlNodePtr node_list, cur;
+    xmlNodePtr node_list;
     xmlXPathContextPtr ctxt = NULL;
     xmlSaveCtxtPtr sctxt = NULL;
     xmlBufferPtr buf = NULL;
--
1.7.0.401.g84adb

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]