Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f7eec5907952a44ab165f20c71c7e06702cf1b3083ec93978bbb3f37a0a5aac
Ticket: 6f1dd8a1be789a75a3e85f21b5f243ba5620dc5b
tclMacOSXNotify.c: function pointer cast to incompatible type
User & Date: chrstphrchvz on 2025-12-03 21:47:47
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed 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 changed to: "core-9-0-branch"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to:
    tclMacOSXNotify.c: function pointer cast to incompatible type
    
  16. type changed to: "Bug"