Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5f84e2936bee65813fadef21cc238583850c27bb7d3598c27bc9d8df82aa7d39
Ticket: 6f1dd8a1be789a75a3e85f21b5f243ba5620dc5b
tclMacOSXNotify.c: function pointer cast to incompatible type
User & Date: jan.nijtmans on 2025-12-03 22:43:09
Changes

  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"