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:
Peter0x44 2024-06-17 18:50:52 +01:00
parent 88c161c004
commit 2638f3a1bd

View file

@ -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