mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 01:34:21 +00:00
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 *".
This commit is contained in:
parent
1c0d77ccc5
commit
94c97d853f
2 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
else
|
||||
out_string = wv->name;
|
||||
out_string = (char *)wv->name;
|
||||
|
||||
/* Quote any special characters within the menu item's text and
|
||||
key binding. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue