Tk Source Code

View Ticket
Login
Ticket UUID: 767009
Title: Unused variable warning in tkTextDisp.c
Type: Bug Version: obsolete: 8.5a0
Submitter: dkf Created on: 2003-07-07 08:46:53
Subsystem: 18. [text] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-07-08 03:42:39
Resolution: Fixed Closed By: hobbs
    Closed on: 2003-07-07 20:42:39
Description:
gcc reports that there is an unused variable in the 
function DisplayText in tkTextDisp.c

..../generic/tkTextDisp.c: In function `DisplayText':
..../generic/tkTextDisp.c:2247: warning: unused variable 
`flags'

This sort of thing often indicates some kind of problem, 
but is sometimes just an indication that there's a 
variable that is now simply surplus to requirements due 
to code changes (or even an accidental check-in!)
User Comments: hobbs added on 2003-07-08 03:42:39:
Logged In: YES 
user_id=72656

fixed for 8.5, not backported as this code was changed for 
8.5 on 2003-05-27.

hobbs added on 2003-07-08 02:54:11:
Logged In: YES 
user_id=72656

This does indicate an error.  The flags is not used properly.  
The best solution is to move the Release into the if and after 
the if and remove the use of the cached tkwin and flags 
altogether.