]> git.eshelyaron.com Git - emacs.git/commitdiff
* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Mar 2011 06:46:29 +0000 (22:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Mar 2011 06:46:29 +0000 (22:46 -0800)
since it's unused otherwise.

src/ChangeLog
src/xmenu.c

index f1b08f62b8e584d0760b9143147233e51a73a0b7..a0f797b0e6f0316ff6f9a6878b245f293acb604e 100644 (file)
@@ -5,6 +5,8 @@
        (xmenu_show): Rename parameter to avoid shadowing.
        (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
        since they might point to immutable storage.
+       (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
+       since it's unused otherwise.
 
        * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
        Add a FIXME comment, since the code still doesn't look right.
index a64b305238b10cf8a008d8b7d19b677185f0fea7..36684c7dafa65f8657463c5314000795708be1d7 100644 (file)
@@ -124,11 +124,11 @@ static int update_frame_menubar (struct frame *);
    Xt on behalf of one of the widget sets.  */
 static int popup_activated_flag;
 
-static int next_menubar_widget_id;
-
 \f
 #ifdef USE_X_TOOLKIT
 
+static int next_menubar_widget_id;
+
 /* Return the frame whose ->output_data.x->id equals ID, or 0 if none.  */
 
 static struct frame *