w32menu.c (add_menu_item): Use explicit cast to "char *".
(name_is_separator): Make `name' and `start' be "const char *".
+2010-08-13 Eli Zaretskii <eliz@gnu.org>
+
+ * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
+ warnings due to mixing of "char *" and "const char *".
+
2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
Introduce a new comment style "c" flag.
/* Is this item a separator? */
static int
-name_is_separator (char *name)
+name_is_separator (const char *name)
{
- char *start = name;
+ const char *start = name;
/* Check if name string consists of only dashes ('-'). */
while (*name == '-') name++;
strcat (out_string, wv->key);
}
else
- out_string = wv->name;
+ out_string = (char *)wv->name;
/* Quote any special characters within the menu item's text and
key binding. */