Overview
| Artifact ID: | 30bc599f54fa0d994611cfad9677dd6bbb90943e |
|---|---|
| Ticket: | 219093ffffffffffffffffffffffffffffffffff
Patch to fix compiler warning in tclEnv.c |
| User & Date: | nobody on 2000-10-26 01:10:37 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
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
- foundin changed to: "obsolete: 8.4a1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "75. Tutorial"
- title changed to: "Patch to fix compiler warning in tclEnv.c"
- type changed to: "Bug"