]> git.eshelyaron.com Git - emacs.git/commitdiff
* xmenu.c (xmenu_show, xdialog_show): Explicit cast from
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 25 Jun 2012 04:05:48 +0000 (08:05 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 25 Jun 2012 04:05:48 +0000 (08:05 +0400)
`const char *' to `char *' to avoid compiler warning.

src/ChangeLog
src/xmenu.c

index 7878a4d6f681cbd7407bce2628a995bb9f2f25ae..b8051d13680b7b4645fe96ad908afdc595b955a4 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * xmenu.c (xmenu_show, xdialog_show): Explicit cast from
+       `const char *' to `char *' to avoid compiler warning.
+
 2012-06-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xterm.c (x_term_init): Build proper-sized _XSETTINGS_Snnn string
index 98b71b15f057e70978dd79c1e1733eae85239137..ad2ebc09128f53031734ee481c2a44d41f2d1322 100644 (file)
@@ -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;