Skip to content
Tcl Source Code View Ticket
Login

View Ticket

const compiler warning in tclTrace.c

Closed / Fixed2881259fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-10-18 12:09:58
1>..\generic\tclTrace.c(2261) : warning C4090: 'function' : different 'const' qualifiers

The fix seems to be to change the line:

TclStackFree(interp, argv);

to:

TclStackFree(interp, (char **)argv);
dgpplain2009-10-20 04:17:01
One of dkf's "Style improvements" on 2008/10/16.

put the (void *) cast back and things should be happy again.
dgp Ticket [2881259fff]: 2 changes [History diff]2009-10-20 04:17:10
dgpplain2009-10-20 04:26:20
too much misreading.  dkf's change came in
with his mods to the 2629338 patch.
dkfplain2009-10-21 20:32:30
Stupid bug in MSVC; (const char **) should be silently cast-able to (void *) since it's not violating the constness requirements; it's not a (char *const *) after all (which I *would* expect to be a problem).
dkfplain2009-10-21 20:36:42
allow_comments - 1
Log in (anonymous is fine) to add a comment.