summaryrefslogtreecommitdiffstats
path: root/cmd/zinject
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 09:52:41 -0700
committerBrian Behlendorf <[email protected]>2010-08-27 15:34:03 -0700
commite75c13c353571efaa9b4e047f16969ec13a518f5 (patch)
treed6d4092487d7ca7084de7cb78b30fd527e6ac472 /cmd/zinject
parent2598c0012dc33496539ce893a0af601c66cbb7e2 (diff)
Fix gcc missing case warnings
Gcc ASSERT() missing cases are impossible Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'cmd/zinject')
-rw-r--r--cmd/zinject/translate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/zinject/translate.c b/cmd/zinject/translate.c
index 87751e315..996075283 100644
--- a/cmd/zinject/translate.c
+++ b/cmd/zinject/translate.c
@@ -233,6 +233,8 @@ calculate_range(const char *dataset, err_type_t type, int level, char *range,
}
switch (type) {
+ default:
+ break;
case TYPE_DATA:
break;
@@ -347,6 +349,8 @@ translate_record(err_type_t type, const char *object, const char *range,
* MOS objects are treated specially.
*/
switch (type) {
+ default:
+ break;
case TYPE_MOS:
record->zi_type = 0;
break;
@@ -473,6 +477,8 @@ translate_device(const char *pool, const char *device, err_type_t label_type,
}
switch (label_type) {
+ default:
+ break;
case TYPE_LABEL_UBERBLOCK:
record->zi_start = offsetof(vdev_label_t, vl_uberblock[0]);
record->zi_end = record->zi_start + VDEV_UBERBLOCK_RING - 1;