Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4816a856c5629610df2570f857b80cd0cc5fdad98a56e41ae51dd9720f47e127
Ticket: d556d5472319117b076232810416ca2ac41b6b6f
Inconsistency in Tcl declaration of Tcl_EventuallyFree and Tcl_SetResult causes warnings when compiling.
User & Date: [email protected] on 2024-07-03 16:20:49
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. 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.
    
  5. foundin changed to: "8.6.14"
  6. is_private changed to: "0"
  7. login: "[email protected]"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "720cbbf8ba21fd6982dfd8639b4ecf45d5cf11a3"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "[email protected]"
  14. subsystem changed to: "52. Portability Support"
  15. title changed to:
    Inconsistency in Tcl declaration of Tcl_EventuallyFree and Tcl_SetResult causes warnings when compiling.
    
  16. type changed to: "Patch"