* Package: games-action/geki3-KXL-1.0.3-r3 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox @@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; This ebuild was merged at the following commit: https://github.com/gentoo-mirror/gentoo/commit/03d344389059283c74f7c281919657b2fdeca129 @@@@@ END @@@@@ >>> Unpacking source... >>> Unpacking geki3-KXL-1.0.3.tar.gz to /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work >>> Unpacking geki3-KXL.png to /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work unpack geki3-KXL.png: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work >>> Preparing source in /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3 ... * Applying geki3-KXL-1.0.3-paths.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3' ... * Running aclocal ... [ ok ] * Running autoconf --force ... [ ok ] * Running automake --add-missing --copy --foreign --force-missing ... [ ok ] * Running elibtoolize in: geki3-KXL-1.0.3/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/geki3-KXL-1.0.3-r3 --htmldir=/usr/share/doc/geki3-KXL-1.0.3-r3/html --libdir=/usr/lib64 checking for a BSD-compatible install... /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-clang accepts -g... yes checking for x86_64-pc-linux-gnu-clang option to accept ISO C89... none needed checking whether x86_64-pc-linux-gnu-clang understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-pc-linux-gnu-clang... none checking whether make sets $(MAKE)... (cached) yes checking for main in -lKXL... yes checking how to run the C preprocessor... x86_64-pc-linux-gnu-clang -E checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... no checking for KXL CFLAGS... checking for KXL LDFLAGS... -lKXL checking for gethostbyname... (cached) yes checking for connect... (cached) yes checking for remove... (cached) yes checking for shmat... (cached) yes checking for IceConnectionNumber in -lICE... (cached) no checking for KXL_CreateWindow in -lKXL... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating data/Makefile config.status: creating wav/Makefile config.status: creating bmp/Makefile config.status: creating src/Makefile config.status: creating geki3.spec config.status: creating Makefile config.status: executing depfiles commands >>> Source configured. >>> Compiling source in /var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3 ... make -j2 V=1 Making all in data make[1]: Entering directory '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3/data' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3/data' Making all in src make[1]: Entering directory '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3/src' x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o boss.o boss.c x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o game.o game.c game.c:57:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ boss.c:205:4: warning: implicit declaration of function 'CreateEnemyBomb' is invalid in C99 [-Wimplicit-function-declaration] CreateEnemyBomb(my->X + 20, ^ boss.c:211:6: warning: implicit declaration of function 'CreateEnemyBomb' is invalid in C99 [-Wimplicit-function-declaration] CreateEnemyBomb(my->X + 20, ^ game.c:97:1: warning: non-void function does not return boss.c:302:4: warning: implicit declaration of function 'CreateMissile' is invalid in C99 [-Wimplicit-function-declaration] CreateMissile(my, my->X - 8, my->Y); ^ a value in all control paths [-Wreturn-type] } ^ boss.c:368:7: warning: implicit declaration of function 'CreateMissile' is invalid in C99 [-Wimplicit-function-declaration] CreateMissile(my, my->X + 124, my->Y + 22); ^ boss.c:394:2: warning: implicit declaration of function 'CreateEnemyBomb' is invalid in C99 [-Wimplicit-function-declaration] CreateEnemyBomb(my->X + 60, ^ boss.c:446:7: warning: implicit declaration of function 'CreateMissile' is invalid in C99 [-Wimplicit-function-declaration] CreateMissile(my, my->X + 48, my->Y + 94); ^ boss.c:468:2: warning: implicit declaration of function 'CreateEnemyBomb' is invalid in C99 [-Wimplicit-function-declaration] CreateEnemyBomb(my->X + 20, ^ 2 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o load.o load.c 7 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o main.o main.c load.c:25:11: warning: passing 'Uint8 [64]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(filename, BMP_PATH "/%s.bmp", fname); ^~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ load.c:54:11: warning: passing 'Uint8 [64]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(filename, BMP_PATH "/%s.bmp", fname); ^~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ load.c:72:13: warning: passing 'Uint8 [64]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(filename, "%s%d", fname, i + 1); ^~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ load.c:103:35: warning: passing 'char [3]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMy = LoadPixmapSplit("my", 0, 4, 0.4); ^~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:104:35: warning: passing 'char [8]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMyShot = LoadPixmapSplit("my_shot", 4, 2, CHECK_PER); ^~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:105:35: warning: passing 'char [11]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMyMissile = LoadPixmapSplit("my_missile", 0, 2, CHECK_PER); ^~~~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:106:35: warning: passing 'char [9]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMyLaser = LoadPixmapSplit("my_laser", 0, 1, CHECK_PER); ^~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:107:35: warning: passing 'char [8]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMyWide = LoadPixmapSplit("my_wide", 0, 1, CHECK_PER); ^~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:108:35: warning: passing 'char [5]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixBall = LoadPixmapSplit("ball", 0, 3, 0); ^~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:109:35: warning: passing 'char [6]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixBomb1 = LoadPixmapSplit("bomb1", 0, 13, CHECK_PER); ^~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:110:35: warning: passing 'char [6]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixBomb2 = LoadPixmapSplit("bomb2", 0, 9, CHECK_PER); ^~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:111:35: warning: passing 'char [5]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixTobi = LoadPixmapSplit("tobi", 0, 5, CHECK_PER); ^~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:112:35: warning: passing 'char [4]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixIka = LoadPixmapSplit("ika", 0, 3, CHECK_PER); ^~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:113:35: warning: passing 'char [9]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixIkaBall = LoadPixmapSplit("ika_ball", 0, 3, CHECK_PER); ^~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:114:35: warning: passing 'char [4]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixUni = LoadPixmapSplit("uni", 0, 2, CHECK_PER); ^~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:115:35: warning: passing 'char [5]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMogu = LoadPixmapSplit("mogu", 0, 1, CHECK_PER); ^~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:116:35: warning: passing 'char [10]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMoguBall = LoadPixmapSplit("mogu_ball", 0, 1, CHECK_PER); ^~~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:117:35: warning: passing 'char [5]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixPata = LoadPixmapSplit("pata", 0, 3, CHECK_PER); ^~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:118:35: warning: passing 'char [10]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixPataBall = LoadPixmapSplit("pata_ball", 0, 3, CHECK_PER); ^~~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:119:35: warning: passing 'char [3]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixEi = LoadPixmapSplit("ei", 0, 5, CHECK_PER); ^~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:120:35: warning: passing 'char [8]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixEiBall = LoadPixmapSplit("ei_ball", 0, 5, CHECK_PER); ^~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:121:35: warning: passing 'char [5]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixKura = LoadPixmapSplit("kura", 0, 9, CHECK_PER); ^~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:122:35: warning: passing 'char [7]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixManboo = LoadPixmapSplit("manboo", 0, 5, CHECK_PER); ^~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:123:35: warning: passing 'char [11]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixEnemyShot1 = LoadPixmapSplit("enemyshot1", 0, 1, 0.2); ^~~~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:124:35: warning: passing 'char [11]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixEnemyShot2 = LoadPixmapSplit("enemyshot2", 0, 6, 0.2); ^~~~~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:125:35: warning: passing 'char [8]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixMissile = LoadPixmapSplit("missile", 0, 12, 0.3); ^~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:126:31: warning: passing 'char [6]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixEBomb = LoadPixmaps("ebomb", 0, 3, CHECK_PER); ^~~~~~~ load.c:64:30: note: passing argument to parameter 'fname' here PixData **LoadPixmaps(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:127:35: warning: passing 'char [8]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PixWarning = LoadPixmapSplit("warning", 0, 2, CHECK_PER); ^~~~~~~~~ load.c:16:34: note: passing argument to parameter 'fname' here PixData **LoadPixmapSplit(Uint8 *fname, Uint8 blend, Uint16 max, float per) ^ load.c:128:34: warning: passing 'char [28]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] hp_image = KXL_LoadBitmap(BMP_PATH "/hp.bmp", 255); ^~~~~~~~~~~~~~~~~~ :23:18: note: expanded from here #define BMP_PATH "/usr/share/geki3/bmp" ^ /usr/include/KXL.h:284:35: note: passing argument to parameter 'filename' here KXL_Image *KXL_LoadBitmap(Uint8 *filename, Uint8 blend); ^ load.c:129:34: warning: passing 'char [31]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] frame_image = KXL_LoadBitmap(BMP_PATH "/frame.bmp", 0); ^~~~~~~~~~~~~~~~~~~~~ :23:18: note: expanded from here #define BMP_PATH "/usr/share/geki3/bmp" ^ /usr/include/KXL.h:284:35: note: passing argument to parameter 'filename' here KXL_Image *KXL_LoadBitmap(Uint8 *filename, Uint8 blend); ^ load.c:130:34: warning: passing 'char [31]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] power_image = KXL_LoadBitmap(BMP_PATH "/power.bmp", 255); ^~~~~~~~~~~~~~~~~~~~~ :23:18: note: expanded from here #define BMP_PATH "/usr/share/geki3/bmp" ^ /usr/include/KXL.h:284:35: note: passing argument to parameter 'filename' here KXL_Image *KXL_LoadBitmap(Uint8 *filename, Uint8 blend); ^ load.c:131:34: warning: passing 'char [30]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] star_image = KXL_LoadBitmap(BMP_PATH "/star.bmp", 255); ^~~~~~~~~~~~~~~~~~~~ :23:18: note: expanded from here #define BMP_PATH "/usr/share/geki3/bmp" ^ /usr/include/KXL.h:284:35: note: passing argument to parameter 'filename' here KXL_Image *KXL_LoadBitmap(Uint8 *filename, Uint8 blend); ^ load.c:185:11: warning: passing 'Uint8 [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buff, DATA_PATH "/stage%d.dat", Root->Stage + 1); ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ load.c:186:19: warning: passing 'Uint8 [256]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((fp = fopen(buff, "r")) == NULL) { ^~~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ load.c:195:15: warning: passing 'Uint8 [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while(fgets(buff, 255, fp)) { ^~~~ /usr/include/stdio.h:564:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ load.c:203:12: warning: passing 'Uint8 [256]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sscanf(buff,"%d, %d, %d, %d", ^~~~ /usr/include/stdio.h:412:60: note: passing argument to parameter '__s' here extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ load.c:204:12: warning: format specifies type 'int *' but the argument has type 'Uint16 *' (aka 'unsigned short *') [-Wformat] &(StageDatas[Root->StageMax]->Time), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:205:12: warning: format specifies type 'int *' but the argument has type 'Uint8 *' (aka 'unsigned char *') [-Wformat] &(StageDatas[Root->StageMax]->CreateNo), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:206:12: warning: format specifies type 'int *' but the argument has type 'Uint8 *' (aka 'unsigned char *') [-Wformat] &(StageDatas[Root->StageMax]->Max), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:207:12: warning: format specifies type 'int *' but the argument has type 'Uint16 *' (aka 'unsigned short *') [-Wformat] &(StageDatas[Root->StageMax]->Step)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:214:11: warning: passing 'Uint8 [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buff, "%s/back%d.bmp", BMP_PATH, Root->Stage + 1); ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ load.c:217:11: warning: passing 'Uint8 [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buff, "boss%d", Root->Stage + 1); ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:98:6: warning: passing 'char [16]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] TITLE, ^~~~~ :25:15: note: expanded from here #define TITLE "geki3-KXL 1.0.3" ^~~~~~~~~~~~~~~~~ /usr/include/KXL.h:263:57: note: passing argument to parameter 'title' here void KXL_CreateWindow(Uint16 w, Uint16 h, Uint8 *title, Uint32 event); ^ main.c:139:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) { ^ main.c:139:10: note: include the header or explicitly provide a declaration for 'strcmp' main.c:151:23: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_DisplayName(argv[i + 1]); ^~~~~~~~~~~ /usr/include/KXL.h:262:36: note: passing argument to parameter 'name' here void KXL_DisplayName(Uint8 *name); ^ main.c:166:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "bgm1", ^~~~~~ main.c:167:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "bgm2", ^~~~~~ main.c:168:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "bgm3", ^~~~~~ main.c:169:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "bgm4", ^~~~~~ main.c:170:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "boom", ^~~~~~ main.c:171:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "warning", ^~~~~~~~~ main.c:172:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [5]' converts between pointers to integer types with different sign [-Wpointer-sign] "boss", ^~~~~~ main.c:173:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [6]' converts between pointers to integer types with different sign [-Wpointer-sign] "laser", ^~~~~~~ main.c:174:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [4]' converts between pointers to integer types with different sign [-Wpointer-sign] "pow", ^~~~~ main.c:175:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [3]' converts between pointers to integer types with different sign [-Wpointer-sign] "go", ^~~~ main.c:176:5: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [1]' converts between pointers to integer types with different sign [-Wpointer-sign] ""}; ^~ main.c:179:9: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration] srand(time(NULL)); ^ main.c:182:17: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_InitSound(WAV_PATH, sname); ^~~~~~~~ :24:18: note: expanded from here #define WAV_PATH "/usr/share/geki3/wav" ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:308:34: note: passing argument to parameter 'path' here void KXL_InitSound(Uint8 *path, Uint8 **fname); ^ 16 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o misc.o misc.c 42 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o my.o my.c misc.c:119:20: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [6]' converts between pointers to integer types with different sign [-Wpointer-sign] Uint8 *str[2] = {"Clear", "GameOver"}; ^~~~~~~ misc.c:119:29: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [9]' converts between pointers to integer types with different sign [-Wpointer-sign] Uint8 *str[2] = {"Clear", "GameOver"}; ^~~~~~~~~~ misc.c:127:7: warning: implicit declaration of function 'ScoreRanking' is invalid in C99 [-Wimplicit-function-declaration] ScoreRanking(); ^ misc.c:132:5: warning: implicit declaration of function 'UnLoadStageData' is invalid in C99 [-Wimplicit-function-declaration] UnLoadStageData(); ^ misc.c:152:14: warning: passing 'char [52]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_Font("-bitstream-charter-bold-*-normal-*-60-*-*-*-*-*-*-*", 0x00... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:274:29: note: passing argument to parameter 'str' here void KXL_Font(Uint8 *str, Uint8 r, Uint8 g, Uint8 b); ^ misc.c:160:15: warning: passing 'char [53]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_Font( "-adobe-courier-bold-r-normal--14-*-*-*-*-*-iso8859-1", 0x... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:274:29: note: passing argument to parameter 'str' here void KXL_Font(Uint8 *str, Uint8 r, Uint8 g, Uint8 b); ^ misc.c:200:11: warning: passing 'Uint8 [30]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(text, "Score %06d", Root->Score); ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ misc.c:200:31: warning: format specifies type 'int' but the argument has type 'Uint32' (aka 'unsigned long') [-Wformat] sprintf(text, "Score %06d", Root->Score); ~~~~ ^~~~~~~~~~~ %06lu 8 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o opening.o opening.c opening.c:8:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] " 000 000 ", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:9:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] "0 0 0 0 0 0", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:10:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] "0 0 000 0 0 0", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:11:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] "0 0 0 0 0 0 00 ", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:12:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] "0 000 00000 00 0 0", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:13:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] "0 0 0 0 0 0 0 0", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:14:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [25]' converts between pointers to integer types with different sign [-Wpointer-sign] " 0000 000 0 0 0 000 ", ^~~~~~~~~~~~~~~~~~~~~~~~~~ opening.c:15:3: warning: initializing 'Uint8 *' (aka 'unsigned char *') with an expression of type 'char [1]' converts between pointers to integer types with different sign [-Wpointer-sign] "" ^~ opening.c:78:19: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(menu_str[i]), AREA_LY + 180 + i * 16, menu_str[i]); ^~~~~~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:78:64: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(menu_str[i]), AREA_LY + 180 + i * 16, menu_str[i]); ^~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:83:19: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(key_str[i]), AREA_LY + 148 + i * 16, key_str[i]); ^~~~~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:83:63: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(key_str[i]), AREA_LY + 148 + i * 16, key_str[i]); ^~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:86:17: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:86:49: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~ opening.c:6:17: note: expanded from macro 'TO_MENU' #define TO_MENU "push any key to menu" ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:89:17: warning: passing 'char [6]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER("Items"), AREA_LY + 148, "Items"); ^~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:89:49: warning: passing 'char [6]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER("Items"), AREA_LY + 148, "Items"); ^~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:92:58: warning: passing 'char *' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(AREA_LX + 212, AREA_LY + 168 + i * 32, item_str[i]); ^~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:98:17: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:98:49: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~ opening.c:6:17: note: expanded from macro 'TO_MENU' #define TO_MENU "push any key to menu" ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.c:101:17: warning: passing 'char [14]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER("Ranking Top 5"), AREA_LY + 148, "Ranking Top 5"); ^~~~~~~~~~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:101:57: warning: passing 'char [14]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER("Ranking Top 5"), AREA_LY + 148, "Ranking Top 5"); ^~~~~~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ opening.cx86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o ranking.o ranking.c :103:13: warning: passing 'Uint8 [65]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buff, "Top Score Stage Loop Name"); ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ opening.c:107:15: warning: passing 'Uint8 [65]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buff, " %d %08d %d %d %-8s", i + 1, ^~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ opening.c:108:8: warning: format specifies type 'int' but the argument has type 'Uint32' (aka 'unsigned long') [-Wformat] Ranking[i]->Score, Ranking[i]->Stage + 1, ^~~~~~~~~~~~~~~~~ opening.c:113:17: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~~~~~~~~~ opening.c:5:60: note: expanded from macro 'CENTER' #define CENTER(str) (AREA_LX + (DRAW_WIDTH - KXL_TextWidth((str))) / 2) ^~~~~ /usr/include/KXL.h:276:34: note: passing argument to parameter 'str' here Uint16 KXL_TextWidth(Uint8 *str); ^ opening.c:113:49: warning: passing 'char [21]' to parameter of type 'Uint8 *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] KXL_PutText(CENTER(TO_MENU), AREA_LY + 320, TO_MENU); ^~~~~~~ opening.c:6:17: note: expanded from macro 'TO_MENU' #define TO_MENU "push any key to menu" ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/KXL.h:275:52: note: passing argument to parameter 'str' here void KXL_PutText(Sint16 x, Sint16 y, Uint8 *str); ^ 26 warnings generated. x86_64-pc-linux-gnu-clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki3-KXL\" -DVERSION=\"1.0.3\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/geki3/data\" -DBMP_PATH=\"/usr/share/geki3/bmp\" -DWAV_PATH=\"/usr/share/geki3/wav\" -DTITLE=\"geki3-KXL\ 1.0.3\" -I. -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c -o your.o your.c ranking.c:18:5: error: non-void function 'ScoreRanking' should return a value [-Wreturn-type] return; ^ ranking.c:27:13: warning: passing 'Uint8 [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(Ranking[i]->Name, "%d", getuid()); ^~~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ranking.c:29:12: warning: passing 'Uint8 [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(Ranking[i]->Name, pw->pw_name); ^~~~~~~~~~~~~~~~ /usr/include/string.h:122:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ ranking.c:42:22: warning: format specifies type 'int *' but the argument has type 'Uint32 *' (aka 'unsigned long *') [-Wformat] fscanf(fp, "%d", &(Root->HiScore)); ~~ ^~~~~~~~~~~~~~~~ %ld ranking.c:45:7: warning: format specifies type 'int *' but the argument has type 'Uint32 *' (aka 'unsigned long *') [-Wformat] &(Ranking[i]->Score), ^~~~~~~~~~~~~~~~~~~~ ranking.c:46:7: warning: format specifies type 'int *' but the argument has type 'Uint8 *' (aka 'unsigned char *') [-Wformat] &(Ranking[i]->Stage), ^~~~~~~~~~~~~~~~~~~~ ranking.c:47:7: warning: format specifies type 'int *' but the argument has type 'Uint8 *' (aka 'unsigned char *') [-Wformat] &(Ranking[i]->Loop), ^~~~~~~~~~~~~~~~~~~ ranking.c:56:15: warning: passing 'Uint8 [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(Ranking[i]->Name, "hoge%d", i + 1); ^~~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ranking.c:61:13: warning: passing 'Uint8 [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(Ranking[4]->Name, "hoge5"); ^~~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ranking.c:74:25: warning: format specifies type 'int' but the argument has type 'Uint32' (aka 'unsigned long') [-Wformat] fprintf(fp, "%d\n", Root->HiScore); ~~ ^~~~~~~~~~~~~ %lu ranking.c:77:8: warning: format specifies type 'int' but the argument has type 'Uint32' (aka 'unsigned long') [-Wformat] Ranking[i]->Score, ^~~~~~~~~~~~~~~~~ 10 warnings and 1 error generated. make[1]: *** [Makefile:377: ranking.o] Error 1 make[1]: *** Waiting for unfinished jobs.... your.c:484:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else ^ 1 warning generated. make[1]: Leaving directory '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3/src' make: *** [Makefile:346: all-recursive] Error 1 * ERROR: games-action/geki3-KXL-1.0.3-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-action/geki3-KXL-1.0.3-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-action/geki3-KXL-1.0.3-r3::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/games-action/geki3-KXL-1.0.3-r3:20200704-174333.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/temp/environment'. * Working directory: '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3' * S: '/var/tmp/portage/games-action/geki3-KXL-1.0.3-r3/work/geki3-KXL-1.0.3' emerge --info: Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r5, 5.4.0-1015-aws x86_64) ================================================================= System uname: Linux-5.4.0-1015-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 7895548 total, 1369816 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 05 Jul 2020 07:35:21 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.3-r2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo, 3.9.0_beta4::gentoo dev-util/cmake: 3.18.0_rc3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0-r2::gentoo sys-devel/gcc-config: 2.3.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-clang" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-clang++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j2 V=1" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS