patch 9.1.1641: a few compiler warnings are output
Problem: a few compiler warnings are output Solution: Fix compiler warnings (Yegappan Lakshmanan) closes: #18025 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
c08b94b072
commit
486cffab3e
@ -2405,7 +2405,7 @@ poll_data:
|
|||||||
{
|
{
|
||||||
if (ga_grow(&buf, 8192) == FAIL)
|
if (ga_grow(&buf, 8192) == FAIL)
|
||||||
break;
|
break;
|
||||||
start = buf.ga_data + buf.ga_len;
|
start = (char_u *)buf.ga_data + buf.ga_len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2174,7 +2174,7 @@ init_homedir(void)
|
|||||||
if (homedrive != NULL
|
if (homedrive != NULL
|
||||||
&& strlen(homedrive) + strlen(homepath) < sizeof(buf))
|
&& strlen(homedrive) + strlen(homepath) < sizeof(buf))
|
||||||
{
|
{
|
||||||
sprintf(buf, "%s%s", homedrive, homepath);
|
snprintf(buf, sizeof(buf), "%s%s", homedrive, homepath);
|
||||||
if (buf[0] != NUL)
|
if (buf[0] != NUL)
|
||||||
var = buf;
|
var = buf;
|
||||||
}
|
}
|
||||||
@ -2202,7 +2202,7 @@ init_homedir(void)
|
|||||||
if (exp != NULL && *exp != NUL
|
if (exp != NULL && *exp != NUL
|
||||||
&& strlen(exp) + strlen(p) < sizeof(buf))
|
&& strlen(exp) + strlen(p) < sizeof(buf))
|
||||||
{
|
{
|
||||||
sprintf(buf, "%s%s", exp, p + 1);
|
snprintf(buf, sizeof(buf), "%s%s", exp, p + 1);
|
||||||
var = buf;
|
var = buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7078,7 +7078,8 @@ ins_complete(int c, int enable_pum)
|
|||||||
int insert_match;
|
int insert_match;
|
||||||
int no_matches_found;
|
int no_matches_found;
|
||||||
#ifdef ELAPSED_FUNC
|
#ifdef ELAPSED_FUNC
|
||||||
elapsed_T compl_start_tv; // Timestamp when match collection starts
|
// Timestamp when match collection starts
|
||||||
|
elapsed_T compl_start_tv = {0};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
compl_direction = ins_compl_key2dir(c);
|
compl_direction = ins_compl_key2dir(c);
|
||||||
|
|||||||
@ -719,6 +719,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 */
|
||||||
|
/**/
|
||||||
|
1641,
|
||||||
/**/
|
/**/
|
||||||
1640,
|
1640,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user