eina - debug - fix warning by explicitly casting not auto0-casting

freebsd's new clang wants to make this an error, not a warning... it
should be a warning really... but fix it either way.

@fix
This commit is contained in:
Carsten Haitzler 2023-02-15 10:53:04 +00:00
parent daa58f6da7
commit 5af8b5e4bc
1 changed files with 4 additions and 2 deletions

View File

@ -293,12 +293,14 @@ _signal_shutdown(void)
}
static void
_collect_bt(pthread_t pth)
_collect_bt(Eina_Thread th)
{
// this async signals the thread to switch to the deebug signal handler
// and collect a backtrace and other info from inside the thread
#ifndef _WIN32
pthread_kill(pth, SIG);
pthread_kill((pthread_t)th, SIG); // we can cast Eina_Thread -> pthread_t
#else
(th); // silenmce unused warn
#endif
}