From af0167fa3917bcaf4e066a08977068b1964ac78d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 16 May 2009 15:31:32 +0000 Subject: updated for version 7.2-177 --- src/menu.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/menu.c') diff --git a/src/menu.c b/src/menu.c index 7d4839fda..04d50d129 100644 --- a/src/menu.c +++ b/src/menu.c @@ -231,7 +231,7 @@ ex_menu(eap) if (skipdigits(menu_path + 7) == p) { menuarg.iconidx = atoi((char *)menu_path + 7); - if (menuarg.iconidx >= TOOLBAR_NAME_COUNT) + if (menuarg.iconidx >= (int)TOOLBAR_NAME_COUNT) menuarg.iconidx = -1; else menuarg.icon_builtin = TRUE; @@ -239,7 +239,7 @@ ex_menu(eap) } else { - for (i = 0; i < TOOLBAR_NAME_COUNT; ++i) + for (i = 0; i < (int)TOOLBAR_NAME_COUNT; ++i) if (STRNCMP(toolbar_names[i], menu_path, p - menu_path) == 0) { @@ -1341,10 +1341,9 @@ set_context_in_menu_cmd(xp, cmd, arg, forceit) * Function given to ExpandGeneric() to obtain the list of (sub)menus (not * entries). */ -/*ARGSUSED*/ char_u * get_menu_name(xp, idx) - expand_T *xp; + expand_T *xp UNUSED; int idx; { static vimmenu_T *menu = NULL; @@ -1378,10 +1377,9 @@ get_menu_name(xp, idx) * Function given to ExpandGeneric() to obtain the list of menus and menu * entries. */ -/*ARGSUSED*/ char_u * get_menu_names(xp, idx) - expand_T *xp; + expand_T *xp UNUSED; int idx; { static vimmenu_T *menu = NULL; @@ -1739,10 +1737,9 @@ menu_is_hidden(name) /* * Return TRUE if the menu is the tearoff menu. */ -/*ARGSUSED*/ static int menu_is_tearoff(name) - char_u *name; + char_u *name UNUSED; { #ifdef FEAT_GUI return (STRCMP(name, TEAR_STRING) == 0); -- cgit v1.2.1