=>> Building games/xdeblock build started at Sat Apr 6 19:37:40 BST 2024 port directory: /usr/ports/games/xdeblock package name: xdeblock-1.0_3 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 725 Mar 8 2023 /usr/ports/games/xdeblock/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 16 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/16/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- IMAKECPP=tradcpp IMAKECPPFLAGS="-DCppCmd=tradcpp -DCcCmd=cc -DCplusplusCmd=c++" XDG_DATA_HOME=/wrkdirs/usr/ports/games/xdeblock/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/xdeblock/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/xdeblock/work/.cache HOME=/wrkdirs/usr/ports/games/xdeblock/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/xdeblock/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/xdeblock/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- IMAKECPP=tradcpp IMAKECPPFLAGS="-DCppCmd=tradcpp -DCcCmd=cc -DCplusplusCmd=c++" XDG_DATA_HOME=/wrkdirs/usr/ports/games/xdeblock/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/xdeblock/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/xdeblock/work/.cache HOME=/wrkdirs/usr/ports/games/xdeblock/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/xdeblock/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/xdeblock/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/xdeblock" EXAMPLESDIR="share/examples/xdeblock" DATADIR="share/xdeblock" WWWDIR="www/xdeblock" ETCDIR="etc/xdeblock" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/xdeblock DOCSDIR=/usr/local/share/doc/xdeblock EXAMPLESDIR=/usr/local/share/examples/xdeblock WWWDIR=/usr/local/www/xdeblock ETCDIR=/usr/local/etc/xdeblock --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The xdeblock port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> xdeblock-1.0_3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> xdeblock-1.0_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of xdeblock-1.0_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The xdeblock port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by xdeblock-1.0_3 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The xdeblock port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by xdeblock-1.0_3 for building => SHA256 Checksum OK for xdeblock.tgz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The xdeblock port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by xdeblock-1.0_3 for building ===> Extracting for xdeblock-1.0_3 => SHA256 Checksum OK for xdeblock.tgz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for xdeblock-1.0_3 ===> Applying FreeBSD patches for xdeblock-1.0_3 from /usr/ports/games/xdeblock/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> xdeblock-1.0_3 depends on executable: imake - not found ===> Installing existing package /packages/All/imake-1.0.10_1,1.pkg [pkg-builder.dan.net.uk] Installing imake-1.0.10_1,1... [pkg-builder.dan.net.uk] `-- Installing gccmakedep-1.0.4... [pkg-builder.dan.net.uk] `-- Extracting gccmakedep-1.0.4: .. done [pkg-builder.dan.net.uk] `-- Installing makedepend-1.0.9,1... [pkg-builder.dan.net.uk] `-- Extracting makedepend-1.0.9,1: .. done [pkg-builder.dan.net.uk] `-- Installing perl5-5.36.3_1... [pkg-builder.dan.net.uk] `-- Extracting perl5-5.36.3_1: .......... done [pkg-builder.dan.net.uk] `-- Installing xorg-cf-files-1.0.8_1... [pkg-builder.dan.net.uk] `-- Extracting xorg-cf-files-1.0.8_1: .......... done [pkg-builder.dan.net.uk] Extracting imake-1.0.10_1,1: .......... done ===> xdeblock-1.0_3 depends on executable: imake - found ===> Returning to build of xdeblock-1.0_3 ===> xdeblock-1.0_3 depends on executable: tradcpp - not found ===> Installing existing package /packages/All/tradcpp-0.5.3.pkg [pkg-builder.dan.net.uk] Installing tradcpp-0.5.3... [pkg-builder.dan.net.uk] Extracting tradcpp-0.5.3: .. done ===> xdeblock-1.0_3 depends on executable: tradcpp - found ===> Returning to build of xdeblock-1.0_3 ===> xdeblock-1.0_3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found ===> Installing existing package /packages/All/libXpm-3.5.17_1.pkg [pkg-builder.dan.net.uk] Installing libXpm-3.5.17_1... [pkg-builder.dan.net.uk] `-- Installing gettext-runtime-0.22.3_1... [pkg-builder.dan.net.uk] | `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] | `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] `-- Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] | `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] | `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] `-- Extracting libX11-1.8.7_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXext-1.3.6,1... [pkg-builder.dan.net.uk] `-- Extracting libXext-1.3.6,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXt-1.3.0,1... [pkg-builder.dan.net.uk] | `-- Installing libICE-1.1.0_2,1... [pkg-builder.dan.net.uk] | `-- Extracting libICE-1.1.0_2,1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libSM-1.2.3_1,1... [pkg-builder.dan.net.uk] | `-- Extracting libSM-1.2.3_1,1: ........ done [pkg-builder.dan.net.uk] `-- Extracting libXt-1.3.0,1: .......... done [pkg-builder.dan.net.uk] Extracting libXpm-3.5.17_1: .......... done ===> xdeblock-1.0_3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of xdeblock-1.0_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for xdeblock-1.0_3 mv -f Makefile Makefile.bak imake -DUseInstalled -I/usr/local/lib/X11/config make Makefiles make includes make depend =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for xdeblock-1.0_3 cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c main.c -o main.o main.c:59:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ main.c:59:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ main.c:69:10: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.dirname, "/usr/local/lib/X11/xdeblock/mapf"); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:91:11: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.dirname,argv[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:112:11: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,argv[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:113:8: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] if(!loadMapData(False)) ^ main.c:118:4: warning: implicit declaration of function 'clearHiScore' is invalid in C99 [-Wimplicit-function-declaration] clearHiScore(); ^ main.c:126:11: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,argv[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:127:8: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] if(!loadMapData(False)) ^ main.c:133:4: warning: implicit declaration of function 'saveMapText' is invalid in C99 [-Wimplicit-function-declaration] saveMapText(); ^ main.c:141:11: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,argv[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:142:8: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] if(!loadMapData(False)) ^ main.c:148:4: warning: implicit declaration of function 'fileUpData' is invalid in C99 [-Wimplicit-function-declaration] fileUpData(); ^ main.c:160:11: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,argv[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:315:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.playerName,getenv("USER")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:326:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ main.c:326:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ main.c:343:7: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,300,95, ^ main.c:349:4: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&box,250,130+(45*i),24,24); ^ main.c:350:4: warning: implicit declaration of function 'serveItem' is invalid in C99 [-Wimplicit-function-declaration] serveItem(&box,num); ^ main.c:360:7: warning: implicit declaration of function 'gameMain' is invalid in C99 [-Wimplicit-function-declaration] gameMain(); ^ main.c:369:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ main.c:384:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"title back"); ^ main.c:389:3: warning: implicit declaration of function 'putBackPattarn' is invalid in C99 [-Wimplicit-function-declaration] putBackPattarn(offPixmap,dWinWidth,dWinHeight,303); ^ main.c:401:46: warning: passing 'unsigned char[2124]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,x_bits,x_width,x_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:408:46: warning: passing 'unsigned char[670]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,d_bits,d_width,d_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:415:46: warning: passing 'unsigned char[336]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,e_bits,e_width,e_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:422:46: warning: passing 'unsigned char[670]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,b_bits,b_width,b_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:429:46: warning: passing 'unsigned char[335]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,l_bits,l_width,l_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:436:46: warning: passing 'unsigned char[384]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,o_bits,o_width,o_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:443:46: warning: passing 'unsigned char[336]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,c_bits,c_width,c_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:450:46: warning: passing 'unsigned char[603]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tPix = XCreateBitmapFromData(display,mWin,k_bits,k_width,k_height); ^~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:455:7: warning: implicit declaration of function 'drawWithMask' is invalid in C99 [-Wimplicit-function-declaration] drawWithMask(display,offPixmap,tempXpm,tempXpmMs,x+10,y+10,pic_x,pic_y); ^ main.c:470:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,offPixmap,170,360, ^ main.c:473:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,offPixmap,170,420, ^ main.c:518:7: warning: implicit declaration of function 'drawWithMask' is invalid in C99 [-Wimplicit-function-declaration] drawWithMask(display,offPixmap,tempXpm,tempXpmMs,54+105*i,480,96,48); ^ main.c:529:13: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ main.c:529:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ main.c:537:6: warning: implicit declaration of function 'disposeItem' is invalid in C99 [-Wimplicit-function-declaration] disposeItem(iNum,i); ^ main.c:555:7: warning: implicit declaration of function 'drawItem' is invalid in C99 [-Wimplicit-function-declaration] drawItem(iNum); ^ main.c:558:3: warning: implicit declaration of function 'gameSleep' is invalid in C99 [-Wimplicit-function-declaration] gameSleep(display,10); ^ main.c:559:3: warning: implicit declaration of function 'countTime' is invalid in C99 [-Wimplicit-function-declaration] countTime(); ^ main.c:582:7: warning: implicit declaration of function 'gameMain' is invalid in C99 [-Wimplicit-function-declaration] gameMain(); ^ main.c:597:7: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] loadMapData(True); ^ main.c:601:7: warning: implicit declaration of function 'nameInputDLG' is invalid in C99 [-Wimplicit-function-declaration] nameInputDLG(); ^ main.c:608:7: warning: implicit declaration of function 'hiScoreDLG' is invalid in C99 [-Wimplicit-function-declaration] hiScoreDLG(); ^ main.c:616:7: warning: implicit declaration of function 'aboutDLG' is invalid in C99 [-Wimplicit-function-declaration] aboutDLG(); ^ main.c:632:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ main.c:638:7: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&buttonRect,54 +105*i,480,96,48); ^ main.c:639:10: warning: implicit declaration of function 'ptInRect' is invalid in C99 [-Wimplicit-function-declaration] if(ptInRect(&buttonRect,x,y)) ^ main.c:664:6: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&buttonRect,54+105*nowDataRec.nowBar.nowAct,480,96,48); ^ main.c:665:6: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&buttonRect); ^ main.c:674:2: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&buttonRect,54+105*nowDataRec.nowBar.nowAct,480,96,48); ^ main.c:675:2: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&buttonRect); ^ main.c:669:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ main.c:734:3: warning: implicit declaration of function 'drawBack_Offs' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Offs(event->x,event->y,event->width,event->height); ^ main.c:742:5: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,310,420, ^ main.c:764:15: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowfile,nowDataRec.nowMap.dirname); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:764:23: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowfile,nowDataRec.nowMap.dirname); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:765:15: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(nowfile,"/"); ^~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ main.c:766:15: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(nowfile,nowDataRec.nowMap.filename); ^~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ main.c:766:23: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(nowfile,nowDataRec.nowMap.filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ main.c:767:15: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,nowfile); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:767:42: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,nowfile); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ main.c:770:8: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] if(!loadMapData(False)) ^ main.c:782:4: warning: implicit declaration of function 'gameMain' is invalid in C99 [-Wimplicit-function-declaration] gameMain(); ^ main.c:801:12: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XExposeEvent *' [-Wincompatible-pointer-types] reDraw(&event); ^~~~~~ main.c:809:32: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] if(handleTitleMouseRelease(&event)) ^~~~~~ main.c:822:26: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] handleTitleMouseDown(&event); ^~~~~~ main.c:829:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XPointerMovedEvent *' (aka 'XMotionEvent *') [-Wincompatible-pointer-types] handleTitleMouseMotion(&event); ^~~~~~ main.c:858:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ main.c:858:1: note: change return type to 'int' void main(argc,argv) ^~~~ int main.c:871:3: warning: implicit declaration of function 'initItemPix' is invalid in C99 [-Wimplicit-function-declaration] initItemPix(); ^ main.c:872:3: warning: implicit declaration of function 'initBlockPix' is invalid in C99 [-Wimplicit-function-declaration] initBlockPix(); ^ main.c:880:3: warning: implicit declaration of function 'freeItem' is invalid in C99 [-Wimplicit-function-declaration] freeItem(); ^ main.c:881:3: warning: implicit declaration of function 'freeBlock' is invalid in C99 [-Wimplicit-function-declaration] freeBlock(); ^ 75 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c misc.c -o misc.o cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c file.c -o file.o file.c:29:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:29:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:38:18: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((fp = fopen(nowDataRec.nowMap.filename,"wb"))==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ file.c:46:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.hiScoreName[i],nowMapFile->hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:46:40: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.hiScoreName[i],nowMapFile->hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:51:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.createrName,nowMapFile->createrName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:51:33: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.createrName,nowMapFile->createrName); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:52:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.clearAllMapText,nowMapFile->clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:52:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.clearAllMapText,nowMapFile->clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:81:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.minTimeName,nowMapFile->stageData[i].minTimeName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:81:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.minTimeName,nowMapFile->stageData[i].minTimeName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:82:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.startText, nowMapFile->stageData[i].startText); ^~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:82:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.startText, nowMapFile->stageData[i].startText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:113:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:113:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:124:18: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((fp = fopen(nowDataRec.nowMap.filename,"rb"))==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ file.c:135:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],xmapHeader.hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:135:41: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],xmapHeader.hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:139:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->createrName,xmapHeader.createrName); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:139:34: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->createrName,xmapHeader.createrName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:140:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->clearAllMapText,xmapHeader.clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:140:38: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->clearAllMapText,xmapHeader.clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:166:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].minTimeName,xmapStages.minTimeName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:166:51: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].minTimeName,xmapStages.minTimeName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:167:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].startText,xmapStages.startText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:167:49: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].startText,xmapStages.startText); ^~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:221:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ file.c:230:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:230:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:238:18: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((fp = fopen(nowDataRec.nowMap.filename,"r"))==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ file.c:246:16: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] txt = strstr(nowDataRec.nowMap.filename,".txt"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:124:26: note: passing argument to parameter here char *strstr(const char *, const char *) __pure; ^ file.c:251:20: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ftake_str(fp,xmapHeader.hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ file.c:252:23: warning: format specifies type 'long *' but the argument has type 'int *' [-Wformat] fscanf(fp,"%ld",&temp[0]); ~~~ ^~~~~~~~ %d file.c:254:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],xmapHeader.hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:254:41: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],xmapHeader.hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:257:16: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ftake_str(fp,xmapHeader.createrName); ^~~~~~~~~~~~~~~~~~~~~~ file.c:258:16: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ftake_str(fp,xmapHeader.clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:260:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->createrName,xmapHeader.createrName); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:260:34: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->createrName,xmapHeader.createrName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:261:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->clearAllMapText,xmapHeader.clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:261:38: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->clearAllMapText,xmapHeader.clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:263:63: warning: format specifies type 'long *' but the argument has type 'int *' [-Wformat] fscanf(fp,"%d %d %d %ld %ld %d ",&temp[0],&temp[1],&temp[2],&temp[3], ~~~ ^~~~~~~~ %d file.c:264:3: warning: format specifies type 'long *' but the argument has type 'int *' [-Wformat] &temp[4],&temp[5]); ^~~~~~~~ file.c:280:52: warning: format specifies type 'long *' but the argument has type 'int *' [-Wformat] &temp[3],&temp[4],&temp[5],&temp[6],&temp[7],&temp[8]); ^~~~~~~~ file.c:292:20: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ftake_str(fp,xmapStages.minTimeName); ^~~~~~~~~~~~~~~~~~~~~~ file.c:293:20: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ftake_str(fp,xmapStages.startText); ^~~~~~~~~~~~~~~~~~~~ file.c:295:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].minTimeName,xmapStages.minTimeName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:295:51: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].minTimeName,xmapStages.minTimeName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:296:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].startText,xmapStages.startText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:296:49: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].startText,xmapStages.startText); ^~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:331:9: warning: implicit declaration of function 'selectFileDLG' is invalid in C99 [-Wimplicit-function-declaration] if(!selectFileDLG()) ^ file.c:340:13: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if(strstr(nowDataRec.nowMap.filename,".mapf")==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:124:26: note: passing argument to parameter here char *strstr(const char *, const char *) __pure; ^ file.c:342:18: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if(strstr(nowDataRec.nowMap.filename,".txt")==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:124:26: note: passing argument to parameter here char *strstr(const char *, const char *) __pure; ^ file.c:352:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:352:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:357:10: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(nowDataRec.nowMap.filename,".txt"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ file.c:359:18: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((fp = fopen(nowDataRec.nowMap.filename,"w"))==NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ file.c:367:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.hiScoreName[i],nowMapFile->hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:367:40: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.hiScoreName[i],nowMapFile->hiScoreName[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:375:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.createrName,nowMapFile->createrName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:375:33: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.createrName,nowMapFile->createrName); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:376:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.clearAllMapText,nowMapFile->clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:376:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapHeader.clearAllMapText,nowMapFile->clearAllMapText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:394:47: warning: format specifies type 'long' but the argument has type 'char' [-Wformat] xmapHeader.allMapNumber,xmapHeader.ballAdd,xmapHeader.timeCount, ^~~~~~~~~~~~~~~~~~~~ file.c:395:4: warning: format specifies type 'long' but the argument has type 'char' [-Wformat] xmapHeader.cpuWait,xmapHeader.setFlgs); ^~~~~~~~~~~~~~~~~~ file.c:416:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.minTimeName,nowMapFile->stageData[i].minTimeName); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:416:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.minTimeName,nowMapFile->stageData[i].minTimeName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:417:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.startText, nowMapFile->stageData[i].startText); ^~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:417:37: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(xmapStages.startText, nowMapFile->stageData[i].startText); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:443:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:443:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ file.c:449:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],"pochi"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:464:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[j].startText,"let's play :-)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:468:4: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&nowMapFile->stageData[j].blockData[i].nowRect, ^ file.c:503:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->clearAllMapText,"you are great !!"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:504:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->createrName,"oku"); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:511:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register j; ~~~~~~~~ ^ file.c:513:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ file.c:523:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[j].startText,"Let's play XDeBlock !!"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:527:7: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&nowMapFile->stageData[j].blockData[i].nowRect, ^ file.c:541:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,num; ~~~~~~~~ ^ file.c:541:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,num; ~~~~~~~~ ^ file.c:541:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,num; ~~~~~~~~ ^ file.c:555:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ file.c:559:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],"pochi"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:567:14: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[i].minTimeName,"pochi"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 86 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c dialog.c -o dialog.o dialog.c:35:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:35:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:63:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"AboutDLG back"); ^ dialog.c:66:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,aboutWin,20,260,"XDeBlock ver.1.0",blue.pixel,True); ^ dialog.c:76:4: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ dialog.c:82:11: warning: implicit declaration of function 'handleHiScoreButton' is invalid in C99 [-Wimplicit-function-declaration] flg = !handleHiScoreButton(&event); ^ dialog.c:176:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,win,10,10, ^ dialog.c:179:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,win,20,120, ^ dialog.c:185:15: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name,nowDataRec.nowMap.playerName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:193:3: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,win,x,70,"|",white.pixel); ^ dialog.c:199:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:199:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:231:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"inputnameDLG back"); ^ dialog.c:238:27: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] draw_inputname(inputWin,name,&num); ^~~~ dialog.c:250:28: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] draw_inputname(inputWin,name,&num); ^~~~ dialog.c:251:4: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ dialog.c:255:27: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] if(handleHiScoreButton(&event) == 1) ^~~~~~ dialog.c:257:15: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.playerName,name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:257:44: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.playerName,name); ^~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:260:32: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] else if(handleHiScoreButton(&event) == 3) ^~~~~~ dialog.c:265:26: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] flg = !handleInputKey(&event,name,&num); ^~~~~~ dialog.c:265:33: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] flg = !handleInputKey(&event,name,&num); ^~~~ dialog.c:269:4: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,inputWin,x,70,name,blue.pixel); ^ dialog.c:271:38: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] x += XTextWidth(xfont,name,strlen(name)); ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ dialog.c:271:26: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] x += XTextWidth(xfont,name,strlen(name)); ^~~~ /usr/local/include/X11/Xlib.h:3450:31: note: passing argument to parameter here _Xconst char* /* string */, ^ dialog.c:272:4: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,inputWin,x,70,"|",white.pixel); ^ dialog.c:278:10: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.playerName,name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:278:39: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.playerName,name); ^~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:294:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:294:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:301:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,win,70,15, ^ dialog.c:311:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,win,100,440, ^ dialog.c:324:15: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(tempBuf,"%d",i+1); ^~~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ dialog.c:333:15: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(tempBuf,"%d",num); ^~~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ dialog.c:342:12: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(tempBuf,"%d",num); ^~~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ dialog.c:352:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:352:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j; ~~~~~~~~ ^ dialog.c:380:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"hiscoreDLG back"); ^ dialog.c:396:7: warning: implicit declaration of function 'countTime' is invalid in C99 [-Wimplicit-function-declaration] countTime(); ^ dialog.c:403:4: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ dialog.c:407:31: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] flg = !handleHiScoreButton(&event); ^~~~~~ dialog.c:436:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i = 0; ~~~~~~~~ ^ dialog.c:458:11: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(fname[i],dir->d_name); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:469:11: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(fname[i],newname); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:490:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:490:18: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:490:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:497:6: warning: implicit declaration of function 'setRect' is invalid in C99 [-Wimplicit-function-declaration] setRect(&box,18 +210*k,68 +40*j,200,35); ^ dialog.c:499:9: warning: implicit declaration of function 'ptInRect' is invalid in C99 [-Wimplicit-function-declaration] if(ptInRect(&box,x,y)) ^ dialog.c:513:7: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,win,20 +210*k ,70 +40*j,fname[*num], ^ dialog.c:565:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:565:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:565:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:570:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,win,150,20, ^ dialog.c:573:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,win,150,460, ^ dialog.c:587:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:587:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:587:21: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k; ~~~~~~~~ ^ dialog.c:617:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"selectmapDLG back"); ^ dialog.c:627:20: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(now_dir,nowDataRec.nowMap.dirname); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:644:4: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ dialog.c:648:47: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] handleMapButton(selectWin,fname,fflag,&num,&event); ^~~~~~ dialog.c:662:12: warning: passing 'str255' (aka 'unsigned char[256]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowDataRec.nowMap.filename,now_dir); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ dialog.c:671:47: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XPointerMovedEvent *' (aka 'XMotionEvent *') [-Wincompatible-pointer-types] handleMapMotion(selectWin,fname,fflag,&num,&event); ^~~~~~ 64 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gamemain.c -o gamemain.o gamemain.c:27:13: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,tempScore; ~~~~~~~~ ^ gamemain.c:27:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,tempScore; ~~~~~~~~ ^ gamemain.c:27:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,tempScore; ~~~~~~~~ ^ gamemain.c:38:15: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[j+1],nowMapFile->hiScoreName[j]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:38:44: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[j+1],nowMapFile->hiScoreName[j]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:48:11: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],nowDataRec.nowMap.playerName); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:48:38: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->hiScoreName[i],nowDataRec.nowMap.playerName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:57:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gamemain.c:66:3: warning: implicit declaration of function 'hiScoreDLG' is invalid in C99 [-Wimplicit-function-declaration] hiScoreDLG(); ^ gamemain.c:69:5: warning: implicit declaration of function 'fileUpData' is invalid in C99 [-Wimplicit-function-declaration] fileUpData(); ^ gamemain.c:80:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register hig,wid,i; ~~~~~~~~ ^ gamemain.c:80:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register hig,wid,i; ~~~~~~~~ ^ gamemain.c:80:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register hig,wid,i; ~~~~~~~~ ^ gamemain.c:100:3: warning: implicit declaration of function 'drawUpData' is invalid in C99 [-Wimplicit-function-declaration] drawUpData(); ^ gamemain.c:101:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,200,250, ^ gamemain.c:110:6: warning: implicit declaration of function 'ptInRect' is invalid in C99 [-Wimplicit-function-declaration] if(ptInRect(&nowDataRec.nowBar.nowRect,event->x,event->y)) ^ gamemain.c:120:7: warning: implicit declaration of function 'drawUpData' is invalid in C99 [-Wimplicit-function-declaration] drawUpData(); ^ gamemain.c:121:7: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gamemain.c:136:7: warning: implicit declaration of function 'drawUpData' is invalid in C99 [-Wimplicit-function-declaration] drawUpData(); ^ gamemain.c:137:7: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gamemain.c:166:3: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gamemain.c:184:8: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ gamemain.c:193:25: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] handlePauseMouse(&event); ^~~~~~ gamemain.c:200:23: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] handlePauseKey(&event); ^~~~~~ gamemain.c:244:7: warning: implicit declaration of function 'serveBall' is invalid in C99 [-Wimplicit-function-declaration] serveBall(); ^ gamemain.c:248:7: warning: implicit declaration of function 'drawUpData' is invalid in C99 [-Wimplicit-function-declaration] drawUpData(); ^ gamemain.c:303:4: warning: implicit declaration of function 'reDraw' is invalid in C99 [-Wimplicit-function-declaration] reDraw(&event); ^ gamemain.c:304:4: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gamemain.c:306:4: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gamemain.c:307:4: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gamemain.c:308:4: warning: implicit declaration of function 'statStageDraw' is invalid in C99 [-Wimplicit-function-declaration] statStageDraw(); ^ gamemain.c:309:4: warning: implicit declaration of function 'statTimeDraw' is invalid in C99 [-Wimplicit-function-declaration] statTimeDraw(); ^ gamemain.c:330:18: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] handleGameKey(&event); ^~~~~~ gamemain.c:343:24: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonEvent *' [-Wincompatible-pointer-types] handleGameMouseDown(&event); ^~~~~~ gamemain.c:351:19: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XPointerMovedEvent *' (aka 'XMotionEvent *') [-Wincompatible-pointer-types] takeMousePoint(&event); ^~~~~~ gamemain.c:371:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,flg; ~~~~~~~~ ^ gamemain.c:371:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,flg; ~~~~~~~~ ^ gamemain.c:371:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,flg; ~~~~~~~~ ^ gamemain.c:385:4: warning: implicit declaration of function 'serveBall' is invalid in C99 [-Wimplicit-function-declaration] serveBall(); ^ gamemain.c:455:7: warning: implicit declaration of function 'serveBall' is invalid in C99 [-Wimplicit-function-declaration] serveBall(); ^ gamemain.c:520:2: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gamemain.c:524:7: warning: implicit declaration of function 'moveAndCheckBall' is invalid in C99 [-Wimplicit-function-declaration] moveAndCheckBall(); ^ gamemain.c:528:7: warning: implicit declaration of function 'touchBallCheckBlock' is invalid in C99 [-Wimplicit-function-declaration] touchBallCheckBlock(); ^ gamemain.c:533:7: warning: implicit declaration of function 'moveAndCheckItem' is invalid in C99 [-Wimplicit-function-declaration] moveAndCheckItem(); ^ gamemain.c:542:4: warning: implicit declaration of function 'statTimeDraw' is invalid in C99 [-Wimplicit-function-declaration] statTimeDraw(); ^ gamemain.c:547:7: warning: implicit declaration of function 'gameSleep' is invalid in C99 [-Wimplicit-function-declaration] gameSleep(display,nowDataRec.nowMap.gameSpeed); ^ gamemain.c:553:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register stg; ~~~~~~~~ ^ gamemain.c:555:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gamemain.c:575:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gamemain.c:631:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ gamemain.c:631:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ gamemain.c:645:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ gamemain.c:645:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ gamemain.c:654:2: warning: implicit declaration of function 'disposeItem' is invalid in C99 [-Wimplicit-function-declaration] disposeItem(iNum,i); ^ gamemain.c:661:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ gamemain.c:661:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,iNum; ~~~~~~~~ ^ gamemain.c:703:2: warning: implicit declaration of function 'disposeItem' is invalid in C99 [-Wimplicit-function-declaration] disposeItem(iNum,i); ^ gamemain.c:721:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,saveBall,countBall; ~~~~~~~~ ^ gamemain.c:721:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,saveBall,countBall; ~~~~~~~~ ^ gamemain.c:721:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,saveBall,countBall; ~~~~~~~~ ^ gamemain.c:721:18: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,saveBall,countBall; ~~~~~~~~ ^ gamemain.c:721:27: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,saveBall,countBall; ~~~~~~~~ ^ gamemain.c:728:7: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&nowDataRec.nowBall[j].nowRect); ^ gamemain.c:729:7: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gamemain.c:731:7: warning: implicit declaration of function 'gameSleep' is invalid in C99 [-Wimplicit-function-declaration] gameSleep(display,2500); ^ gamemain.c:744:7: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gamemain.c:745:7: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gamemain.c:747:7: warning: implicit declaration of function 'gameSleep' is invalid in C99 [-Wimplicit-function-declaration] gameSleep(display,4000); ^ gamemain.c:757:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ gamemain.c:757:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,num; ~~~~~~~~ ^ gamemain.c:767:14: warning: implicit declaration of function 'time2long' is invalid in C99 [-Wimplicit-function-declaration] time = time2long(&nowDataRec.nowMap.nowTime); ^ gamemain.c:773:11: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(nowMapFile->stageData[num].minTimeName, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:774:4: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] nowDataRec.nowMap.playerName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ gamemain.c:779:4: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,135,300, ^ gamemain.c:796:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempNum,_maps,i,x; ~~~~~~~~ ^ gamemain.c:796:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempNum,_maps,i,x; ~~~~~~~~ ^ gamemain.c:796:26: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempNum,_maps,i,x; ~~~~~~~~ ^ gamemain.c:796:28: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempNum,_maps,i,x; ~~~~~~~~ ^ gamemain.c:805:7: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,120,300, ^ gamemain.c:813:7: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,x,300, ^ gamemain.c:817:16: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strlen(nowMapFile->stageData[_maps].minTimeName)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ gamemain.c:816:29: warning: passing 'str32' (aka 'unsigned char[33]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] x += XTextWidth(xfont,nowMapFile->stageData[_maps].minTimeName, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/X11/Xlib.h:3450:31: note: passing argument to parameter here _Xconst char* /* string */, ^ gamemain.c:822:7: warning: implicit declaration of function 'long2time' is invalid in C99 [-Wimplicit-function-declaration] long2time(nowMapFile->stageData[_maps].minTime,&time); ^ gamemain.c:825:25: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sprintf(text,"%d",time.tv_sec); ~~ ^~~~~~~~~~~ %ld gamemain.c:833:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(text,"%d",time.tv_usec/1000); ~~ ^~~~~~~~~~~~~~~~~ %ld gamemain.c:843:3: warning: implicit declaration of function 'drawShadowText' is invalid in C99 [-Wimplicit-function-declaration] drawShadowText(display,mWin,120,500, ^ gamemain.c:855:9: warning: implicit declaration of function 'loadMapData' is invalid in C99 [-Wimplicit-function-declaration] if(!loadMapData(True)) ^ gamemain.c:859:5: warning: implicit declaration of function 'nameInputDLG' is invalid in C99 [-Wimplicit-function-declaration] nameInputDLG(); ^ gamemain.c:868:7: warning: implicit declaration of function 'backPicSet' is invalid in C99 [-Wimplicit-function-declaration] backPicSet(); ^ gamemain.c:872:7: warning: implicit declaration of function 'statStageDraw' is invalid in C99 [-Wimplicit-function-declaration] statStageDraw(); ^ gamemain.c:873:7: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gamemain.c:874:7: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ 92 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gameball.c -o gameball.o gameball.c:34:7: warning: implicit declaration of function 'stringDrawUpData' is invalid in C99 [-Wimplicit-function-declaration] stringDrawUpData(); ^ gameball.c:47:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,mvMax; ~~~~~~~~ ^ gameball.c:47:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,mvMax; ~~~~~~~~ ^ gameball.c:57:7: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gameball.c:88:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameball.c:90:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempx,barWid; ~~~~~~~~ ^ gameball.c:90:18: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempx,barWid; ~~~~~~~~ ^ gameball.c:153:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameball.c:211:4: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&nowDataRec.nowBar.nowRect); ^ gameball.c:213:4: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gameball.c:225:7: warning: implicit declaration of function 'openingString' is invalid in C99 [-Wimplicit-function-declaration] openingString(); ^ gameball.c:231:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,boxNum; ~~~~~~~~ ^ gameball.c:231:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,boxNum; ~~~~~~~~ ^ gameball.c:253:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,maxNum; ~~~~~~~~ ^ gameball.c:253:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,maxNum; ~~~~~~~~ ^ gameball.c:253:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,maxNum; ~~~~~~~~ ^ gameball.c:271:7: warning: implicit declaration of function 'drawBall' is invalid in C99 [-Wimplicit-function-declaration] drawBall(i); ^ 17 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gameblock.c -o gameblock.o gameblock.c:31:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,ball; ~~~~~~~~ ^ gameblock.c:31:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,ball; ~~~~~~~~ ^ gameblock.c:33:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameblock.c:42:3: warning: implicit declaration of function 'serveBall' is invalid in C99 [-Wimplicit-function-declaration] serveBall(); ^ gameblock.c:59:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum; ~~~~~~~~ ^ gameblock.c:61:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameblock.c:71:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum; ~~~~~~~~ ^ gameblock.c:71:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum; ~~~~~~~~ ^ gameblock.c:73:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:73:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:73:27: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:110:8: warning: implicit declaration of function 'drawOff_Pic' is invalid in C99 [-Wimplicit-function-declaration] drawOff_Pic(&nowDataRec.nowBlock[i].nowRect); ^ gameblock.c:115:8: warning: implicit declaration of function 'drawBack_Pic' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Pic(&nowDataRec.nowBlock[i].nowRect); ^ gameblock.c:120:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,where; ~~~~~~~~ ^ gameblock.c:120:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,where; ~~~~~~~~ ^ gameblock.c:120:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,where; ~~~~~~~~ ^ gameblock.c:122:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:122:24: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:122:32: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloTop,bloLeft,i; ~~~~~~~~ ^ gameblock.c:204:3: warning: implicit declaration of function 'drawOff_Blo' is invalid in C99 [-Wimplicit-function-declaration] drawOff_Blo(&box,&nowDataRec.nowBlock[bloNum].nowRect, ^ gameblock.c:210:3: warning: implicit declaration of function 'drawBack_Pic' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Pic(&box); ^ gameblock.c:211:3: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&nowDataRec.nowBlock[bloNum].nowRect); ^ gameblock.c:217:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,score; ~~~~~~~~ ^ gameblock.c:217:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,score; ~~~~~~~~ ^ gameblock.c:217:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register bloNum,balNum,score; ~~~~~~~~ ^ gameblock.c:219:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,bloMax; ~~~~~~~~ ^ gameblock.c:219:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,bloMax; ~~~~~~~~ ^ gameblock.c:220:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp; ~~~~~~~~ ^ gameblock.c:227:3: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gameblock.c:266:7: warning: implicit declaration of function 'drawOff_Pic' is invalid in C99 [-Wimplicit-function-declaration] drawOff_Pic(&nowDataRec.nowBlock[bloNum].nowRect); ^ gameblock.c:270:7: warning: implicit declaration of function 'drawBack_Pic' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Pic(&nowDataRec.nowBlock[bloNum].nowRect); ^ gameblock.c:289:7: warning: implicit declaration of function 'randomItem' is invalid in C99 [-Wimplicit-function-declaration] randomItem(bloNum); ^ gameblock.c:295:3: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&nowDataRec.nowBlock[bloNum].nowRect); ^ gameblock.c:298:3: warning: implicit declaration of function 'drawMiniText' is invalid in C99 [-Wimplicit-function-declaration] drawMiniText(display,mWin, ^ gameblock.c:313:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:313:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:315:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:315:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:315:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:329:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:329:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:332:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempLengh,x_slant,y_slant; ~~~~~~~~ ^ gameblock.c:332:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempLengh,x_slant,y_slant; ~~~~~~~~ ^ gameblock.c:332:30: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempLengh,x_slant,y_slant; ~~~~~~~~ ^ gameblock.c:353:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:353:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:384:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:384:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:386:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:386:21: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:386:28: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh; ~~~~~~~~ ^ gameblock.c:401:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:401:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:472:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:472:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:546:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:546:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:548:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:548:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:548:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:548:39: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:548:46: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:638:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:638:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:711:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:711:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:713:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:713:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:713:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:713:39: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:713:46: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp_y,temp_x,tempLengh,x_axis,y_axis; ~~~~~~~~ ^ gameblock.c:812:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:812:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:892:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:892:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:943:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:943:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:994:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:994:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:1043:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:1043:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register balNum,bloNum; ~~~~~~~~ ^ gameblock.c:1186:4: warning: implicit declaration of function 'randomItem' is invalid in C99 [-Wimplicit-function-declaration] randomItem(bloNum); ^ 82 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gamedraw.c -o gamedraw.o gamedraw.c:192:5: warning: implicit declaration of function 'drawWithMask' is invalid in C99 [-Wimplicit-function-declaration] drawWithMask(display,offPixmap,bloPm[px_id],bloMPm[px_id], ^ gamedraw.c:215:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gamedraw.c:232:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum; ~~~~~~~~ ^ gamedraw.c:234:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register tempLengh; ~~~~~~~~ ^ gamedraw.c:273:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"init bloPm[0]"); ^ gamedraw.c:611:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gamedraw.c:622:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,bloMax; ~~~~~~~~ ^ gamedraw.c:622:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,bloMax; ~~~~~~~~ ^ gamedraw.c:631:4: warning: implicit declaration of function 'drawWithMask' is invalid in C99 [-Wimplicit-function-declaration] drawWithMask(display,offPixmap, ^ gamedraw.c:638:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ gamedraw.c:663:3: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gamedraw.c:664:3: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gamedraw.c:665:3: warning: implicit declaration of function 'statStageDraw' is invalid in C99 [-Wimplicit-function-declaration] statStageDraw(); ^ gamedraw.c:666:3: warning: implicit declaration of function 'statTimeDraw' is invalid in C99 [-Wimplicit-function-declaration] statTimeDraw(); ^ gamedraw.c:688:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register x,y; ~~~~~~~~ ^ gamedraw.c:688:21: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register x,y; ~~~~~~~~ ^ gamedraw.c:700:7: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"init backpic pato"); ^ gamedraw.c:807:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register x,y; ~~~~~~~~ ^ gamedraw.c:807:21: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register x,y; ~~~~~~~~ ^ gamedraw.c:826:7: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"init wall"); ^ 20 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gameitems.c -o gameitems.o gameitems.c:60:3: warning: implicit declaration of function 'handleXPMError' is invalid in C99 [-Wimplicit-function-declaration] handleXPMError(err,"init item[1]"); ^ gameitems.c:118:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameitems.c:127:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box,itemMax; ~~~~~~~~ ^ gameitems.c:127:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box,itemMax; ~~~~~~~~ ^ gameitems.c:127:21: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box,itemMax; ~~~~~~~~ ^ gameitems.c:142:7: warning: implicit declaration of function 'drawItem' is invalid in C99 [-Wimplicit-function-declaration] drawItem(iNum); ^ gameitems.c:146:10: warning: implicit declaration of function 'touchBarCheckItem' is invalid in C99 [-Wimplicit-function-declaration] if(touchBarCheckItem(iNum,box)) ^ gameitems.c:151:10: warning: implicit declaration of function 'lostCheckItem' is invalid in C99 [-Wimplicit-function-declaration] if(lostCheckItem(iNum,box)) ^ gameitems.c:160:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:160:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:162:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register itemRight,barRight; ~~~~~~~~ ^ gameitems.c:162:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register itemRight,barRight; ~~~~~~~~ ^ gameitems.c:172:6: warning: implicit declaration of function 'drawBack_Off' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Off(&nowDataRec.nowItem[iNum].nowRect); ^ gameitems.c:173:6: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gameitems.c:187:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:187:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:197:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:197:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register iNum,box; ~~~~~~~~ ^ gameitems.c:210:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register kind; ~~~~~~~~ ^ gameitems.c:212:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ gameitems.c:296:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register k; ~~~~~~~~ ^ gameitems.c:298:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register temp; ~~~~~~~~ ^ gameitems.c:301:10: warning: implicit declaration of function 'g_random' is invalid in C99 [-Wimplicit-function-declaration] temp = g_random(); ^ gameitems.c:332:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ gameitems.c:364:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register itemNum; ~~~~~~~~ ^ gameitems.c:366:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,num; ~~~~~~~~ ^ gameitems.c:366:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,num; ~~~~~~~~ ^ gameitems.c:366:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,num; ~~~~~~~~ ^ gameitems.c:366:18: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i,j,k,num; ~~~~~~~~ ^ gameitems.c:372:7: warning: implicit declaration of function 'statScoreDraw' is invalid in C99 [-Wimplicit-function-declaration] statScoreDraw(); ^ gameitems.c:396:7: warning: implicit declaration of function 'touchWallCheckBar' is invalid in C99 [-Wimplicit-function-declaration] touchWallCheckBar(); ^ gameitems.c:397:7: warning: implicit declaration of function 'drawBar' is invalid in C99 [-Wimplicit-function-declaration] drawBar(); ^ gameitems.c:426:7: warning: implicit declaration of function 'statBallDraw' is invalid in C99 [-Wimplicit-function-declaration] statBallDraw(); ^ gameitems.c:448:4: warning: implicit declaration of function 'serveBall' is invalid in C99 [-Wimplicit-function-declaration] serveBall(); ^ gameitems.c:495:7: warning: implicit declaration of function 'g_random' is invalid in C99 [-Wimplicit-function-declaration] if(g_random() >0) ^ 35 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/local/include/X11 -I/usr/local/include -c gamestat.c -o gamestat.o gamestat.c:31:3: warning: implicit declaration of function 'drawBack_Offs' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Offs(702,360,120,60); ^ gamestat.c:33:21: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(text,"%d",nowDataRec.nowMap.myScore); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %ld gamestat.c:34:3: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,mWin,712,380,text,black.pixel); ^ gamestat.c:44:3: warning: implicit declaration of function 'drawBack_Offs' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Offs(777,240,45,60); ^ gamestat.c:47:3: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,mWin,787,260,text,black.pixel); ^ gamestat.c:55:3: warning: implicit declaration of function 'drawBack_Offs' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Offs(777,180,45,60); ^ gamestat.c:58:3: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,mWin,787,195,text,black.pixel); ^ gamestat.c:68:3: warning: implicit declaration of function 'drawBack_Offs' is invalid in C99 [-Wimplicit-function-declaration] drawBack_Offs(702,480,120,60); ^ gamestat.c:73:21: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] sprintf(text,"%d",tempNum); ~~ ^~~~~~~ %lu gamestat.c:74:3: warning: implicit declaration of function 'drawText' is invalid in C99 [-Wimplicit-function-declaration] drawText(display,mWin,x,495,text,black.pixel); ^ gamestat.c:83:21: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] sprintf(text,"%d",tempNum); ~~ ^~~~~~~ %lu 11 warnings generated. cc main.o misc.o file.o dialog.o gamemain.o gameball.o gameblock.o gamedraw.o gameitems.o gamestat.o -o xdeblo -lX11 -L/usr/local/lib -lXpm -lXext -lX11 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> xdeblock-1.0_3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for xdeblock-1.0_3 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/games/xdeblock/work/xdeblo_v1.0/xdeblo /wrkdirs/usr/ports/games/xdeblock/work/stage/usr/local/bin install -m 0644 /wrkdirs/usr/ports/games/xdeblock/work/xdeblo_v1.0/mapf/*.txt /wrkdirs/usr/ports/games/xdeblock/work/stage/usr/local/lib/X11/xdeblock/mapf ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-06T18:37:40+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for xdeblock-1.0_3 ===> Building xdeblock-1.0_3 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for xdeblock-1.0_3 build of games/xdeblock | xdeblock-1.0_3 ended at Sat Apr 6 19:37:55 BST 2024 build time: 00:00:17