|
2004-05-18
| ||
| 15:08 | • Closed ticket [935160ffff]: OSX warnings and errors (6) plus 7 other changes artifact: 38d3c98745 user: dkf | |
| 09:18 | • Ticket [935160ffff]: 4 changes artifact: ea0ea3eaf4 user: tauvan | |
|
2004-05-17
| ||
| 00:55 | • Ticket [935160ffff]: 4 changes artifact: 10be1c8951 user: tauvan | |
|
2004-05-03
| ||
| 11:55 | • Add attachment c84b_OSX6.patch to ticket [935160ffff] artifact: 3a4441d8e3 user: tauvan | |
| 11:55 | • Ticket [935160ffff] OSX warnings and errors (6) status still Open with 4 oth... artifact: 84c7d47da1 user: tauvan | |
|
2004-04-14
| ||
| 19:52 | • New ticket [935160ffff]. artifact: 55713a03cc user: tauvan | |
OSX warnings and errors (6)
Closed / Fixed935160ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-14 19:52:09
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
My (6) suggestion is:
change:
tclInt.decls, tclUnixPort.h, tclUnixThrd.c, tclIntPlatDecls.h
to "CONST time_t *" from "time_t *"
Solves:
warning: passing arg 1 of `TclpGmtime' discards qualifiers
from pointer target type
warning: passing arg 1 of `TclpLocaltime' discards qualifiers
from pointer target type
Condition:
"OSX warnings and errors (1)" not required
"OSX warnings and errors (2)" performed
quick fix performed
Suggestion:
All "TclpLocaltime(time_t *" to "TclpLocaltime(CONST time_t *"
All "TclpGmtime(time_t *" to "TclpGmtime(CONST time_t *"
struct tm * (*tclpLocaltime) _ANSI_ARGS_((CONST time_t *
clock));
struct tm * (*tclpGmtime) _ANSI_ARGS_((CONST time_t *
clock));
tools/genStubs.tcl should take care of tclIntPlatDecls.h
Special Notes:
OSX prototype for gmtime & localtime use "const time_t *"
glibc uses "__const time_t *"
Linux Programmer's Manual uses "const time_t *"
Results from (6):
trashed previous builds
make -C ./tcl8.4.6/macosx develop
./build/tcl/tcltest ./tcl8.4.6/tests/all.tcl
less warnings
w & w/o (1) same
Thanks.
tauvanplain2004-05-03 11:55:14
File Added - 85906: c84b_OSX6.patch
tauvanplain2004-05-17 00:55:48
Logged In: YES user_id=1011552 This report can be closed as it seems to be incorporated as of 2004-05-14. see changes in change log 2004-05-14 Kevin B. Kenny. It doesn't mention this bug, but it now rejects the attached patch and the keyword "CONST" seems to be applied. Thanks
tauvanplain2004-05-18 09:18:23
Logged In: YES user_id=1011552 Addmendment: In response to 2004-05-17 Kevin B. Kenny changes Patch still invalid CONST should be removed in tclUnixPort.h references in tclUnixThrd.c to TclpLocaltime, TclpGmtime should be removed ...But, it looks like he passes TclpTime_t and immediatly converts to CONST time_t for all systems. Looks like extra work! Wouldn't it be better to pass CONST time_t?
dkfplain2004-05-18 15:08:16
Logged In: YES user_id=79902 tauvan: 8.5 does just that, but 8.4 can't because of #include ordering issues on some platforms (IIRC Windows was one of those platforms) that were tricky enough to work around that we're not going to backport those particular changes. Luckily, a cast from TclpTime_t to time_t is actually free in all reasonable implementations... Fixed in HEAD and unfixable in 8.4-branch => closing bug...
Log in (anonymous is fine) to add a comment.
Attachments:
- c84b_OSX6.patch [download] added by tauvan on 2004-05-03 11:55:14. [details]