Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:52 • Ticket [219093ffff] Patch to fix compiler warning in tclEnv.c status still C... artifact: 7b87b51ca0 user: dgp
2000-10-26
08:34 • Closed ticket [219093ffff]. artifact: 5ca8b7206d user: welch
01:10 • New ticket [219093ffff]. artifact: 30bc599f54 user: nobody

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.