To: vim_dev@googlegroups.com Subject: Patch 7.4a.009 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4a.009 Problem: Compiler warnings for function prototypes. Solution: Add "void". Move list_features() prototype. (Ken Takata) Files: src/gui_w48.c, src/if_py_both.h, src/version.c *** ../vim-7.4a.008/src/gui_w48.c 2013-06-17 22:22:49.000000000 +0200 --- src/gui_w48.c 2013-07-09 17:38:08.000000000 +0200 *************** *** 3102,3108 **** * 'guifont' */ static void ! update_im_font() { LOGFONT lf_wide; --- 3102,3108 ---- * 'guifont' */ static void ! update_im_font(void) { LOGFONT lf_wide; *** ../vim-7.4a.008/src/if_py_both.h 2013-07-06 12:57:36.000000000 +0200 --- src/if_py_both.h 2013-07-09 17:38:08.000000000 +0200 *************** *** 2100,2106 **** } static list_T * ! py_list_alloc() { list_T *ret; --- 2100,2106 ---- } static list_T * ! py_list_alloc(void) { list_T *ret; *************** *** 5857,5863 **** return -1; static int ! init_types() { PYTYPE_READY(IterType); PYTYPE_READY(BufferType); --- 5857,5863 ---- return -1; static int ! init_types(void) { PYTYPE_READY(IterType); PYTYPE_READY(BufferType); *** ../vim-7.4a.008/src/version.c 2013-07-09 17:30:48.000000000 +0200 --- src/version.c 2013-07-09 17:39:20.000000000 +0200 *************** *** 35,42 **** char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) + sizeof(__TIME__) + 3]; - static void list_features __ARGS((void)); - void make_version() { --- 35,40 ---- *************** *** 57,62 **** --- 55,61 ---- char *longVersion = VIM_VERSION_LONG; #endif + static void list_features __ARGS((void)); static void version_msg __ARGS((char *s)); static char *(features[]) = *** ../vim-7.4a.008/src/version.c 2013-07-09 17:30:48.000000000 +0200 --- src/version.c 2013-07-09 17:39:20.000000000 +0200 *************** *** 730,731 **** --- 729,732 ---- { /* Add new patch number below this line */ + /**/ + 9, /**/ -- The MS-Windows registry is no more hostile than any other bunch of state information... that is held in a binary format... a format that nobody understands... and is replicated and cached in a complex and largely undocumented way... and contains large amounts of duplicate and obfuscated information... (Ben Peterson) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///