diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32menu.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 14213e1c750..9c004656124 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-08-13 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32menu.c (add_menu_item, name_is_separator): Shut up compiler | ||
| 4 | warnings due to mixing of "char *" and "const char *". | ||
| 5 | |||
| 1 | 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | Introduce a new comment style "c" flag. | 8 | Introduce a new comment style "c" flag. |
diff --git a/src/w32menu.c b/src/w32menu.c index bd560219a1d..0aaca5e234e 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -1280,9 +1280,9 @@ simple_dialog_show (FRAME_PTR f, Lisp_Object contents, Lisp_Object header) | |||
| 1280 | 1280 | ||
| 1281 | /* Is this item a separator? */ | 1281 | /* Is this item a separator? */ |
| 1282 | static int | 1282 | static int |
| 1283 | name_is_separator (char *name) | 1283 | name_is_separator (const char *name) |
| 1284 | { | 1284 | { |
| 1285 | char *start = name; | 1285 | const char *start = name; |
| 1286 | 1286 | ||
| 1287 | /* Check if name string consists of only dashes ('-'). */ | 1287 | /* Check if name string consists of only dashes ('-'). */ |
| 1288 | while (*name == '-') name++; | 1288 | while (*name == '-') name++; |
| @@ -1360,7 +1360,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item) | |||
| 1360 | strcat (out_string, wv->key); | 1360 | strcat (out_string, wv->key); |
| 1361 | } | 1361 | } |
| 1362 | else | 1362 | else |
| 1363 | out_string = wv->name; | 1363 | out_string = (char *)wv->name; |
| 1364 | 1364 | ||
| 1365 | /* Quote any special characters within the menu item's text and | 1365 | /* Quote any special characters within the menu item's text and |
| 1366 | key binding. */ | 1366 | key binding. */ |