mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Avoid warnings from the clang compiler. (Dominique Pelle)
This commit is contained in:
parent
0e97531298
commit
2f1e050414
@ -5082,7 +5082,7 @@ write_viminfo_bufferlist(fp)
|
|||||||
set_last_cursor(curwin);
|
set_last_cursor(curwin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(fp, _("\n# Buffer list:\n"));
|
fputs(_("\n# Buffer list:\n"), fp);
|
||||||
for (buf = firstbuf; buf != NULL ; buf = buf->b_next)
|
for (buf = firstbuf; buf != NULL ; buf = buf->b_next)
|
||||||
{
|
{
|
||||||
if (buf->b_fname == NULL
|
if (buf->b_fname == NULL
|
||||||
|
@ -2080,9 +2080,9 @@ do_viminfo(fp_in, fp_out, flags)
|
|||||||
/* Write the info: */
|
/* Write the info: */
|
||||||
fprintf(fp_out, _("# This viminfo file was generated by Vim %s.\n"),
|
fprintf(fp_out, _("# This viminfo file was generated by Vim %s.\n"),
|
||||||
VIM_VERSION_MEDIUM);
|
VIM_VERSION_MEDIUM);
|
||||||
fprintf(fp_out, _("# You may edit it if you're careful!\n\n"));
|
fputs(_("# You may edit it if you're careful!\n\n"), fp_out);
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
fprintf(fp_out, _("# Value of 'encoding' when this file was written\n"));
|
fputs(_("# Value of 'encoding' when this file was written\n"), fp_out);
|
||||||
fprintf(fp_out, "*encoding=%s\n\n", p_enc);
|
fprintf(fp_out, "*encoding=%s\n\n", p_enc);
|
||||||
#endif
|
#endif
|
||||||
write_viminfo_search_pattern(fp_out);
|
write_viminfo_search_pattern(fp_out);
|
||||||
@ -5422,7 +5422,7 @@ write_viminfo_sub_string(fp)
|
|||||||
{
|
{
|
||||||
if (get_viminfo_parameter('/') != 0 && old_sub != NULL)
|
if (get_viminfo_parameter('/') != 0 && old_sub != NULL)
|
||||||
{
|
{
|
||||||
fprintf(fp, _("\n# Last Substitute String:\n$"));
|
fputs(_("\n# Last Substitute String:\n$"), fp);
|
||||||
viminfo_writestring(fp, old_sub);
|
viminfo_writestring(fp, old_sub);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1434,7 +1434,7 @@ write_viminfo_filemarks(fp)
|
|||||||
if (get_viminfo_parameter('f') == 0)
|
if (get_viminfo_parameter('f') == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(fp, _("\n# File marks:\n"));
|
fputs(_("\n# File marks:\n"), fp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find a mark that is the same file and position as the cursor.
|
* Find a mark that is the same file and position as the cursor.
|
||||||
@ -1469,7 +1469,7 @@ write_viminfo_filemarks(fp)
|
|||||||
|
|
||||||
#ifdef FEAT_JUMPLIST
|
#ifdef FEAT_JUMPLIST
|
||||||
/* Write the jumplist with -' */
|
/* Write the jumplist with -' */
|
||||||
fprintf(fp, _("\n# Jumplist (newest first):\n"));
|
fputs(_("\n# Jumplist (newest first):\n"), fp);
|
||||||
setpcmark(); /* add current cursor position */
|
setpcmark(); /* add current cursor position */
|
||||||
cleanup_jumplist();
|
cleanup_jumplist();
|
||||||
for (fm = &curwin->w_jumplist[curwin->w_jumplistlen - 1];
|
for (fm = &curwin->w_jumplist[curwin->w_jumplistlen - 1];
|
||||||
@ -1570,7 +1570,7 @@ write_viminfo_marks(fp_out)
|
|||||||
set_last_cursor(curwin);
|
set_last_cursor(curwin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(fp_out, _("\n# History of marks within files (newest to oldest):\n"));
|
fputs(_("\n# History of marks within files (newest to oldest):\n"), fp_out);
|
||||||
count = 0;
|
count = 0;
|
||||||
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
||||||
{
|
{
|
||||||
|
@ -784,7 +784,7 @@ vim_mem_profile_dump()
|
|||||||
{
|
{
|
||||||
printf("\r\n");
|
printf("\r\n");
|
||||||
if (mem_frees[i] > mem_allocs[i])
|
if (mem_frees[i] > mem_allocs[i])
|
||||||
printf(_("ERROR: "));
|
puts(_("ERROR: "));
|
||||||
printf("[>%d / %4lu-%-4lu]", i, mem_allocs[i], mem_frees[i]);
|
printf("[>%d / %4lu-%-4lu]", i, mem_allocs[i], mem_frees[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -827,7 +827,7 @@ alloc_clear(size)
|
|||||||
{
|
{
|
||||||
char_u *p;
|
char_u *p;
|
||||||
|
|
||||||
p = (lalloc((long_u)size, TRUE));
|
p = lalloc((long_u)size, TRUE);
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
(void)vim_memset(p, 0, (size_t)size);
|
(void)vim_memset(p, 0, (size_t)size);
|
||||||
return p;
|
return p;
|
||||||
@ -3802,7 +3802,7 @@ set_crypt_method(buf, method)
|
|||||||
/*
|
/*
|
||||||
* Prepare for initializing encryption. If already doing encryption then save
|
* Prepare for initializing encryption. If already doing encryption then save
|
||||||
* the state.
|
* the state.
|
||||||
* Must always be called symmetrycally with crypt_pop_state().
|
* Must always be called symmetrically with crypt_pop_state().
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
crypt_push_state()
|
crypt_push_state()
|
||||||
@ -3828,7 +3828,7 @@ crypt_push_state()
|
|||||||
/*
|
/*
|
||||||
* End encryption. If doing encryption before crypt_push_state() then restore
|
* End encryption. If doing encryption before crypt_push_state() then restore
|
||||||
* the saved state.
|
* the saved state.
|
||||||
* Must always be called symmetrycally with crypt_push_state().
|
* Must always be called symmetrically with crypt_push_state().
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
crypt_pop_state()
|
crypt_pop_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user