mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.2267: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Rearrange the code.
This commit is contained in:
@@ -3087,11 +3087,12 @@ buflist_list(exarg_T *eap)
|
|||||||
qsort(buflist.ga_data, (size_t)buflist.ga_len,
|
qsort(buflist.ga_data, (size_t)buflist.ga_len,
|
||||||
sizeof(buf_T *), buf_compare);
|
sizeof(buf_T *), buf_compare);
|
||||||
|
|
||||||
p = buflist_data = (buf_T **)buflist.ga_data;
|
buflist_data = (buf_T **)buflist.ga_data;
|
||||||
buf = *p;
|
buf = *buflist_data;
|
||||||
}
|
}
|
||||||
|
p = buflist_data;
|
||||||
|
|
||||||
for (; buf != NULL && !got_int; buf = buflist_data
|
for (; buf != NULL && !got_int; buf = buflist_data != NULL
|
||||||
? (++p < buflist_data + buflist.ga_len ? *p : NULL)
|
? (++p < buflist_data + buflist.ga_len ? *p : NULL)
|
||||||
: buf->b_next)
|
: buf->b_next)
|
||||||
#else
|
#else
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
2267,
|
||||||
/**/
|
/**/
|
||||||
2266,
|
2266,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user