diff options
| author | Paul Eggert | 2011-03-06 22:46:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 22:46:29 -0800 |
| commit | 281585b0bd2a6063c11cfcc308a560f416c3eee7 (patch) | |
| tree | 7f0b1a4fb703da4dba4c4ec9d0ea52f523590dd2 | |
| parent | 6d1f7feedacad0112846d84232b3d4a8dd96b740 (diff) | |
| download | emacs-281585b0bd2a6063c11cfcc308a560f416c3eee7.tar.gz emacs-281585b0bd2a6063c11cfcc308a560f416c3eee7.zip | |
* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
since it's unused otherwise.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xmenu.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f1b08f62b8e..a0f797b0e6f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | (xmenu_show): Rename parameter to avoid shadowing. | 5 | (xmenu_show): Rename parameter to avoid shadowing. |
| 6 | (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const" | 6 | (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const" |
| 7 | since they might point to immutable storage. | 7 | since they might point to immutable storage. |
| 8 | (next_menubar_widget_id): Declare only if USE_X_TOOLKIT, | ||
| 9 | since it's unused otherwise. | ||
| 8 | 10 | ||
| 9 | * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff. | 11 | * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff. |
| 10 | Add a FIXME comment, since the code still doesn't look right. | 12 | Add a FIXME comment, since the code still doesn't look right. |
diff --git a/src/xmenu.c b/src/xmenu.c index a64b305238b..36684c7dafa 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -124,11 +124,11 @@ static int update_frame_menubar (struct frame *); | |||
| 124 | Xt on behalf of one of the widget sets. */ | 124 | Xt on behalf of one of the widget sets. */ |
| 125 | static int popup_activated_flag; | 125 | static int popup_activated_flag; |
| 126 | 126 | ||
| 127 | static int next_menubar_widget_id; | ||
| 128 | |||
| 129 | 127 | ||
| 130 | #ifdef USE_X_TOOLKIT | 128 | #ifdef USE_X_TOOLKIT |
| 131 | 129 | ||
| 130 | static int next_menubar_widget_id; | ||
| 131 | |||
| 132 | /* Return the frame whose ->output_data.x->id equals ID, or 0 if none. */ | 132 | /* Return the frame whose ->output_data.x->id equals ID, or 0 if none. */ |
| 133 | 133 | ||
| 134 | static struct frame * | 134 | static struct frame * |