Patch to fix compiler warning in tclEnv.c
Closed / Fixed219093ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:37
OriginalBugID: 5624 Bug Version: 8.4a1 SubmitDate: '2000-05-22' LastModified: '2000-05-22' Severity: LOW Status: Released Submitter: techsupp ChangedBy: hobbs OS: Linux FixedDate: '2000-05-22' FixedInVersion: 8.4a1 ClosedDate: '2000-10-25' Name: mo CVS: Fri May 19 ReproducibleScript: ... tclEnv.c -o tclEnv.o /home/mo/project/tcl/win/../generic/tclEnv.c: In function `TclUnsetEnv': /home/mo/project/tcl/win/../generic/tclEnv.c:391: warning: passing arg 1 of `Tcl_Alloc' as unsigned due to prototype DesiredBehavior: I would like it to compile cleanly. Patch: Index: ChangeLog =================================================================== RCS file: /cvsroot/tcl/ChangeLog,v retrieving revision 1.241 diff -u -r1.241 ChangeLog --- ChangeLog2000/05/18 22:29:551.241 +++ ChangeLog2000/05/19 22:37:12 @@ -1,3 +1,9 @@ +2000-05-19 Mo DeJong <[email protected]> + +* generic/tclEnv.c (TclUnsetEnv): Changed +type of argument to ckalloc from int to +unsigned int so that it matches the prototype. + 2000-05-18 Eric Melski <[email protected]> * tests/clock.test: Added test for "2 days 2 hours ago" style Index: generic/tclEnv.c =================================================================== RCS file: /cvsroot/tcl/generic/tclEnv.c,v retrieving revision 1.7 diff -u -r1.7 tclEnv.c --- tclEnv.c2000/04/19 08:32:441.7 +++ tclEnv.c2000/05/19 22:37:12 @@ -356,7 +356,8 @@ CONST char *name;/* Name of variable to remove (UTF-8). */ { char *oldValue; - int length, index; + unsigned int length; + int index; #ifdef USE_PUTENV Tcl_DString envString; char *string; PatchFiles: ChangeLog generic/tclEnv.c Patched as noted for 8.4a1. -- 05/22/2000 hobbs
welch Closed ticket [219093ffff].
[History diff]2000-10-26 08:34:55
dgp Ticket [219093ffff]: 3 changes
[History diff]2001-04-05 06:52:46
Log in (anonymous is fine) to add a comment.