mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.0364: clang static analyzer gives warnings
Problem: Clang static analyzer gives warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #11043)
This commit is contained in:
committed by
Bram Moolenaar
parent
b18b496997
commit
c99e182e1f
@@ -1089,7 +1089,6 @@ ex_let(exarg_T *eap)
|
||||
{
|
||||
// +=, /=, etc. require an existing variable
|
||||
semsg(_(e_cannot_use_operator_on_new_variable), eap->arg);
|
||||
i = FAIL;
|
||||
}
|
||||
else if (vim_strchr((char_u *)"+-*/%.", *expr) != NULL)
|
||||
{
|
||||
@@ -1112,7 +1111,6 @@ ex_let(exarg_T *eap)
|
||||
vim_strncpy(op, expr - len, len);
|
||||
semsg(_(e_white_space_required_before_and_after_str_at_str),
|
||||
op, argend);
|
||||
i = FAIL;
|
||||
}
|
||||
|
||||
if (eap->skip)
|
||||
|
Reference in New Issue
Block a user