Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92940d9e5f4dddef1748ab595effdb0aac13e0c225d4de9669d26ce32eab713f
Ticket: 8ab8a138c9156e5a5a4a386310c6fd11608b8805
Functions passed to Tcl_EventuallyFree() must be declared/defined as Tcl_FreeProc
User & Date: chrstphrchvz on 2023-10-11 12:20:45
Changes

  1. icomment:
    How are the changes to tclDecls.h beneficial? They ensure the suppression of compiler warnings (or errors as of LLVM Clang 16, by default) regarding passing of incompatible function pointers. Currently, I believe it would be better to not suppress those compile-time complaints, particularly since they help identify and fix would-be <tt>-fsanitize=function</tt> errors, at least for the iterative workflow I used (remove any existing casts to <tt>(Tcl_FreeProc *)</tt> by <tt>Tcl_EventuallyFree()</tt> users, then fix declarations in response to compiler complaints of passing incompatible function pointers, then fix definitions in response to compiler complaints of declaration/definition mismatch).
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"