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:
parent
346f18e5fe
commit
965fd8d4dc
@ -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.
|
||||||
|
@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user