From: SourceForge.net <no...@so...> - 2003-01-10 20:22:32
|
Bugs item #664780, was opened at 2003-01-08 16:37 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=664780&group_id=12997 Category: 67. Unix Window Operations Group: 8.4.1 >Status: Closed >Resolution: Fixed Priority: 3 Submitted By: Don Porter (dgp) Assigned to: Joe English (jenglish) Summary: SGI warning: OpenIM Initial Comment: cc-1552 cc: WARNING File = /home/fs3c/dgp/tk8.4.1/unix/tkUnixEvent.c, Line = 587 The variable "modifier_list" is set but never used. char *modifier_list; ^ ---------------------------------------------------------------------- >Comment By: Joe English (jenglish) Date: 2003-01-10 12:24 Message: Logged In: YES user_id=68433 The relevant section of code was originally introduced in generic/tkWindow.c r1.40, and 'modifier_list' was unused there, too. Simple fix: just remove the unused variable. -- diff -u -r1.10 tkUnixEvent.c --- unix/tkUnixEvent.c 15 Sep 2002 20:38:18 -0000 1.10 +++ unix/tkUnixEvent.c 10 Jan 2003 20:20:42 -0000 @@ -584,9 +584,8 @@ { unsigned short i; XIMStyles *stylePtr; - char *modifier_list; - if ((modifier_list = XSetLocaleModifiers("")) == NULL) { + if (XSetLocaleModifiers("") == NULL) { goto error; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=664780&group_id=12997 |