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

patch 7.4.1227

Problem:    Compiler warnings.
Solution:   Add UNUSED.  Add type cast. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar 2016-01-31 18:08:34 +01:00
parent 3803bad99d
commit 448a22549b
3 changed files with 5 additions and 3 deletions

View File

@ -5322,7 +5322,7 @@ init_mappings(void)
#if defined(MSDOS) || defined(MSWIN) ||defined(MACOS) #if defined(MSDOS) || defined(MSWIN) ||defined(MACOS)
int i; int i;
for (i = 0; i < sizeof(initmappings) / sizeof(struct initmap); ++i) for (i = 0; i < (int)(sizeof(initmappings) / sizeof(struct initmap)); ++i)
add_map(initmappings[i].arg, initmappings[i].mode); add_map(initmappings[i].arg, initmappings[i].mode);
#endif #endif
} }

View File

@ -37,13 +37,13 @@
NSString *VimPboardType = @"VimPboardType"; NSString *VimPboardType = @"VimPboardType";
void void
clip_mch_lose_selection(VimClipboard *cbd) clip_mch_lose_selection(VimClipboard *cbd UNUSED)
{ {
} }
int int
clip_mch_own_selection(VimClipboard *cbd) clip_mch_own_selection(VimClipboard *cbd UNUSED)
{ {
/* This is called whenever there is a new selection and 'guioptions' /* This is called whenever there is a new selection and 'guioptions'
* contains the "a" flag (automatically copy selection). Return TRUE, else * contains the "a" flag (automatically copy selection). Return TRUE, else

View File

@ -742,6 +742,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 */
/**/
1227,
/**/ /**/
1226, 1226,
/**/ /**/