aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-08 18:12:45 -0700
committerPaul Eggert2011-06-08 18:12:45 -0700
commit41cb286c61f5b5b317bf4038ff0cd43dafd9a21b (patch)
tree8ebd1d934422cedc7957ce76725e91338d79afbd /src
parent4a1b9832c0338d7f2ecbf66f47dd2a834bd1b14b (diff)
downloademacs-41cb286c61f5b5b317bf4038ff0cd43dafd9a21b.tar.gz
emacs-41cb286c61f5b5b317bf4038ff0cd43dafd9a21b.zip
* xmenu.c (dialog_selection_callback) [!USE_GTK]: Cast to intptr_t,
not to EMACS_INT, to avoid GCC warning.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xmenu.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 638e0c6a0b1..f4de3d991d9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12011-06-09 Paul Eggert <eggert@cs.ucla.edu> 12011-06-09 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xmenu.c (dialog_selection_callback) [!USE_GTK]: Cast to intptr_t,
4 not to EMACS_INT, to avoid GCC warning.
5
3 * xfns.c (x_set_scroll_bar_default_width): Remove unused 'int' locals. 6 * xfns.c (x_set_scroll_bar_default_width): Remove unused 'int' locals.
4 7
5 * buffer.h (PTR_BYTE_POS): Don't assume a byte count fits in 'unsigned'. 8 * buffer.h (PTR_BYTE_POS): Don't assume a byte count fits in 'unsigned'.
diff --git a/src/xmenu.c b/src/xmenu.c
index 7d7515a8f25..0aad8f454af 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1919,9 +1919,9 @@ create_and_show_dialog (FRAME_PTR f, widget_value *first_wv)
1919static void 1919static void
1920dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data) 1920dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data)
1921{ 1921{
1922 /* The EMACS_INT cast avoids a warning. There's no problem 1922 /* Treat the pointer as an integer. There's no problem
1923 as long as pointers have enough bits to hold small integers. */ 1923 as long as pointers have enough bits to hold small integers. */
1924 if ((int) (EMACS_INT) client_data != -1) 1924 if ((intptr_t) client_data != -1)
1925 menu_item_selection = (Lisp_Object *) client_data; 1925 menu_item_selection = (Lisp_Object *) client_data;
1926 1926
1927 BLOCK_INPUT; 1927 BLOCK_INPUT;