summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-06-25 08:05:48 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-06-25 08:05:48 +0400
commitb00876c993de49c79af45f8b92b18baa545940f7 (patch)
treea15de990a123b945dbfbdc1b51d3a6723805915f /src/xmenu.c
parent885d1d74a769b8d97ecb0b67fecdc810aaad9b93 (diff)
downloademacs-b00876c993de49c79af45f8b92b18baa545940f7.tar.gz
* xmenu.c (xmenu_show, xdialog_show): Explicit cast from
`const char *' to `char *' to avoid compiler warning.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 98b71b15f05..ad2ebc09128 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1729,7 +1729,7 @@ xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps,
save_wv->next = wv;
else
first_wv->contents = wv;
- wv->name = pane_string;
+ wv->name = (char *) pane_string;
if (keymaps && !NILP (prefix))
wv->name++;
wv->value = 0;
@@ -2060,7 +2060,7 @@ xdialog_show (FRAME_PTR f,
pane_string = (NILP (pane_name)
? "" : SSDATA (pane_name));
prev_wv = xmalloc_widget_value ();
- prev_wv->value = pane_string;
+ prev_wv->value = (char *) pane_string;
if (keymaps && !NILP (prefix))
prev_wv->name++;
prev_wv->enabled = 1;