Skip to content
Tcl Source Code History Of Ticket 6f1dd8a1be
Login

History Of Ticket 6f1dd8a1be

Artifacts Associated With Ticket 6f1dd8a1be

  1. Ticket change [6f7eec5907] (rid 249024) by chrstphrchvz on 2025-12-03 21:47:47:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      ```
      macosx/tclMacOSXNotify.c:659:3: warning: cast from 'void (*)(void *) __attribute__((noreturn))' to 'void *(*)(void *)' converts to incompatible function type [-Wcast-function-type-mismatch]
        659 |                 (void * (*)(void *)) NotifierThreadProc, NULL);
            |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ```
      
      I do not see this warning on 8.6, but I am not aware why.
      
      While an intermediate `(void *)` cast would silence this warning, I wonder if Tcl should instead just declare/define `NotifierThreadProc()` as the expected type and remove the cast.
      
    5. foundin initialized to: "core-9-0-branch"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to:
      tclMacOSXNotify.c: function pointer cast to incompatible type
      
    16. type initialized to: "Bug"
  2. Ticket change [5f84e2936b] (rid 249025) by jan.nijtmans on 2025-12-03 22:43:09:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      > I wonder if Tcl should instead just declare/define NotifierThreadProc() as the expected type and remove the cast
      
      Unfortunately, that wouldn't help. The last functions in NotifierThreadProc() is a "pthread_exit(0)" call. If we change the signature, we need to add a "return NULL" statement, which then would become unreachable, so another warning we need to handle.
      
      So, I think that the additional cast is the best we can do here.
      
      Thanks!
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [811a89c8bf] (rid 249031) by jan.nijtmans on 2025-12-03 23:27:51:

    1. closedate changed to: "2461013.47767774"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed [9c3bb02ddf4e3687|here] (and in all other active branches)
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"