mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 13:47:13 +03:00
virsh: Let the compiler check usage of all fields in vshCmdOptType enum
Get rid of the "default" labels to do so.
This commit is contained in:
parent
c65fc29a31
commit
6af9c564c0
@ -38,7 +38,6 @@
|
||||
#include <locale.h>
|
||||
#include <time.h>
|
||||
#include <limits.h>
|
||||
#include <assert.h>
|
||||
#include <sys/stat.h>
|
||||
#include <inttypes.h>
|
||||
#include <strings.h>
|
||||
@ -1172,8 +1171,6 @@ vshCmddefHelp(vshControl *ctl, const char *cmdname)
|
||||
case VSH_OT_ALIAS:
|
||||
/* aliases are intentionally undocumented */
|
||||
continue;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
fputc(' ', stdout);
|
||||
fprintf(stdout, fmt, opt->name);
|
||||
@ -1215,8 +1212,6 @@ vshCmddefHelp(vshControl *ctl, const char *cmdname)
|
||||
break;
|
||||
case VSH_OT_ALIAS:
|
||||
continue;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
||||
fprintf(stdout, " %-15s %s\n", buf, _(opt->help));
|
||||
|
Loading…
x
Reference in New Issue
Block a user