comparison src/gui-x.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 95fee4a1420e
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
222 222
223 Callback function for widgets and menus. 223 Callback function for widgets and menus.
224 */ 224 */
225 225
226 void 226 void
227 popup_selection_callback (Widget widget, LWLIB_ID ignored_id, 227 popup_selection_callback (Widget widget, LWLIB_ID UNUSED (id),
228 XtPointer client_data) 228 XtPointer client_data)
229 { 229 {
230 Lisp_Object data, image_instance, callback, callback_ex; 230 Lisp_Object data, image_instance, callback, callback_ex;
231 Lisp_Object frame, event; 231 Lisp_Object frame, event;
232 int update_subwindows_p = 0; 232 int update_subwindows_p = 0;
503 503
504 CHECK_SYMBOL (pgui->style); 504 CHECK_SYMBOL (pgui->style);
505 if (NILP (pgui->style)) 505 if (NILP (pgui->style))
506 { 506 {
507 Ibyte *intname; 507 Ibyte *intname;
508 Bytecount intlen; 508 Bytecount unused_intlen;
509 /* If the callback is nil, treat this item like unselectable text. 509 /* If the callback is nil, treat this item like unselectable text.
510 This way, dashes will show up as a separator. */ 510 This way, dashes will show up as a separator. */
511 if (!wv->enabled) 511 if (!wv->enabled)
512 wv->type = BUTTON_TYPE; 512 wv->type = BUTTON_TYPE;
513 TO_INTERNAL_FORMAT (C_STRING, wv->name, 513 TO_INTERNAL_FORMAT (C_STRING, wv->name,
514 ALLOCA, (intname, intlen), 514 ALLOCA, (intname, unused_intlen),
515 Qlwlib_encoding); 515 Qlwlib_encoding);
516 if (separator_string_p (intname)) 516 if (separator_string_p (intname))
517 { 517 {
518 wv->type = SEPARATOR_TYPE; 518 wv->type = SEPARATOR_TYPE;
519 wv->value = menu_separator_style_and_to_external (intname); 519 wv->value = menu_separator_style_and_to_external (intname);