diff options
author | Brian Behlendorf <[email protected]> | 2009-03-12 10:00:01 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-03-12 10:00:01 -0700 |
commit | eceaf813ad56381192222ecf85a35aaea5585353 (patch) | |
tree | d3dafe546014c2bd035acd2e12c78f106f885447 /cmd/zinject/translate.c | |
parent | a2dc88da2aa76ee7887d3ef5e9f352a1e1761920 (diff) | |
parent | f2d72af596b54f11a92eb3893d4431cfcb59fcf2 (diff) |
Merge branch 'gcc-missing-case' into refs/top-bases/gcc-branch
Diffstat (limited to 'cmd/zinject/translate.c')
-rw-r--r-- | cmd/zinject/translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/zinject/translate.c b/cmd/zinject/translate.c index c85e024b6..d8654594d 100644 --- a/cmd/zinject/translate.c +++ b/cmd/zinject/translate.c @@ -221,6 +221,8 @@ calculate_range(const char *dataset, err_type_t type, int level, char *range, } switch (type) { + default: + break; case TYPE_DATA: break; @@ -335,6 +337,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; @@ -461,6 +465,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; |