Skip to content

Commit

Permalink
IOSS: Address static analyzer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Jan 17, 2024
1 parent 69b1454 commit d946b06
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/seacas/libraries/ioss/src/Ioss_Glob.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace Ioss::glob {
return state_pos;
}

size_t fail_state_;
size_t fail_state_{0};

private:
std::tuple<bool, size_t> ExecAux(const String<charT> &str, bool comp_end = true) const
Expand All @@ -207,7 +207,7 @@ namespace Ioss::glob {
// the string
if (comp_end) {
if ((state_pos == match_state_) && (str_pos == str.length())) {
return {state_pos == match_state_, str_pos};
return {true, str_pos};
}

return {false, str_pos};
Expand Down Expand Up @@ -776,13 +776,6 @@ namespace Ioss::glob {
c_ = str_[++pos_];
}

inline bool IsSpecialChar(charT c)
{
bool b = c == '?' || c == '*' || c == '+' || c == '(' || c == ')' || c == '[' || c == ']' ||
c == '|' || c == '!' || c == '@' || c == '\\';
return b;
}

String<charT> str_;
size_t pos_{0};
charT c_;
Expand Down

0 comments on commit d946b06

Please sign in to comment.