<i>Inconsistency in Tcl declaration of Tcl_EventuallyFree and Tcl_SetResult causes warnings when compiling.</i>.
by
.
D 2024-07-03T16:20:49.304
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment tclDecls.h\scomes\swith\sa\snew\sredefinition\swhich\sis\sin\seffect\swhen\scompiling\sagainst\sTcl\sstubs\s(_DUSE_TCL_STUBS)\saround\sline\s3975:\r\n\r\n#ifndef\s__cplusplus\r\n#\s\s\sundef\sTcl_EventuallyFree\r\n#\s\s\sdefine\sTcl_EventuallyFree\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s((void\s(*)(void\s*,void\s*))(void\s*)(tclStubsPtr->tcl_EventuallyFree))\s/*\s132\s*/\r\n#\s\s\sundef\sTcl_SetResult\r\n#\s\s\sdefine\sTcl_SetResult\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s((void\s(*)(Tcl_Interp\s*,\schar\s*,\svoid\s*))(void\s*)(tclStubsPtr->tcl_SetResult))\s/*\s232\s*/\r\n#endif\r\n\r\nThis\sshould\sbe\sdisabled\ssince\sTcl_FreeProc\sdoes\snot\smatch\sthe\sdeclared\sprototype.\sI\sremoved\sthis\ssetting\sand\srebuild\sTcl\son\sLinux/Windows/macos\swithout\sproblems\sand\sI\swas\sable\sto\scompile\sextensions\sagainst\sthe\sstub\slibrary.\r\n\r\nI\spropose\sto\sremove\sthis\squestionable\sredefinition\sto\savoid\scompiler\swarnings\sabout\snon-matching\stypes\sfor\sTCL_STATIC,\sTCL_DYNAMIC\sand\sfriends.
J foundin 8.6.14
J is_private 0
J login [email protected]
J priority 5\sMedium
J private_contact 720cbbf8ba21fd6982dfd8639b4ecf45d5cf11a3
J resolution None
J severity Minor
J status Open
J submitter [email protected]
J subsystem 52.\sPortability\sSupport
J title Inconsistency\sin\sTcl\sdeclaration\sof\sTcl_EventuallyFree\sand\sTcl_SetResult\scauses\swarnings\swhen\scompiling.
J type Patch
K d556d5472319117b076232810416ca2ac41b6b6f
U [email protected]
Z a4600b2c01d0a810584d4baebf8f7728