diff options
| author | Eli Zaretskii | 2010-08-13 11:10:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-08-13 11:10:05 +0300 |
| commit | 94c97d853fee699c2cc044b2d146efaafef5a480 (patch) | |
| tree | 3fc32c6f0028ca3b9b4da7c76829d3921c904811 /src/w32menu.c | |
| parent | 1c0d77ccc511e921168085e0a809eec6b1a2dacd (diff) | |
| download | emacs-94c97d853fee699c2cc044b2d146efaafef5a480.tar.gz emacs-94c97d853fee699c2cc044b2d146efaafef5a480.zip | |
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 *".
Diffstat (limited to 'src/w32menu.c')
| -rw-r--r-- | src/w32menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |