Tk Source Code

View Ticket
Login
Ticket UUID: 220658
Title: tkWinWm.c compile error
Type: Bug Version: obsolete: 8.1a2
Submitter: welch Created on: 2000-10-31 23:47:40
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-03-23 08:43:13
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-23 01:43:13
Description:
OriginalBugID: 4047 Bug
Version: 8.3b2
SubmitDate: '2000-01-19'
LastModified: '2000-01-20'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
OSVersion: NT 4.0 Service Pack 4
Machine: PC
FixedDate: '2000-01-20'
FixedInVersion: 8.3


Name:
K. Trenorden

Extensions:
N/A

ReproducibleScript:
With Visual C++ V 6.0 and Tk compiled with sysmbols on (ie. NODEBUG = 0) the compiler reports the following error in tkWinWm.c:

        "c:\PROGRA~1\MICROS~4\vc98\bin\cl.exe" -DDLL_BUILD -DBUILD_tk -Z7 -Od -WX -c -W3 -
nologo -Fp.\Debug\ -YX -MDd -I"c:\PROGRA~1\MICROS~4\vc98\include"  -I..\win -I..\generic -
I..\bitmaps -I..\xlib  -I..\..\tcl8.3.b2\generic -D__WIN32__   -DUSE_TCL_STUBS -Fo.\Debug ..\win\tkWinWm.c
tkWinWm.c
..\win\tkWinWm.c(2218) : warning C4700: local variable 'masterPtr' used without having bee
n initialized
..\win\tkWinWm.c(2218) : error C2220: warning treated as error - no object file generated
NMAKE : fatal error U1077: '"c:\PROGRA~1\MICROS~4\vc98\bin\cl.exe"' : return code '0x2'

Looking in the code variable masterPtr is indeed not set - believe this reference should be to wm->masterPtr and
not the local variable (which probably should be deleted ?)

If symbols are turned off the compiler produces a warning and continues on.

ObservedBehavior:
tkWinWm.c doesn't compile with Smbols on and Visual C++ 6.0

DesiredBehavior:
No warning and compilation



Already fixed in CVS for 8.3.0. 
-- 01/20/2000 hobbs