Skip to content

Commit 5b0fe62

Browse files
committed
add unreachable statement
1 parent 81a75cc commit 5b0fe62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/errorlogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ std::string getClassification(const std::string &guideline, ReportType reportTyp
971971
info = isDirective ? &checkers::misraC2025Directives : &checkers::misraC2025Rules;
972972
break;
973973
default:
974-
break;
974+
cppcheck::unreachable();
975975
}
976976

977977
const auto it = std::find_if(info->cbegin(), info->cend(), [&](const checkers::MisraInfo &i) {

0 commit comments

Comments
 (0)