diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:36:02 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:44 (GMT) |
commit | a0610cf9e9768eb4c89bf0d0a2f765865512f081 (patch) | |
tree | 4e265bc0bcb0618c1793e9fefdc313a7c7d9796a | |
parent | c826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce (diff) | |
download | CMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.zip CMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.tar.gz CMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.tar.bz2 |
clang-tidy: fix `bugprone-signed-char-misuse` warnings
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | Source/cmFileCommand.cxx | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy index 7ccd99d..571dbac 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,7 +4,6 @@ bugprone-*,\ -bugprone-macro-parentheses,\ -bugprone-misplaced-widening-cast,\ -bugprone-narrowing-conversions,\ --bugprone-signed-char-misuse,\ -bugprone-suspicious-include,\ -bugprone-too-small-loop-variable,\ google-readability-casting,\ diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index b06eedb..576f015 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -558,8 +558,7 @@ bool HandleStringsCommand(std::vector<std::string> const& args, // back subsequent characters if ((current_str.length() != num_utf8_bytes)) { for (unsigned int j = 0; j < current_str.size() - 1; j++) { - c = current_str[current_str.size() - 1 - j]; - fin.putback(static_cast<char>(c)); + fin.putback(current_str[current_str.size() - 1 - j]); } current_str.clear(); } |