From 6ca793fcc340cf3c3b63a48836080211f64c711a Mon Sep 17 00:00:00 2001 From: Ryan Myers Date: Thu, 21 Oct 2021 12:54:54 -0400 Subject: [PATCH] Fix warning the same way libreultra defined the vars --- lib/src/os/__osViSwapContext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/os/__osViSwapContext.c b/lib/src/os/__osViSwapContext.c index a58302a6..cc2153af 100644 --- a/lib/src/os/__osViSwapContext.c +++ b/lib/src/os/__osViSwapContext.c @@ -13,8 +13,8 @@ struct __osThreadTail } __osThreadTail; struct __osThreadTail __osThreadTail = {0, -1}; -OSThread *__osRunQueue = &__osThreadTail.next; -OSThread *__osActiveQueue = &__osThreadTail.next; +OSThread *__osRunQueue = (OSThread *)&__osThreadTail; +OSThread *__osActiveQueue = (OSThread *)&__osThreadTail; extern OSThread *__osRunningThread = NULL; extern OSThread *__osFaultedThread = NULL;