Artifacts Associated With Ticket d556d5472319117b
Ticket change [4816a856c5] (rid 228429) by [email protected] on 2024-07-03 16:20:49:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
tclDecls.h comes with a new redefinition which is in effect when compiling against Tcl stubs (_DUSE_TCL_STUBS) around line 3975: #ifndef __cplusplus # undef Tcl_EventuallyFree # define Tcl_EventuallyFree \ ((void (*)(void *,void *))(void *)(tclStubsPtr->tcl_EventuallyFree)) /* 132 */ # undef Tcl_SetResult # define Tcl_SetResult \ ((void (*)(Tcl_Interp *, char *, void *))(void *)(tclStubsPtr->tcl_SetResult)) /* 232 */ #endif This should be disabled since Tcl_FreeProc does not match the declared prototype. I removed this setting and rebuild Tcl on Linux/Windows/macos without problems and I was able to compile extensions against the stub library. I propose to remove this questionable redefinition to avoid compiler warnings about non-matching types for TCL_STATIC, TCL_DYNAMIC and friends. - foundin initialized to: "8.6.14"
- is_private initialized to: "0"
- login: "[email protected]"
- priority initialized to: "5 Medium"
- private_contact initialized to: "720cbbf8ba21fd6982dfd8639b4ecf45d5cf11a3"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "[email protected]"
- subsystem initialized to: "52. Portability Support"
- title initialized to:
Inconsistency in Tcl declaration of Tcl_EventuallyFree and Tcl_SetResult causes warnings when compiling.
- type initialized to: "Patch"
Ticket change [54439259d5] (rid 228430) by [email protected] on 2024-07-03 16:22:20:
- comment changed to:
tclDecls.h comes with a new redefinition which is in effect when compiling against Tcl stubs (-DUSE_TCL_STUBS) around line 3975: #ifndef __cplusplus # undef Tcl_EventuallyFree # define Tcl_EventuallyFree \ ((void (*)(void *,void *))(void *)(tclStubsPtr->tcl_EventuallyFree)) /* 132 */ # undef Tcl_SetResult # define Tcl_SetResult \ ((void (*)(Tcl_Interp *, char *, void *))(void *)(tclStubsPtr->tcl_SetResult)) /* 232 */ #endif This should be disabled since Tcl_FreeProc does not match the declared prototype. I removed this setting and rebuild Tcl on Linux/Windows/macos without problems and I was able to compile extensions against the stub library. I propose to remove this questionable redefinition to avoid compiler warnings about non-matching types for TCL_STATIC, TCL_DYNAMIC and friends. - login: "[email protected]"
- mimetype: "text/plain"
- priority changed to: "3 Low"
- resolution changed to: "Works For Me"
- comment changed to:
Ticket change [92e8b69fae] (rid 228432) by jan.nijtmans on 2024-07-03 20:19:11:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460495.34666052"
- closer changed to: "jan.nijtmans"
- icomment: "Dup of [df85199878]: Already fixed"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"