From 2638f3a1bd38924c3124176e261b167dc944f70a Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Mon, 17 Jun 2024 18:50:52 +0100 Subject: [PATCH] VITA: Fix -Wincompatible-pointer-types warning source/main_sdl.c:234:52: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type [-Wincompatible-pointer-types] 234 | SceUID main_thread = sceKernelCreateThread("NZP", nzp_main, 0x40, 0x800000, 0, 0, NULL); | ^~~~~~~~ | | | int (*)(unsigned int, char **) In file included from /usr/local/vitasdk/arm-vita-eabi/include/psp2/kernel/threadmgr.h:28, from /usr/local/vitasdk/arm-vita-eabi/include/psp2/paf/misc.h:12, from /usr/local/vitasdk/arm-vita-eabi/include/psp2/paf.h:14, from /usr/local/vitasdk/arm-vita-eabi/include/vitasdk.h:52, from source/main_sdl.c:86: /usr/local/vitasdk/arm-vita-eabi/include/psp2/kernel/threadmgr/thread.h:48:69: note: expected 'SceKernelThreadEntry' {aka 'int (*)(unsigned int, void *)'} but argument is of type 'int (*)(unsigned int, char **)' 48 | SceUID sceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority, | ~~~~~~~~~~~~~~~~~~~~~^~~~~ --- source/main_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main_sdl.c b/source/main_sdl.c index 9b726dd..c3b28b8 100644 --- a/source/main_sdl.c +++ b/source/main_sdl.c @@ -115,7 +115,7 @@ void utf2ascii(char* dst, uint16_t* src){ *dst=0x00; } -int nzp_main (unsigned int argc, char *argv[]) +int nzp_main (SceSize, void*) #else int main(int argc, char *argv[]) #endif