-
Notifications
You must be signed in to change notification settings - Fork 88
Description
Hi, currently NP2Kai fails to build.
[ 8%] Building C object CMakeFiles/sdlnp2kai.dir/cbus/boardlol.c.o
/build/np2kai-git/src/NP2kai/cbus/amd98.c: In function ‘amd98_bind’:
/build/np2kai-git/src/NP2kai/cbus/amd98.c:475:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
475 | iocore_attachout(0xd8, amd_od8);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
In file included from /build/np2kai-git/src/NP2kai/cbus/amd98.c:10:
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:476:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
476 | iocore_attachout(0xd9, amd_od9);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:477:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
477 | iocore_attachout(0xda, amd_oda);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:478:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
478 | iocore_attachout(0xdb, amd_odb);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:479:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
479 | iocore_attachout(0xdc, amd_odc);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:480:32: error: passing argument 2 of ‘iocore_attachout’ from incompatible pointer type [-Wincompatible-pointer-types]
480 | iocore_attachout(0xde, amd_ode);
| ^~~~~~~
| |
| void ()(UINT, UINT8) {aka void ()(unsigned int, unsigned char)}
/build/np2kai-git/src/NP2kai/io/iocore.h:107:43: note: expected ‘IOOUT’ {aka ‘void ()(unsigned int, unsigned int)’} but argument is of type ‘void ()(UINT, UINT8)’ {aka ‘void ()(unsigned int, unsigned char)’}
107 | BRESULT iocore_attachout(UINT port, IOOUT func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:482:32: error: passing argument 2 of ‘iocore_attachinp’ from incompatible pointer type [-Wincompatible-pointer-types]
482 | iocore_attachinp(0xda, amd_ida);
| ^~~~~~~
| |
| UINT8 ()(UINT) {aka unsigned char ()(unsigned int)}
/build/np2kai-git/src/NP2kai/io/iocore.h:109:43: note: expected ‘IOINP’ {aka ‘unsigned int ()(unsigned int)’} but argument is of type ‘UINT8 ()(UINT)’ {aka ‘unsigned char ()(unsigned int)’}
109 | BRESULT iocore_attachinp(UINT port, IOINP func);
| ~~~~~~^~~~
/build/np2kai-git/src/NP2kai/cbus/amd98.c:483:32: error: passing argument 2 of ‘iocore_attachinp’ from incompatible pointer type [-Wincompatible-pointer-types]
483 | iocore_attachinp(0xdb, amd_idb);
| ^~~~~~~
| |
| UINT8 ()(UINT) {aka unsigned char ()(unsigned int)}
/build/np2kai-git/src/NP2kai/io/iocore.h:109:43: note: expected ‘IOINP’ {aka ‘unsigned int ()(unsigned int)’} but argument is of type ‘UINT8 ()(UINT)’ {aka ‘unsigned char ()(unsigned int)’}
109 | BRESULT iocore_attachinp(UINT port, IOINP func);
| ~~~~~~^~~~
[ 8%] Building C object CMakeFiles/xnp21kai_HAXM.dir/i386c/ia32/resolve.c.o
make[2]: *** [CMakeFiles/sdlnp2kai.dir/build.make:527: CMakeFiles/sdlnp2kai.dir/cbus/amd98.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....