Work around overly optimistic clang-analyzer-deadcode.DeadStores
...which assumes that the switch is exhaustive over all possible SvxSearchCellType values, which in fact it is not (see the mail thread starting at <http://lists.llvm.org/pipermail/cfe-dev/2015-September/045021.html> "[cfe-dev] Unsound assumptions about exhaustiveness of enum switch cases?"). Make it clear via "default: std::abort();" that the switch /is/ known to be exhaustive over the possible values of pSearchItem->GetCellType(). Change-Id: Id06abc19c0092a334c363ee739a0eda1dc8cf760
Showing
Please
register
or
sign in
to comment