Commit 94c97d85 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Shut up compiler warnings due to "char *" and "const char *".

 w32menu.c (add_menu_item): Use explicit cast to "char *".
 (name_is_separator): Make `name' and `start' be "const char *".
parent 1c0d77cc
2010-08-13 Eli Zaretskii <>
* 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 <>
Introduce a new comment style "c" flag.
......@@ -1280,9 +1280,9 @@ simple_dialog_show (FRAME_PTR f, Lisp_Object contents, Lisp_Object header)
/* 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++;
......@@ -1360,7 +1360,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
strcat (out_string, wv->key);
out_string = wv->name;
out_string = (char *)wv->name;
/* Quote any special characters within the menu item's text and
key binding. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment