Mercurial > vim
changeset 7860:150576e6b984 v7.4.1227
commit https://github.com/vim/vim/commit/448a22549b4528fd81d520497f30672567199c96
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 31 18:08:34 2016 +0100
patch 7.4.1227
Problem: Compiler warnings.
Solution: Add UNUSED. Add type cast. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 31 Jan 2016 18:15:04 +0100 |
parents | 1921e0b6f522 |
children | 868cb0895bdd |
files | src/getchar.c src/os_macosx.m src/version.c |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 }
--- 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