mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
build: silence some clang warnings
* tools/virsh.c (cmdHelp): Kill dead variables.
This commit is contained in:
parent
56152be578
commit
1a82c5f7c6
@ -589,8 +589,6 @@ static const vshCmdOptDef opts_help[] = {
|
|||||||
static int
|
static int
|
||||||
cmdHelp(vshControl *ctl, const vshCmd *cmd)
|
cmdHelp(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
const vshCmdDef *c;
|
|
||||||
const vshCmdGrp *g;
|
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
name = vshCommandOptString(cmd, "command", NULL);
|
name = vshCommandOptString(cmd, "command", NULL);
|
||||||
@ -615,9 +613,9 @@ cmdHelp(vshControl *ctl, const vshCmd *cmd)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((c = vshCmddefSearch(name))) {
|
if (vshCmddefSearch(name)) {
|
||||||
return vshCmddefHelp(ctl, name);
|
return vshCmddefHelp(ctl, name);
|
||||||
} else if ((g = vshCmdGrpSearch(name))) {
|
} else if (vshCmdGrpSearch(name)) {
|
||||||
return vshCmdGrpHelp(ctl, name);
|
return vshCmdGrpHelp(ctl, name);
|
||||||
} else {
|
} else {
|
||||||
vshError(ctl, _("command or command group '%s' doesn't exist"), name);
|
vshError(ctl, _("command or command group '%s' doesn't exist"), name);
|
||||||
|
Loading…
Reference in New Issue
Block a user