Skip to content

Commit

Permalink
osd/ECBackend.cc: fix MISSING_BREAK
Browse files Browse the repository at this point in the history
Fix for:
CID 1297854 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: The case for value ECBackend::RecoveryOp::COMPLETE
 is not terminated by a 'break' statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Jul 17, 2015
1 parent 60d28f6 commit df83eb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/osd/ECBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,11 @@ void ECBackend::continue_recovery_op(
}
return;
}
case RecoveryOp::COMPLETE: {
assert(0); // should never be called once complete
};
default:
// should never be called once complete
case RecoveryOp::COMPLETE:
default: {
assert(0);
};
}
}
}
Expand Down

0 comments on commit df83eb3

Please sign in to comment.