mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-14 00:11:19 +00:00
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, | ~~~~~~~~~~~~~~~~~~~~~^~~~~
This commit is contained in:
parent
88c161c004
commit
2638f3a1bd
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ void utf2ascii(char* dst, uint16_t* src){
|
||||||
*dst=0x00;
|
*dst=0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
int nzp_main (unsigned int argc, char *argv[])
|
int nzp_main (SceSize, void*)
|
||||||
#else
|
#else
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue