Skip to content

Commit

Permalink
Final fix for [8ab8a138c9]: functions passed to Tcl_EventuallyFree() …
Browse files Browse the repository at this point in the history
…must be declared/defined as Tcl_FreeProc.

Don't try to suppress the warning any more, as it even confuses UBSan more than that it helps
  • Loading branch information
jan.nijtmans committed Oct 26, 2023
1 parent bbb4020 commit c0a8070
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 97 deletions.
8 changes: 0 additions & 8 deletions generic/tclDecls.h
Original file line number Diff line number Diff line change
Expand Up @@ -4149,14 +4149,6 @@ extern const TclStubs *tclStubsPtr;
# define Tcl_Init(interp) (tclStubsPtr->tcl_Init(interp))
# define Tcl_ObjSetVar2(interp, part1, part2, newValue, flags) \
(tclStubsPtr->tcl_ObjSetVar2(interp, part1, part2, newValue, flags))
#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
#endif

#if defined(_WIN32) && defined(UNICODE)
Expand Down
Loading

0 comments on commit c0a8070

Please sign in to comment.