Merge pull request #17341 from zeertzjq/clang-suppress

chore(clang): suppress "result of operation is garbage"
This commit is contained in:
zeertzjq 2022-02-09 09:25:18 +08:00 committed by GitHub
commit e16ec0be22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4848,6 +4848,7 @@ static int fuzzy_match_compute_score(const char_u *const str, const int strSz,
const uint32_t *const matches, const int numMatches) const uint32_t *const matches, const int numMatches)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE
{ {
assert(numMatches > 0); // suppress clang "result of operation is garbage"
// Initialize score // Initialize score
int score = 100; int score = 100;