Artifacts Associated With Ticket 6f1dd8a1be
Ticket change [6f7eec5907] (rid 249024) by chrstphrchvz on 2025-12-03 21:47:47:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- 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. - foundin initialized to: "core-9-0-branch"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
tclMacOSXNotify.c: function pointer cast to incompatible type
- type initialized to: "Bug"
Ticket change [5f84e2936b] (rid 249025) by jan.nijtmans on 2025-12-03 22:43:09:
- assignee changed to: "jan.nijtmans"
- 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!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [811a89c8bf] (rid 249031) by jan.nijtmans on 2025-12-03 23:27:51:
- closedate changed to: "2461013.47767774"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [9c3bb02ddf4e3687|here] (and in all other active branches)
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"