Skip to content

Commit 448a225

Browse files
committed
patch 7.4.1227
Problem: Compiler warnings. Solution: Add UNUSED. Add type cast. (Yegappan Lakshmanan)
1 parent 3803bad commit 448a225

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/getchar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5322,7 +5322,7 @@ init_mappings(void)
53225322
#if defined(MSDOS) || defined(MSWIN) ||defined(MACOS)
53235323
int i;
53245324

5325-
for (i = 0; i < sizeof(initmappings) / sizeof(struct initmap); ++i)
5325+
for (i = 0; i < (int)(sizeof(initmappings) / sizeof(struct initmap)); ++i)
53265326
add_map(initmappings[i].arg, initmappings[i].mode);
53275327
#endif
53285328
}

src/os_macosx.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
NSString *VimPboardType = @"VimPboardType";
3838

3939
void
40-
clip_mch_lose_selection(VimClipboard *cbd)
40+
clip_mch_lose_selection(VimClipboard *cbd UNUSED)
4141
{
4242
}
4343

4444

4545
int
46-
clip_mch_own_selection(VimClipboard *cbd)
46+
clip_mch_own_selection(VimClipboard *cbd UNUSED)
4747
{
4848
/* This is called whenever there is a new selection and 'guioptions'
4949
* contains the "a" flag (automatically copy selection). Return TRUE, else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
1227,
745747
/**/
746748
1226,
747749
/**/

0 commit comments

Comments
 (0)