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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- 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. - foundin changed to: "core-9-0-branch"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to:
tclMacOSXNotify.c: function pointer cast to incompatible type
- type changed to: "Bug"