[PATCH] build: silence some clang warnings

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

 



* tools/virsh.c (cmdHelp): Kill dead variables.
---

Pushing under the trivial rule.

 tools/virsh.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index c2d165d..50d5e33 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -589,8 +589,6 @@ static const vshCmdOptDef opts_help[] = {
 static int
 cmdHelp(vshControl *ctl, const vshCmd *cmd)
  {
-    const vshCmdDef *c;
-    const vshCmdGrp *g;
     const char *name;

     name = vshCommandOptString(cmd, "command", NULL);
@@ -615,9 +613,9 @@ cmdHelp(vshControl *ctl, const vshCmd *cmd)
         return TRUE;
     }

-    if ((c = vshCmddefSearch(name))) {
+    if (vshCmddefSearch(name)) {
         return vshCmddefHelp(ctl, name);
-    } else if ((g = vshCmdGrpSearch(name))) {
+    } else if (vshCmdGrpSearch(name)) {
         return vshCmdGrpHelp(ctl, name);
     } else {
         vshError(ctl, _("command or command group '%s' doesn't exist"), name);
-- 
1.7.4

--
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]