[clang-warning-fix][logical-op-parentheses]
[clang-warning-fixes][switch]
[clang-warning-fixes][dangling-dlese]