0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0379: gcc warns for ambiguous else

Problem:    Gcc warns for ambiguous else.
Solution:   Add braces. (Dominique Pelle, closes #5778)
This commit is contained in:
Bram Moolenaar 2020-03-14 07:46:40 +01:00
parent 346f18e5fe
commit 965fd8d4dc
2 changed files with 4 additions and 1 deletions

View File

@ -664,6 +664,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv)
sizeof(textprop_T)); sizeof(textprop_T));
if (lnum == lnum_start) if (lnum == lnum_start)
{
if (dir < 0) if (dir < 0)
{ {
if (col < prop.tp_col) if (col < prop.tp_col)
@ -671,7 +672,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv)
} }
else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col) else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col)
continue; continue;
}
if (prop.tp_id == id || prop.tp_type == type_id) if (prop.tp_id == id || prop.tp_type == type_id)
{ {
// Check if the starting position has text props. // Check if the starting position has text props.

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
379,
/**/ /**/
378, 378,
/**/ /**/