# HG changeset patch # User Christian Brabandt # Date 1454260504 -3600 # Node ID 150576e6b984641fa5a9866e0727034a43c1ccdc # Parent 1921e0b6f522a486246128ccfcecfe6450f90690 commit https://github.com/vim/vim/commit/448a22549b4528fd81d520497f30672567199c96 Author: Bram Moolenaar Date: Sun Jan 31 18:08:34 2016 +0100 patch 7.4.1227 Problem: Compiler warnings. Solution: Add UNUSED. Add type cast. (Yegappan Lakshmanan) diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -5322,7 +5322,7 @@ init_mappings(void) #if defined(MSDOS) || defined(MSWIN) ||defined(MACOS) 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); #endif } diff --git a/src/os_macosx.m b/src/os_macosx.m --- a/src/os_macosx.m +++ b/src/os_macosx.m @@ -37,13 +37,13 @@ NSString *VimPboardType = @"VimPboardType"; void -clip_mch_lose_selection(VimClipboard *cbd) +clip_mch_lose_selection(VimClipboard *cbd UNUSED) { } 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' * contains the "a" flag (automatically copy selection). Return TRUE, else diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1227, +/**/ 1226, /**/ 1225,