From: Peter Krempa Date: Mon, 25 Mar 2013 11:03:30 +0000 (+0100) Subject: virsh: Let the compiler check usage of all fields in vshCmdOptType enum X-Git-Tag: v1.0.4-rc2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af9c564c04a3560d91eef9181c55b7363982f61;p=thirdparty%2Flibvirt.git virsh: Let the compiler check usage of all fields in vshCmdOptType enum Get rid of the "default" labels to do so. --- diff --git a/tools/virsh.c b/tools/virsh.c index b574d7e98e..7ff12ec24f 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -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));