mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
interface/vcos: Get rid of LLTHREAD cast warning
The cast is safe. Get rid of some compiler noise.
This commit is contained in:
@@ -180,7 +180,7 @@ void vcos_thread_attr_setautostart(VCOS_THREAD_ATTR_T *attrs, VCOS_UNSIGNED auto
|
|||||||
|
|
||||||
VCOS_INLINE_IMPL
|
VCOS_INLINE_IMPL
|
||||||
VCOS_THREAD_T *vcos_thread_current(void) {
|
VCOS_THREAD_T *vcos_thread_current(void) {
|
||||||
VCOS_THREAD_T *ret = (VCOS_THREAD_T*)vcos_llthread_current();
|
VCOS_THREAD_T *ret = (VCOS_THREAD_T*) (void *) vcos_llthread_current();
|
||||||
/*If we're called from a non-vcos thread, this assert will fail.
|
/*If we're called from a non-vcos thread, this assert will fail.
|
||||||
*XXX FIXME why is this commented out?
|
*XXX FIXME why is this commented out?
|
||||||
*vcos_assert(ret->magic == VCOS_THREAD_MAGIC);
|
*vcos_assert(ret->magic == VCOS_THREAD_MAGIC);
|
||||||
|
|||||||
Reference in New Issue
Block a user