From 6af9c564c04a3560d91eef9181c55b7363982f61 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 25 Mar 2013 12:03:30 +0100 Subject: [PATCH] virsh: Let the compiler check usage of all fields in vshCmdOptType enum Get rid of the "default" labels to do so. --- tools/virsh.c | 5 ----- 1 file changed, 5 deletions(-) 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));