=>> Building games/0verkill build started at Fri Apr 5 14:52:40 BST 2024 port directory: /usr/ports/games/0verkill package name: 0verkill-0.16_2 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 1564 Mar 8 2023 /usr/ports/games/0verkill/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: 17 ---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/17/.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--- ===> The following configuration options are available for 0verkill-0.16_2: DOCS=on: Build and/or install documentation X11=on: X11 (graphics) support ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --with-x --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/0verkill/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/0verkill/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/0verkill/work/.cache HOME=/wrkdirs/usr/ports/games/0verkill/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/0verkill/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/0verkill/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/0verkill/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/0verkill/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/0verkill/work/.cache HOME=/wrkdirs/usr/ports/games/0verkill/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/0verkill/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/0verkill/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 -fcommon -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fcommon -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-- PORTDOCS="" DOCS="" NO_DOCS="@comment " X11="" NO_X11="@comment " OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/0verkill" EXAMPLESDIR="share/examples/0verkill" DATADIR="share/0verkill" WWWDIR="www/0verkill" ETCDIR="etc/0verkill" --End PLIST_SUB-- --SUB_LIST-- DOCS="" NO_DOCS="@comment " X11="" NO_X11="@comment " PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/0verkill DOCSDIR=/usr/local/share/doc/0verkill EXAMPLESDIR=/usr/local/share/examples/0verkill WWWDIR=/usr/local/www/0verkill ETCDIR=/usr/local/etc/0verkill --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 0verkill 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 ===> 0verkill-0.16_2 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 ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of 0verkill-0.16_2 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The 0verkill 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 0verkill-0.16_2 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The 0verkill 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 0verkill-0.16_2 for building => SHA256 Checksum OK for 0verkill-0.16.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 0verkill 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 0verkill-0.16_2 for building ===> Extracting for 0verkill-0.16_2 => SHA256 Checksum OK for 0verkill-0.16.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 0verkill-0.16_2 ===> Applying FreeBSD patches for 0verkill-0.16_2 from /usr/ports/games/0verkill/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> 0verkill-0.16_2 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 ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of 0verkill-0.16_2 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for 0verkill-0.16_2 loading site script /usr/ports/Templates/config.site creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong ) works... yes checking whether the C compiler (cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for EMX... no checking for main in -lm... yes checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for fcntl.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for linux/vt.h... no checking for linux/kd.h... no checking for siginfo.h... no checking for float.h... (cached) yes checking for sys/select.h... (cached) yes checking for working const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking whether cc needs -traditional... no checking return type of signal handlers... void checking for gettimeofday... (cached) yes checking for select... (cached) yes checking for strtol... (cached) yes checking for strtoul... (cached) yes checking for getopt... (cached) yes checking for psignal... (cached) yes checking for random... (cached) yes checking for srandom... (cached) yes checking for socket... yes checking for typeof... yes checking for gethostbyname... (cached) yes checking for X... libraries /usr/local/lib, headers /usr/local/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... (cached) yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for main in -lX11... yes checking for main in -lXpm... yes updating cache ./config.cache creating ./config.status creating Makefile creating config.h =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for 0verkill-0.16_2 cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c server.c -o server.o In file included from server.c:54: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ server.c:339:21: warning: passing 'unsigned char *' 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 (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ server.c:339:70: warning: passing '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] if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:339:122: warning: passing '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 (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:339:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:339:122: note: treat the string as an argument to avoid this if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:340:14: warning: passing 'unsigned char[1024]' 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] while(fgets(line,1024,stream)) ^~~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ server.c:342:4: warning: assigning to 'char *' from 'unsigned char[1024]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p=line; ^~~~~ server.c:348:64: warning: passing '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] if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:348:112: warning: passing '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 ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:348:112: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:348:112: note: treat the string as an argument to avoid this if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:363:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:363:61: warning: passing '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] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:363:113: warning: passing '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 (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:363:113: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:363:113: note: treat the string as an argument to avoid this if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:376:10: warning: passing 'unsigned char *' 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(txt,"%d",*((unsigned char *)&ip)); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ server.c:378:22: warning: passing 'unsigned char *' 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] sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:378:11: warning: passing 'unsigned char *' 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(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ server.c:398:11: warning: passing 'unsigned char[64]' 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] snprintf(timestamp,64,"%2d.%2d.%d %02d:%02d:%02d ",tm.tm_mday,tm.tm_mon+1,tm.tm_year+1900,tm.tm_hour,tm.tm_min,tm.tm_sec); ^~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:477:12: warning: passing '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] snprintf(msg,256,"Error: Can't bind socket to port %d!\n",port); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:478:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:478:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:478:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:501:10: warning: passing 'unsigned char[32]' 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(txt,"hero%d",num); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ server.c:542:12: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {message("Not enough memory.\n",2);return 1;} ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:543:35: warning: passing 'unsigned char *' 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] cp->member.name=mem_alloc(strlen(name)+1); ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:545:25: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {mem_free(cp);message("Not enough memory.\n",2);return 1;} ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:560:37: warning: passing 'unsigned char *' 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] memcpy(cp->member.name,name,strlen(name)+1); ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:567:52: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {mem_free(cp->member.name);mem_free(cp);message ("No such color.\n",1);return 1;} ^~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:570:51: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {mem_free(cp->member.name);mem_free(cp);message("Can't create object.\n",1);return 1;} ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:889:12: warning: passing 'unsigned char *' 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] l=strlen((t[a])->name)+1; ^~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:908:22: warning: passing 'unsigned char *' 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] if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} ^~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:908:56: warning: passing 'unsigned char *' 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 (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:909:17: warning: passing 'unsigned char *' 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] else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:909:60: warning: passing 'unsigned char *' 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 {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:909:73: warning: passing 'unsigned char *' 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 {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:908:13: warning: 'snprintf' size argument is too large; destination buffer has size 255, but size argument is 256 [-Wfortify-source] if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} ^ server.c:909:8: warning: 'snprintf' size argument is too large; destination buffer has size 255, but size argument is 256 [-Wfortify-source] else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^ server.c:924:22: warning: passing 'unsigned char *' 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] if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ^~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:924:56: warning: passing 'unsigned char *' 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 (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:925:17: warning: passing 'unsigned char *' 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] else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:925:60: warning: passing 'unsigned char *' 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 {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:925:73: warning: passing 'unsigned char *' 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 {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:1155:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return 0; ^ server.c:1153:3: note: previous statement is here if (p->next->member.id==id) ^ server.c:1172:82: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] o=new_obj(id,T_NOISE,NOISE_TTL,noise_sprite,0,0,int2double(x),int2double(y),0,0,(void *)(p->id)); ^~~~~~~~~~~~~~~ server.c:1216:14: warning: passing 'char[30]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Incompatible client version.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:1225:14: warning: passing '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] snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1229:14: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Incompatible client version. Player refused.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:1235:16: warning: passing 'unsigned char *' 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 (strlen(packet+5) > MAX_NAME_LEN) ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:1237:15: warning: passing '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] snprintf(txt,256,"Name too long, shortening it to %i characters\n",MAX_NAME_LEN); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1244:14: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Player refused.\n",2); ^~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:1250:14: warning: passing '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] snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1252:14: warning: passing '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] snprintf(txt,256,"%s entered the game.",packet+5); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1273:14: warning: passing '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] snprintf(txt,256,"There'%s %d %s in the game.",active_players==1?"s":"re",active_players,active_players==1?"player":"players"); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1316:35: warning: passing 'unsigned char *' 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] memcpy(packet+1,p->name,strlen(p->name)+1); ^~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:1317:28: warning: passing 'unsigned char *' 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] sendall(packet,2+strlen(p->name),0); ^~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ server.c:1318:13: warning: passing '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] snprintf(txt,256,"Game terminated by player \"%s\".\n",p->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1330:13: warning: passing '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] snprintf(txt,256,"%s left the game.\n",q->member.name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1334:13: warning: passing '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] snprintf(txt,256,"%s left the game.",q->member.name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1360:13: warning: passing '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] snprintf(txt,256,"%s> %s\n",q->member.name,packet+1); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1365:13: warning: passing '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] snprintf(txt,256,"Unknown packet: head=%d\n",*packet); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1405:10: warning: passing 'unsigned char[32]' 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(txt,"corpse%d",num); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ server.c:1510:47: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got grenades"); ^~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1511:15: warning: passing '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] snprintf(txt,256,"%s got grenades.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1534:47: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got a magazine"); ^~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1535:15: warning: passing '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] snprintf(txt,256,"%s got a magazine.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1558:47: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got shotgun shells"); ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1559:15: warning: passing '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] snprintf(txt,256,"%s got shotgun shells.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1582:47: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got cartridges"); ^~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1583:15: warning: passing '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] snprintf(txt,256,"%s got cartridges.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1606:47: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got ammo for Uzi"); ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1607:15: warning: passing '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] snprintf(txt,256,"%s got Uzi ammo.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1631:47: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got Uzi"); ^~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1632:15: warning: passing '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] snprintf(txt,256,"%s got Uzi.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1656:47: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got sniper rifle"); ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1657:15: warning: passing '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] snprintf(txt,256,"%s got sniper rifle.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1681:47: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got a shotgun"); ^~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1682:15: warning: passing '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] snprintf(txt,256,"%s got a shotgun.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1698:47: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got invisibility dope"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1699:15: warning: passing '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] snprintf(txt,256,"%s got invisibility.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1715:47: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got armor"); ^~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1716:15: warning: passing '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] snprintf(txt,256,"%s got armor.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1732:47: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You picked up a medikit"); ^~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1733:15: warning: passing '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] snprintf(txt,256,"%s picked up a medikit.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1748:47: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(p->data),0,"You killed yourself"); ^~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1749:15: warning: passing '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] snprintf(txt,256,"%s suicides",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1751:15: warning: passing '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] snprintf(txt,256,"%s suicides.\n",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1802:25: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] o=&((find_in_table((int)(obj->data)))->member); /* owner of the bullet */ ^~~~~~~~~~~~~~~~ server.c:1807:48: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_message((struct player*)(o->data),0,"You killed yourself"); ^~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:1808:16: warning: passing '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] snprintf(txt,256,"%s suicides",((struct player*)(o->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1810:16: warning: passing '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] snprintf(txt,256,"%s suicides.\n",((struct player*)(o->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1816:16: warning: passing '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] snprintf(txt,256,"%s killed %s.",((struct player*)(o->data))->name,((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1818:16: warning: passing '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] snprintf(txt,256,"%s killed you",((struct player*)(o->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1820:16: warning: passing '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] snprintf(txt,256,"You killed %s",((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1822:16: warning: passing '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] snprintf(txt,256,"%s killed %s.\n",((struct player*)(o->data))->name,((struct player*)(p->data))->name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:1927:21: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] q=find_player(0,(int)(p->next->member.data)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1954:6: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(p->next->member.id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:2168:11: warning: passing '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] snprintf(txt,256,"Signal %d caught.\n",sig_num); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2253:21: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {send_message(q,0,"No weapon.");return;} ^~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:2255:21: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {send_message(q,0,"Not enough ammo.");return;} ^~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^ server.c:2257:11: warning: passing '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] snprintf(txt,256,"%s takes %s.\n",q->name,weapon[w].name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2293:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2307:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2321:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2335:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2349:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2363:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2377:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2396:5: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2410:5: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] (void *)(q->obj->id)); ^~~~~~~~~~~~~~~~~~~~ server.c:2497:13: warning: passing '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] snprintf(txt,256,"%s not responding. Kicked out of the game.\n",p->next->member.name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2501:13: warning: passing '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] snprintf(txt,256,"%s was kicked out of the game.",p->next->member.name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2643:11: warning: passing '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] snprintf(txt,256,"Running 0verkill server version %d.%d\n",VERSION_MAJOR,VERSION_MINOR); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2649:10: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Initialization.\n",2); ^~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2667:10: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Loading sprites.\n",2); ^~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2668:15: warning: passing 'char[43]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_sprites(DATA_PATH GAME_SPRITES_FILE); /* players, corpses, bullets, ... */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^ ./data.h:147:41: note: passing argument to parameter here extern void load_sprites(unsigned char *); ^ server.c:2669:18: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2669:76: warning: passing '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] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2669:125: warning: passing '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 (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2669:125: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2669:125: note: treat the string as an argument to avoid this if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2670:18: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2670:72: warning: passing '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] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2670:119: warning: passing '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 (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2670:119: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2670:119: note: treat the string as an argument to avoid this if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2671:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2671:74: warning: passing '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] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2671:122: warning: passing '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 (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2671:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2671:122: note: treat the string as an argument to avoid this if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2672:18: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2672:83: warning: passing '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] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2672:132: warning: passing '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 (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2672:132: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2672:132: note: treat the string as an argument to avoid this if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2673:18: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2673:78: warning: passing '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] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2673:128: warning: passing '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 (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2673:128: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2673:128: note: treat the string as an argument to avoid this if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2674:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2674:74: warning: passing '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] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2674:122: warning: passing '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 (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2674:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2674:122: note: treat the string as an argument to avoid this if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2675:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2675:74: warning: passing '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] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2675:122: warning: passing '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 (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2675:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2675:122: note: treat the string as an argument to avoid this if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2676:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2676:74: warning: passing '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] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2676:122: warning: passing '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 (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2676:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2676:122: note: treat the string as an argument to avoid this if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2677:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2677:74: warning: passing '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] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2677:122: warning: passing '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 (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2677:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2677:122: note: treat the string as an argument to avoid this if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2678:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ server.c:2678:74: warning: passing '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] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2678:122: warning: passing '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 (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2678:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2678:122: note: treat the string as an argument to avoid this if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2681:11: warning: passing '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] sprintf(txt,"shrapnel%d",a+1); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ server.c:2682:77: warning: passing '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] if (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2682:126: warning: passing '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 (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ server.c:2682:126: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2682:126: note: treat the string as an argument to avoid this if (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2687:96: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (!LEVEL){char txt[256];snprintf(txt,256,"Can't load level number %d\n",level_number);ERROR(txt);EXIT(1);} ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2687:96: note: treat the string as an argument to avoid this if (!LEVEL){char txt[256];snprintf(txt,256,"Can't load level number %d\n",level_number);ERROR(txt);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ server.c:2688:11: warning: passing '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] snprintf(txt,256,"Loading level \"%s\"....\n",LEVEL); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2690:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2691:10: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Loading level graphics.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2693:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2694:10: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Loading level map.\n",2); ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2696:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ server.c:2697:10: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Loading level objects.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2701:10: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Initializing socket.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2704:10: warning: passing 'char[29]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Installing signal handlers.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2714:10: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Game started.\n",2); ^~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2741:11: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Sleep\n",2); ^~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ server.c:2748:11: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] message("Wakeup\n",2); ^~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here void message(unsigned char *msg,int output) ^ 188 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c data.c -o data.o In file included from data.c:14: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ data.c:77:3: warning: initializing 'unsigned char *' with an expression of type 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {"Browning",16,50,float2double(3*36),float2double(.3*36),20,2,13,12,48,float2double((double).3*36),-float2double(1*36)}, ^~~~~~~~~~ data.c:78:3: warning: initializing 'unsigned char *' with an expression of type 'char[8]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {"Shotgun",25,50,float2double(3*36),float2double(.5*36),10,5,6,12,30,float2double((double).3*36),-float2double((double)1.2*36)}, ^~~~~~~~~ data.c:79:3: warning: initializing 'unsigned char *' with an expression of type 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {"Uzi",3,50,float2double(4*36),float2double(.25*36),15,4,50,50,150,float2double((double).9*36),-float2double((double)1.5*36)}, ^~~~~ data.c:80:3: warning: initializing 'unsigned char *' with an expression of type 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {"Rifle",40,70,float2double(6*36),float2double(.4*36),50,20,1,15,15,0,0}, ^~~~~~~ data.c:81:3: warning: initializing 'unsigned char *' with an expression of type 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] {"Grenades",15,60,float2double((double)3.73*36),0,75,40,0,6,24,float2double(3*36),-float2double((double)1.5*36)} /* shell speed=grenade throwing speed, bullet speed=shrapnel speed */ ^~~~~~~~~~ data.c:126:15: warning: passing 'unsigned char *' 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 (!strcmp(sprite_names[*num],name))return 0; ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ data.c:126:34: warning: passing 'unsigned char *' 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 (!strcmp(sprite_names[*num],name))return 0; ^~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ data.c:196:21: warning: passing 'unsigned char *' 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 (!(stream=fopen(filename,"rb"))) ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ data.c:200:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:200:8: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:215:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:215:8: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:223:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(name,&n)) ^~~~ data.c:123:32: note: passing argument to parameter 'name' here int find_sprite(unsigned char *name,int *num) ^ data.c:227:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:227:8: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:244:15: warning: passing 'unsigned char *' 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] stream=fopen(filename,"rb"); ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ data.c:249:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:249:8: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ data.c:265:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprite_names[n_sprites-1]=(char *)mem_alloc(l+1); ^~~~~~~~~~~~~~~~~~~~~~~ data.c:271:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_sprite(q,sprites+(n_sprites-1)); ^ ./sprite.h:37:40: note: passing argument to parameter here extern void load_sprite(unsigned char *,struct sprite *); ^ data.c:308:15: warning: passing 'unsigned char[1024]' 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] if (!(fgets(txt,1024,f)))return NULL; ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ data.c:311:18: warning: passing 'unsigned char[1024]' 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 (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:311:41: warning: passing 'unsigned char[1024]' 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 (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:312:18: warning: passing 'unsigned char[1024]' 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 (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:312:41: warning: passing 'unsigned char[1024]' 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 (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:314:14: warning: passing 'unsigned char[1024]' 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 (strlen(txt))a++; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:319:11: warning: passing 'unsigned char[1024]' 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] a=strlen(txt); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:323:14: warning: passing 'unsigned char *' 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 (!strlen(retval)){mem_free(retval);return NULL;} ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:591:12: warning: passing 'unsigned char *' 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] q=MD5File(filename,NULL); ^~~~~~~~ ./md5.h:20:35: note: passing argument to parameter here extern char * MD5File(const char *, char *); ^ data.c:591:3: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q=MD5File(filename,NULL); ^~~~~~~~~~~~~~~~~~~~~~~ data.c:592:11: warning: passing 'unsigned char *' 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] a=strlen(q); ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:614:3: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q=load_level(level_num); ^~~~~~~~~~~~~~~~~~~~~~ data.c:617:17: warning: passing 'char[41]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!__add_md5(DATA_PATH LEVEL_FILE,&len,&result)){mem_free(result);return NULL;} ^~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^ data.c:586:41: note: passing argument to parameter 'filename' here unsigned char *__add_md5(unsigned char *filename, int *len, unsigned char**result) ^ data.c:619:11: warning: passing 'unsigned char[2048]' 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] snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); ^ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ data.c:622:11: warning: passing 'unsigned char[2048]' 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] snprintf(p,2048,"%s%s%s",DATA_PATH,q,STATIC_DATA_SUFFIX); ^ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ data.c:625:11: warning: passing 'unsigned char[2048]' 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] snprintf(p,2048,"%s%s%s",DATA_PATH,q,DYNAMIC_DATA_SUFFIX); ^ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ data.c:628:11: warning: passing 'unsigned char[2048]' 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] snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); ^ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ data.c:634:11: warning: passing 'unsigned char[2048]' 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] f=fopen(p,"r"); ^ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ data.c:636:16: warning: passing 'unsigned char[2048]' 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] while (fgets(p,2048,f)) ^ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ data.c:638:17: warning: passing 'unsigned char[2048]' 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 (p[strlen(p)-1]==13)p[strlen(p)-1]=0; ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:638:36: warning: passing 'unsigned char[2048]' 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 (p[strlen(p)-1]==13)p[strlen(p)-1]=0; ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:639:17: warning: passing 'unsigned char[2048]' 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 (p[strlen(p)-1]==10)p[strlen(p)-1]=0; ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:639:36: warning: passing 'unsigned char[2048]' 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 (p[strlen(p)-1]==10)p[strlen(p)-1]=0; ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ data.c:641:5: warning: assigning to 'char *' from 'unsigned char[2048]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q=p; ^~ data.c:646:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!__add_md5(q,&len,&result)){mem_free(result);return NULL;} ^ data.c:586:41: note: passing argument to parameter 'filename' here unsigned char *__add_md5(unsigned char *filename, int *len, unsigned char**result) ^ data.c:653:9: warning: returning 'char *' from a function with result type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return q; ^ 60 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c sprite.c -o sprite.o In file included from sprite.c:16: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ sprite.c:190:16: warning: passing 'unsigned char *' 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 (!(f=fopen(filename,"rb"))) ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ sprite.c:194:16: warning: passing 'unsigned char *' 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 (!(f=fopen(filename,"rb"))) ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ sprite.c:198:16: warning: passing 'unsigned char *' 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 (!(f=fopen(filename,"rb"))) ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ sprite.c:201:12: warning: passing '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] snprintf(msg,256,"Error opening file \"%s\"!\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:202:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:202:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:202:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:205:14: warning: passing 'unsigned char[8192]' 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] while(fgets(buffer,8191,f)) ^~~~~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ sprite.c:207:12: warning: passing 'unsigned char[8192]' 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=strlen(buffer); ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sprite.c:221:14: warning: passing '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] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:222:11: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:222:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:222:11: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:237:33: warning: passing 'unsigned char *' 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] s->positions[CURP].xo=strtol(buffer+1,&p,0); ^~~~~~~~ /usr/include/stdlib.h:117:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ sprite.c:245:14: warning: passing '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] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:246:11: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:246:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:246:11: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:258:46: warning: passing 'unsigned char *' 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] s->positions[CURP].lines[CURL].len=strlen(buffer+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sprite.c:273:14: warning: passing '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] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:274:11: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:274:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:274:11: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:291:13: warning: passing 'unsigned char *' 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=strlen(buffer+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sprite.c:302:14: warning: passing '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] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:303:11: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:303:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:303:11: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:307:9: warning: assigning to 'char *' from 'unsigned char[8192]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) ^~~~~~~ sprite.c:307:18: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) ^~~~~~~~~ sprite.c:314:15: warning: passing '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] snprintf(txt,256,"Error loading sprite \"%s\". Undefined position %d.\n",filename,x); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:315:12: warning: passing '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] ERROR(txt); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:315:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(txt); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:315:12: note: treat the string as an argument to avoid this ERROR(txt); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:333:14: warning: passing '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] snprintf(msg,256,"Syntax error in file \"%s\"!\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:334:11: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:334:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:334:11: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:343:12: warning: passing '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] snprintf(msg,256,"Unexpected end of file in \"%s\".\n",filename); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ sprite.c:344:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:344:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ sprite.c:344:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ 52 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c blit.c -o blit.o In file included from blit.c:12: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ 18 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c console.c -o console.o In file included from console.c:19: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ console.c:209:2: warning: 'snprintf' size argument is too large; destination buffer has size 8, but size argument is 16 [-Wfortify-source] snprintf(txt,16,"\033[%dm",30+(a&7)); ^ 19 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c hash.c -o hash.o In file included from hash.c:9: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ 18 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c time.c -o time.o cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c kbd.c -o kbd.o cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c net.c -o net.o In file included from net.c:14: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ net.c:86:41: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] retval=recvfrom(fd,p,max_len+12,0,addr,addr_len); ^~~~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 19 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c crc32.c -o crc32.o cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5.c -o md5.o cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5hl.c -o md5hl.o In file included from md5hl.c:22: ./error.h:26:23: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] if ((p = malloc(x))) memset(p, 0, x); ^ ./error.h:26:23: note: include the header or explicitly provide a declaration for 'memset' ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ 19 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c error.c -o error.o In file included from error.c:12: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ error.c:82:3: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] p=p; ~^~ error.c:126:19: warning: passing 'unsigned char *' 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] vfprintf(stderr, m, l); ^ /usr/include/stdio.h:291:57: note: passing argument to parameter here int vfprintf(FILE * __restrict, const char * __restrict, ^ error.c:147:10: warning: passing 'unsigned char[4096]' 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(errbuf, "\033[1mINTERNAL ERROR\033[0m at %s:%d: ", errfile, errline); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ error.c:148:9: warning: passing 'unsigned char[4096]' 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(errbuf, m); ^~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ error.c:148:17: warning: passing 'unsigned char *' 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(errbuf, m); ^ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ error.c:157:10: warning: passing 'unsigned char[4096]' 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(errbuf, "DEBUG MESSAGE at %s:%d: ", errfile, errline); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ error.c:158:9: warning: passing 'unsigned char[4096]' 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(errbuf, m); ^~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ error.c:158:17: warning: passing 'unsigned char *' 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(errbuf, m); ^ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ 26 warnings generated. cc -fstack-protector-strong -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o -lm cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c client.c -o client.o In file included from client.c:67: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ client.c:194:11: warning: passing '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] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:198:15: warning: passing '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] stream=fopen(txt,"r"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ client.c:201:13: warning: passing '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] if (!fgets(txt,MAX_HOST_LEN+2,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:203:11: warning: passing '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] a=strlen(txt); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:205:25: warning: passing '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] memcpy(host,txt,strlen(txt)+1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:207:13: warning: passing '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] if (!fgets(txt,MAX_NAME_LEN+2,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:209:11: warning: passing '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] a=strlen(txt); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:211:25: warning: passing '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] memcpy(name,txt,strlen(txt)+1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:212:13: warning: passing '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] if (!fgets(txt,256,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:214:16: warning: passing '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] *color=strtol(txt,0,10); ^~~ /usr/include/stdlib.h:117:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ client.c:226:11: warning: passing '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] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:230:15: warning: passing '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] stream=fopen(txt,"w"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ client.c:387:15: warning: passing 'unsigned char *' 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] int l=strlen(name)+1; ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:844:67: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+fore+((int)(p->next->member.data)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:845:63: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:846:65: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^~~~~~~~~~~~~~~~~~~~~~~~~ client.c:854:61: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+((int)(p->next->member.data)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:855:62: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:856:64: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^~~~~~~~~~~~~~~~~~~~~~~~~ client.c:892:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^~~~~~~~~~~~~~~~~ client.c:893:23: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^~~~~~~~~~~~~~~~~ client.c:894:63: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^~~~~~~~~~~~~~~ client.c:901:21: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^~~~~~~~~~~~~~~~~ client.c:902:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^~~~~~~~~~~~~~~~~ client.c:903:62: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^~~~~~~~~~~~~~~ client.c:921:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:923:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1142:19: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1164:15: warning: passing 'unsigned char *' 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] add_message(packet+1); ^~~~~~~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1165:14: warning: passing 'unsigned char *' 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] n=2+strlen(packet+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1180:13: warning: passing '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] snprintf(txt,256, "Trying to change level to number %d",level_number); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1181:16: warning: passing '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] add_message(txt); ^~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1183:24: warning: passing 'unsigned char[1024]' 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] if (!name){snprintf(error_message,1024,"Cannot find level number %d. Game terminated. Press ENTER.", level_number);send_quit();return -1;} ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1184:13: warning: passing '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] snprintf(txt,256,"Changing level to \"%s\"",name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1186:16: warning: passing '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] add_message(txt); ^~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1189:15: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ client.c:1189:19: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ client.c:1192:14: warning: passing 'unsigned char[1024]' 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] snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1204:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^ client.c:1210:20: warning: passing 'unsigned char[1024]' 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] if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1211:17: warning: passing 'unsigned char[1024]' 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] else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1229:13: warning: passing 'unsigned char *' 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=strlen(packet+l+9)+1; ^~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1509:18: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1514:12: warning: passing '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] snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1515:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ client.c:1515:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ client.c:1515:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ client.c:1559:33: warning: passing 'unsigned char[1024]' 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] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1559:65: warning: passing 'unsigned char[1024]' 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] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ ./blit.h:44:64: note: passing argument to parameter 'message' here extern void print2screen(int x,int y,unsigned char color,char* message); ^ client.c:1612:20: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1621:20: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1660:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m=contact_server(*color,name))) ^~~~ client.c:384:48: note: passing argument to parameter 'name' here char * contact_server(int color,unsigned char *name) ^ client.c:1718:8: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] signum=signum; ~~~~~~^~~~~~~ client.c:2030:15: warning: passing 'char[43]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_sprites(DATA_PATH GAME_SPRITES_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^ ./data.h:147:41: note: passing argument to parameter here extern void load_sprites(unsigned char *); ^ client.c:2036:18: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("hit",&hit_sprite)){ERROR("Error: Can't find sprite \"hit\".\n");EXIT(1);} ^~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2037:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("title",&title_sprite)){ERROR("Error: Can't find sprite \"title\".\n");EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2038:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("bulge",&bulge_sprite)){ERROR("Error: Can't find sprite \"bulge\".\n");EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2041:11: warning: passing '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] sprintf(txt,"shrapnel%d",a+1); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ 75 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c help.c -o help.o cc -fstack-protector-strong -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o -lm cc -c -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -DXWINDOW -o xclient.o client.c In file included from client.c:67: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ client.c:194:11: warning: passing '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] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:198:15: warning: passing '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] stream=fopen(txt,"r"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ client.c:201:13: warning: passing '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] if (!fgets(txt,MAX_HOST_LEN+2,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:203:11: warning: passing '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] a=strlen(txt); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:205:25: warning: passing '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] memcpy(host,txt,strlen(txt)+1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:207:13: warning: passing '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] if (!fgets(txt,MAX_NAME_LEN+2,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:209:11: warning: passing '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] a=strlen(txt); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:211:25: warning: passing '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] memcpy(name,txt,strlen(txt)+1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:212:13: warning: passing '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] if (!fgets(txt,256,stream)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ client.c:214:16: warning: passing '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] *color=strtol(txt,0,10); ^~~ /usr/include/stdlib.h:117:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ client.c:226:11: warning: passing '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] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:230:15: warning: passing '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] stream=fopen(txt,"w"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ client.c:387:15: warning: passing 'unsigned char *' 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] int l=strlen(name)+1; ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:844:67: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+fore+((int)(p->next->member.data)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:845:63: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:846:65: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^~~~~~~~~~~~~~~~~~~~~~~~~ client.c:854:61: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+((int)(p->next->member.data)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:855:62: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:856:64: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^~~~~~~~~~~~~~~~~~~~~~~~~ client.c:892:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^~~~~~~~~~~~~~~~~ client.c:893:23: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^~~~~~~~~~~~~~~~~ client.c:894:63: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^~~~~~~~~~~~~~~ client.c:901:21: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^~~~~~~~~~~~~~~~~ client.c:902:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^~~~~~~~~~~~~~~~~ client.c:903:62: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^~~~~~~~~~~~~~~ client.c:921:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:923:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1142:19: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1164:15: warning: passing 'unsigned char *' 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] add_message(packet+1); ^~~~~~~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1165:14: warning: passing 'unsigned char *' 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] n=2+strlen(packet+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1180:13: warning: passing '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] snprintf(txt,256, "Trying to change level to number %d",level_number); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1181:16: warning: passing '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] add_message(txt); ^~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1183:24: warning: passing 'unsigned char[1024]' 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] if (!name){snprintf(error_message,1024,"Cannot find level number %d. Game terminated. Press ENTER.", level_number);send_quit();return -1;} ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1184:13: warning: passing '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] snprintf(txt,256,"Changing level to \"%s\"",name); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1186:16: warning: passing '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] add_message(txt); ^~~ client.c:254:24: note: passing argument to parameter 'message' here void add_message(char *message) ^ client.c:1189:15: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ client.c:1189:19: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ client.c:1192:14: warning: passing 'unsigned char[1024]' 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] snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1204:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^ client.c:1210:20: warning: passing 'unsigned char[1024]' 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] if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1211:17: warning: passing 'unsigned char[1024]' 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] else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); ^~~~~~~~~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1229:13: warning: passing 'unsigned char *' 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=strlen(packet+l+9)+1; ^~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1509:18: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1514:12: warning: passing '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] snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ client.c:1515:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ client.c:1515:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ client.c:1515:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ client.c:1559:33: warning: passing 'unsigned char[1024]' 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] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ client.c:1559:65: warning: passing 'unsigned char[1024]' 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] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ ./blit.h:44:64: note: passing argument to parameter 'message' here extern void print2screen(int x,int y,unsigned char color,char* message); ^ client.c:1612:20: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1621:20: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:1660:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m=contact_server(*color,name))) ^~~~ client.c:384:48: note: passing argument to parameter 'name' here char * contact_server(int color,unsigned char *name) ^ client.c:1718:8: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] signum=signum; ~~~~~~^~~~~~~ client.c:2030:15: warning: passing 'char[43]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_sprites(DATA_PATH GAME_SPRITES_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^ ./data.h:147:41: note: passing argument to parameter here extern void load_sprites(unsigned char *); ^ client.c:2036:18: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("hit",&hit_sprite)){ERROR("Error: Can't find sprite \"hit\".\n");EXIT(1);} ^~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2037:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("title",&title_sprite)){ERROR("Error: Can't find sprite \"title\".\n");EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2038:18: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite("bulge",&bulge_sprite)){ERROR("Error: Can't find sprite \"bulge\".\n");EXIT(1);} ^~~~~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ client.c:2041:11: warning: passing '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] sprintf(txt,"shrapnel%d",a+1); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ 75 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c xinterface.c -o xinterface.o xinterface.c:101:3: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] w=w;h=h; ~^~ xinterface.c:101:7: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] w=w;h=h; ~^~ xinterface.c:368:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] type=type; ~~~~^~~~~ 3 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c xkbd.c -o xkbd.o xkbd.c:178:7: warning: variable 'nbytes' set but not used [-Wunused-but-set-variable] int nbytes; ^ 1 warning generated. cc -fstack-protector-strong -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o -lm -L/usr/local/lib -lX11 -lXpm cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c editor.c -o editor.o In file included from editor.c:14: ./error.h:26:23: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] if ((p = malloc(x))) memset(p, 0, x); ^ ./error.h:26:23: note: include the header or explicitly provide a declaration for 'memset' ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ editor.c:127:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:127:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:144:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (find_sprite(name,&n)) ^~~~ ./data.h:149:39: note: passing argument to parameter here extern int find_sprite(unsigned char *,int *); ^ editor.c:148:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:148:10: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:271:11: warning: passing 'unsigned char[1024]' 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] snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:272:13: warning: passing 'unsigned char[1024]' 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] data=fopen(txt,"w"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ editor.c:276:12: warning: passing '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] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:277:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ editor.c:277:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:277:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:281:11: warning: passing 'unsigned char[1024]' 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] snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:283:16: warning: passing 'unsigned char[1024]' 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] dynamic=fopen(txt,"w"); ^~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ editor.c:287:12: warning: passing '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] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:288:9: warning: passing '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] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ editor.c:288:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(msg); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:288:9: note: treat the string as an argument to avoid this ERROR(msg); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ editor.c:296:11: warning: passing 'unsigned char[1024]' 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(txt,"%s %c %d %d\n",sprite_names[O.sprite],O.type,O.x,O.y); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ editor.c:304:10: warning: passing 'unsigned char[1024]' 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] fputs(txt,data); ^~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ editor.c:308:10: warning: passing 'unsigned char[1024]' 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] fputs(txt,dynamic); ^~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ editor.c:321:8: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] signum=signum; ~~~~~~^~~~~~~ editor.c:412:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:414:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:415:12: warning: passing '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] load_room(txt); ^~~ editor.c:116:23: note: passing argument to parameter 'filename' here void load_room(char * filename) ^ editor.c:416:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ editor.c:418:12: warning: passing '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] load_room(txt); ^~~ editor.c:116:23: note: passing argument to parameter 'filename' here void load_room(char * filename) ^ editor.c:448:10: warning: passing '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] sprintf(txt,"% 4d ",x+xoffset); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ editor.c:450:10: warning: passing '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] c_print(txt); ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here extern void c_print(char *text); ^ editor.c:453:10: warning: passing '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] sprintf(txt,"% 4d ",y+yoffset); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ editor.c:455:10: warning: passing '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] c_print(txt); ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here extern void c_print(char *text); ^ editor.c:458:10: warning: passing '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] sprintf(txt,"%-.20s ",obj?(char*)(sprite_names[obj->sprite]):"----"); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ editor.c:460:10: warning: passing '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] c_print(txt); ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here extern void c_print(char *text); ^ editor.c:463:10: warning: passing '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] sprintf(txt,"%c ",obj?obj->type:'-'); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ editor.c:465:10: warning: passing '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] c_print(txt); ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here extern void c_print(char *text); ^ 49 warnings generated. cc -fstack-protector-strong -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o -lm -L/usr/local/lib -lX11 -lXpm cc -fstack-protector-strong -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o -lm cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c test_server.c -o test_server.o In file included from test_server.c:21: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ 18 warnings generated. cc -fstack-protector-strong -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o -lm cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avi.c -o avi.o In file included from avi.c:11: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ avi.c:60:14: warning: passing 'unsigned char[16384]' 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] if (!(fgets(line,sizeof(line),f))){ ^~~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ avi.c:70:16: warning: passing 'unsigned char *' 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] retval=strtol(lptr,(char **)&lptr,0); ^~~~ /usr/include/stdlib.h:117:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ avi.c:184:10: warning: passing 'unsigned char *' 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] f=fopen(filename,"r"); ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ avi.c:260:10: warning: passing 'unsigned char *' 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] f=fopen(filename,"w"); ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ avi.c:393:11: warning: passing 'unsigned char[32]' 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] snprintf(txt,32,"%d",cursor_pos); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ avi.c:394:31: warning: passing 'unsigned char[32]' 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] print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here extern void print2screen(int x,int y,unsigned char color,char* message); ^ avi.c:394:46: warning: passing 'unsigned char[32]' 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] print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ avi.c:396:11: warning: passing 'unsigned char[32]' 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] snprintf(txt,32,"% 5d",cursor_x); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ avi.c:397:31: warning: passing 'unsigned char[32]' 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] print2screen(x,SCREEN_Y-2,11,txt);x+=5; ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here extern void print2screen(int x,int y,unsigned char color,char* message); ^ avi.c:399:11: warning: passing 'unsigned char[32]' 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] snprintf(txt,32,"% 5d",cursor_y); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ avi.c:400:31: warning: passing 'unsigned char[32]' 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] print2screen(x,SCREEN_Y-2,11,txt);x+=5; ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here extern void print2screen(int x,int y,unsigned char color,char* message); ^ avi.c:711:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_avi(argv[1]); ^~~~~~~ avi.c:180:30: note: passing argument to parameter 'filename' here void load_avi(unsigned char *filename) ^ avi.c:713:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] save_avi(argv[1]); ^~~~~~~ avi.c:251:30: note: passing argument to parameter 'filename' here void save_avi(unsigned char *filename) ^ 31 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avihelp.c -o avihelp.o cc -fstack-protector-strong -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o -lm cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c bot.c -o bot.o In file included from bot.c:62: ./error.h:55:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:66:9: warning: passing 'char[45]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:76:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:76:12: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:86:3: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' #define internal errfile = __FILE__, errline = __LINE__, int_error ^ ~~~~~~~~ ./error.h:86:12: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here void int_error(unsigned char *, ...); ^ ./error.h:94:9: warning: passing 'char[46]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here void error(unsigned char *, ...); ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:100:80: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_alloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_alloc(s); } ~^~ ./error.h:101:76: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } ~^~ ./error.h:102:72: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:102:77: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } ~^~ ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:103:91: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void *debug_mem_realloc(unsigned char *f, int l, void *p, size_t s) { f=f; l=l; return mem_realloc(p, s); } ~^~ ./error.h:104:72: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ ./error.h:104:82: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} ~^~ bot.c:120:2: warning: initializing 'unsigned char *' with an expression of type 'char[11]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Terminator", ^~~~~~~~~~~~ bot.c:121:2: warning: initializing 'unsigned char *' with an expression of type 'char[16]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Jack The Ripper", ^~~~~~~~~~~~~~~~~ bot.c:122:2: warning: initializing 'unsigned char *' with an expression of type 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Rambo", ^~~~~~~ bot.c:123:2: warning: initializing 'unsigned char *' with an expression of type 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Exhumator", ^~~~~~~~~~~ bot.c:124:2: warning: initializing 'unsigned char *' with an expression of type 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Assassin", ^~~~~~~~~~ bot.c:125:2: warning: initializing 'unsigned char *' with an expression of type 'char[7]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Arnold", ^~~~~~~~ bot.c:126:2: warning: initializing 'unsigned char *' with an expression of type 'char[12]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Necromancer", ^~~~~~~~~~~~~ bot.c:127:2: warning: initializing 'unsigned char *' with an expression of type 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Predator", ^~~~~~~~~~ bot.c:128:2: warning: initializing 'unsigned char *' with an expression of type 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Rocky", ^~~~~~~ bot.c:129:2: warning: initializing 'unsigned char *' with an expression of type 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Harvester", ^~~~~~~~~~~ bot.c:130:2: warning: initializing 'unsigned char *' with an expression of type 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Lamer", ^~~~~~~ bot.c:131:2: warning: initializing 'unsigned char *' with an expression of type 'char[7]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Killme", ^~~~~~~~ bot.c:132:2: warning: initializing 'unsigned char *' with an expression of type 'char[7]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Looser", ^~~~~~~~ bot.c:133:2: warning: initializing 'unsigned char *' with an expression of type 'char[8]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Krueger", ^~~~~~~~~ bot.c:134:2: warning: initializing 'unsigned char *' with an expression of type 'char[14]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "I'll kill you", ^~~~~~~~~~~~~~~ bot.c:135:2: warning: initializing 'unsigned char *' with an expression of type 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Zombieman", ^~~~~~~~~~~ bot.c:136:2: warning: initializing 'unsigned char *' with an expression of type 'char[11]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Hellraiser", ^~~~~~~~~~~~ bot.c:137:2: warning: initializing 'unsigned char *' with an expression of type 'char[7]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Eraser" ^~~~~~~~ bot.c:251:15: warning: passing 'unsigned char *' 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] int l=strlen(name)+1; ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ bot.c:502:11: warning: passing '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] snprintf(txt,256,"Loading level \"%s\".\n",LEVEL); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ bot.c:503:8: warning: passing '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] ERROR(txt); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ bot.c:503:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ERROR(txt); ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:503:8: note: treat the string as an argument to avoid this ERROR(txt); ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:504:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ bot.c:506:11: warning: passing '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] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ bot.c:837:19: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bot.c:859:14: warning: passing 'unsigned char *' 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] n=2+strlen(packet+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ bot.c:865:14: warning: passing 'unsigned char *' 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] n=2+strlen(packet+1); ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ bot.c:874:13: warning: passing 'unsigned char *' 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=strlen(packet+l+9)+1; ^~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ bot.c:929:15: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ bot.c:929:19: warning: passing 'unsigned char *' 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 (strcmp(md5,packet+5)) /* MD5s differ */ ^~~~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ bot.c:943:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^ bot.c:1029:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] host=optarg; ^~~~~~~ bot.c:1107:15: warning: passing 'char[43]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] load_sprites(DATA_PATH GAME_SPRITES_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^ ./data.h:147:41: note: passing argument to parameter here extern void load_sprites(unsigned char *); ^ bot.c:1122:21: warning: passing 'unsigned char *' 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] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^~~~ bot.c:196:26: note: passing argument to parameter 'name' here char * find_server(char *name,unsigned short port) ^ bot.c:1122:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^~~~~~~~~~~~~~~~~~~~~~~ bot.c:1122:40: warning: passing 'unsigned char *' 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 ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ bot.c:1122:40: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:1122:40: note: treat the string as an argument to avoid this if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:1124:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m=init_socket())){ERROR(m);EXIT(1);} ^~~~~~~~~~~~~~ bot.c:1124:31: warning: passing 'unsigned char *' 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 ((m=init_socket())){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ bot.c:1124:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if ((m=init_socket())){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:1124:31: note: treat the string as an argument to avoid this if ((m=init_socket())){ERROR(m);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:1127:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bot.c:1127:53: warning: passing 'unsigned char *' 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 ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ bot.c:1127:53: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ bot.c:1127:53: note: treat the string as an argument to avoid this if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ 61 warnings generated. cc -fstack-protector-strong -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o -lm cc -fstack-protector-strong -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o -lm -L/usr/local/lib -lX11 -lXpm =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for 0verkill-0.16_2 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/0verkill /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/avi /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/0verkill-avi install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/bot /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/0verkill-bot install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/editor /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/0verkill-editor install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/server /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/0verkill-server install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/test_server /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/0verkill-test_server install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/x0verkill /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/xavi /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/x0verkill-avi install -s -m 555 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/xeditor /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/bin/x0verkill-editor cd /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE data /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/0verkill cd /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE grx /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/0verkill install -m 0644 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/doc/AUTHORS /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/doc/README.html /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/doc/avi.txt /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/doc/bot.txt /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/usr/ports/games/0verkill/work/0verkill-0.16/doc/doc.html /wrkdirs/usr/ports/games/0verkill/work/stage/usr/local/share/doc/0verkill ====> 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-05T13:52: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 0verkill-0.16_2 ===> Building 0verkill-0.16_2 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for 0verkill-0.16_2 build of games/0verkill | 0verkill-0.16_2 ended at Fri Apr 5 14:53:03 BST 2024 build time: 00:00:23