=>> Building games/0verkill build started at Fri Oct 3 08:50:34 EDT 2025 port directory: /usr/ports/games/0verkill package name: 0verkill-0.16_2 building for: FreeBSD pkg.DaveG.ca 15.0-ALPHA3 FreeBSD 15.0-ALPHA3 1500064 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1553 Jun 29 20:14 /usr/ports/games/0verkill/Makefile Ports top last git commit: a936fb9b16ba Ports top unclean checkout: no Port dir last git commit: 69995d3471aa Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500064 Jail OSVERSION: 1500064 Job Id: 03 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1500064 UNAME_v=FreeBSD 15.0-ALPHA3 1500064 UNAME_r=15.0-ALPHA3 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.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_15_c_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_15_c_x64-HEAD-ALL/03/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_15_c_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_15_c_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 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=/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 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=/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=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing " 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=15.0 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--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 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 #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---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 pipebuf (-y) 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-2.3.1.pkg [pkg.DaveG.ca] Installing pkg-2.3.1... [pkg.DaveG.ca] Extracting pkg-2.3.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.DaveG.ca] Installing libXpm-3.5.17_1... [pkg.DaveG.ca] `-- Installing gettext-runtime-0.23.1... [pkg.DaveG.ca] | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] `-- Extracting gettext-runtime-0.23.1: .......... done [pkg.DaveG.ca] `-- Installing libX11-1.8.12,1... [pkg.DaveG.ca] | `-- Installing libxcb-1.17.0... [pkg.DaveG.ca] | | `-- Installing libXau-1.0.12... [pkg.DaveG.ca] | | `-- Extracting libXau-1.0.12: .......... done [pkg.DaveG.ca] | | `-- Installing libXdmcp-1.1.5... [pkg.DaveG.ca] | | `-- Installing xorgproto-2024.1... [pkg.DaveG.ca] | | `-- Extracting xorgproto-2024.1: .......... done [pkg.DaveG.ca] | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg.DaveG.ca] | `-- Extracting libxcb-1.17.0: .......... done [pkg.DaveG.ca] `-- Extracting libX11-1.8.12,1: .......... done [pkg.DaveG.ca] `-- Installing libXext-1.3.6,1... [pkg.DaveG.ca] `-- Extracting libXext-1.3.6,1: .......... done [pkg.DaveG.ca] `-- Installing libXt-1.3.0,1... [pkg.DaveG.ca] | `-- Installing libICE-1.1.2,1... [pkg.DaveG.ca] | `-- Extracting libICE-1.1.2,1: .......... done [pkg.DaveG.ca] | `-- Installing libSM-1.2.6,1... [pkg.DaveG.ca] | `-- Extracting libSM-1.2.6,1: ........ done [pkg.DaveG.ca] `-- Extracting libXt-1.3.0,1: .......... done [pkg.DaveG.ca] 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 ===> 0verkill-0.16_2 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> 0verkill-0.16_2 depends on file: /usr/local/bin/ccache - 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 ) works... yes checking whether the C compiler (cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing ) 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 --- kbd.o --- --- xclient.o --- --- server.o --- --- data.o --- --- sprite.o --- --- blit.o --- --- console.o --- --- hash.o --- --- time.o --- --- net.o --- --- crc32.o --- --- md5.o --- --- md5hl.o --- --- error.o --- --- client.o --- --- help.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 kbd.c -o kbd.o --- xclient.o --- 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 --- server.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 server.c -o server.o --- data.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 data.c -o data.o --- sprite.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 sprite.c -o sprite.o --- blit.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 blit.c -o blit.o --- console.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 console.c -o console.o --- hash.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 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); --- 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 time.c -o time.o --- net.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 --- 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 crc32.c -o crc32.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 md5.c -o md5.o --- md5hl.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 --- error.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 error.c -o error.o --- client.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 client.c -o client.o --- hash.o --- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} | ~^~ 18 warnings generated. --- help.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 help.c -o help.o --- hash.o --- --- xinterface.o --- --- kbd.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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- xkbd.o --- --- sprite.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- xkbd.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 xkbd.c -o xkbd.o --- sprite.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 190 | if (!(f=fopen(filename,"rb"))) | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 194 | if (!(f=fopen(filename,"rb"))) | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 198 | if (!(f=fopen(filename,"rb"))) | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 201 | snprintf(msg,256,"Error opening file \"%s\"!\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 202 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:202:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 202 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:202:9: note: treat the string as an argument to avoid this 202 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 205 | while(fgets(buffer,8191,f)) | ^~~~~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 207 | x=strlen(buffer); | ^~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 221 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 222 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:222:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 222 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:222:11: note: treat the string as an argument to avoid this 222 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 237 | s->positions[CURP].xo=strtol(buffer+1,&p,0); | ^~~~~~~~ /usr/include/stdlib.h:114:37: note: passing argument to parameter here 114 | 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] 245 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 246 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:246:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 246 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:246:11: note: treat the string as an argument to avoid this 246 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 258 | s->positions[CURP].lines[CURL].len=strlen(buffer+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 273 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 274 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:274:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 274 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:274:11: note: treat the string as an argument to avoid this 274 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 291 | x=strlen(buffer+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 302 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 303 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:303:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 303 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:303:11: note: treat the string as an argument to avoid this 303 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 307 | 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] 307 | 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] 314 | snprintf(txt,256,"Error loading sprite \"%s\". Undefined position %d.\n",filename,x); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 315 | ERROR(txt); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:315:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 315 | ERROR(txt); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:315:12: note: treat the string as an argument to avoid this 315 | ERROR(txt); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 333 | snprintf(msg,256,"Syntax error in file \"%s\"!\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 334 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:334:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 334 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:334:11: note: treat the string as an argument to avoid this 334 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 343 | snprintf(msg,256,"Unexpected end of file in \"%s\".\n",filename); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 344 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ sprite.c:344:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 344 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ sprite.c:344:9: note: treat the string as an argument to avoid this 344 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ 52 warnings generated. --- xinterface.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 xinterface.c -o xinterface.o --- crc32.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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- editor.o --- --- time.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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 209 | snprintf(txt,16,"\033[%dm",30+(a&7)); | ^ 19 warnings generated. --- sprite.o --- --- data.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- editor.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 editor.c -o editor.o --- test_server.o --- --- avi.o --- --- avihelp.o --- --- md5.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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 86 | retval=recvfrom(fd,p,max_len+12,0,addr,addr_len); | ^~~~~~~~ /usr/include/sys/socket.h:714:96: note: passing argument to parameter here 714 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ 19 warnings generated. --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} | ~^~ 18 warnings generated. --- data.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- test_server.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 test_server.c -o test_server.o --- avi.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 avi.c -o avi.o --- avihelp.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 avihelp.c -o avihelp.o --- bot.o --- --- help.o --- --- data.o --- ./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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] --- error.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- data.o --- 100 | 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] 101 | 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] 101 | 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] --- error.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- data.o --- 102 | 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] 102 | 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] 103 | 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] --- error.o --- ./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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] --- data.o --- 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} --- error.o --- 100 | 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] 101 | 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] 101 | 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] --- data.o --- | ~^~ 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] 77 | {"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] 78 | {"Shotgun",25,50,float2double(3*36),float2double(.5*36),10,5,6,12,30,float2double((double).3*36),-float2double((double)1.2*36)}, | ^~~~~~~~~ --- error.o --- 102 | 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] 102 | 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] 103 | 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] --- data.o --- 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] 79 | {"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] 80 | {"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] --- error.o --- 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} --- data.o --- 81 | {"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] 126 | if (!strcmp(sprite_names[*num],name))return 0; | ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:90:25: note: passing argument to parameter here 90 | 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] 126 | if (!strcmp(sprite_names[*num],name))return 0; | ^~~~ --- error.o --- | ~^~ error.c:82:3: warning: explicitly assigning value of variable of type 'void *' to itself [-Wself-assign] 82 | 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] 126 | vfprintf(stderr, m, l); | ^ /usr/include/stdio.h:306:57: note: passing argument to parameter here 306 | 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] --- data.o --- /usr/include/string.h:90:39: note: passing argument to parameter here 90 | 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] 196 | if (!(stream=fopen(filename,"rb"))) | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | FILE *fopen(const char * __restrict, const char * __restrict); | ^ data.c:200:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 200 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ --- error.o --- 147 | sprintf(errbuf, "\033[1mINTERNAL ERROR\033[0m at %s:%d: ", errfile, errline); | ^~~~~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 148 | strcat(errbuf, m); | ^~~~~~ /usr/include/string.h:84:33: note: passing argument to parameter here 84 | 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] --- data.o --- data.c:200:8: note: treat the string as an argument to avoid this 200 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ data.c:215:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 215 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ data.c:215:8: note: treat the string as an argument to avoid this 215 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ --- error.o --- 148 | strcat(errbuf, m); | ^ /usr/include/string.h:84:58: note: passing argument to parameter here 84 | 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] 157 | sprintf(errbuf, "DEBUG MESSAGE at %s:%d: ", errfile, errline); | ^~~~~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] --- data.o --- 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] 223 | if (find_sprite(name,&n)) | ^~~~ data.c:123:32: note: passing argument to parameter 'name' here 123 | int find_sprite(unsigned char *name,int *num) | ^ data.c:227:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 227 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ data.c:227:8: note: treat the string as an argument to avoid this 227 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' --- error.o --- 158 | strcat(errbuf, m); | ^~~~~~ /usr/include/string.h:84:33: note: passing argument to parameter here 84 | 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] 158 | strcat(errbuf, m); | ^ /usr/include/string.h:84:58: note: passing argument to parameter here 84 | char *(strcat)(char * __restrict, const char * __restrict); | ^ 26 warnings generated. --- data.o --- 160 | #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] 244 | stream=fopen(filename,"rb"); | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | FILE *fopen(const char * __restrict, const char * __restrict); | ^ data.c:249:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 249 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ data.c:249:8: note: treat the string as an argument to avoid this 249 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 265 | 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] 271 | load_sprite(q,sprites+(n_sprites-1)); | ^ ./sprite.h:37:40: note: passing argument to parameter here 37 | 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] 308 | if (!(fgets(txt,1024,f)))return NULL; | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 311 | if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 311 | if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 312 | if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 312 | if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 314 | if (strlen(txt))a++; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 319 | a=strlen(txt); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 323 | if (!strlen(retval)){mem_free(retval);return NULL;} | ^~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 591 | q=MD5File(filename,NULL); | ^~~~~~~~ ./md5.h:20:35: note: passing argument to parameter here 20 | 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] 591 | 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] 592 | a=strlen(q); | ^ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 614 | 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] 617 | if (!__add_md5(DATA_PATH LEVEL_FILE,&len,&result)){mem_free(result);return NULL;} | ^~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' 25 | #define DATA_PATH "/usr/local/share/0verkill/data/" | ^ data.c:586:41: note: passing argument to parameter 'filename' here 586 | 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] 619 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); | ^ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 622 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,STATIC_DATA_SUFFIX); | ^ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 625 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,DYNAMIC_DATA_SUFFIX); | ^ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 628 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); | ^ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 634 | f=fopen(p,"r"); | ^ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 636 | while (fgets(p,2048,f)) | ^ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 638 | if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; | ^ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 638 | if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; | ^ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 639 | if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; | ^ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 639 | if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; | ^ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 641 | 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] 646 | if (!__add_md5(q,&len,&result)){mem_free(result);return NULL;} | ^ data.c:586:41: note: passing argument to parameter 'filename' here 586 | 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] 653 | return q; | ^ 60 warnings generated. --- bot.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 bot.c -o bot.o --- md5hl.o --- In file included from md5hl.c:22: ./error.h:26:23: warning: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 26 | 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} | ~^~ 19 warnings generated. --- xinterface.o --- xinterface.c:101:3: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 101 | w=w;h=h; | ~^~ xinterface.c:101:7: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 101 | w=w;h=h; | ~^~ xinterface.c:368:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 368 | type=type; | ~~~~^~~~~ 3 warnings generated. --- md5hl.o --- --- data.o --- --- xkbd.o --- xkbd.c:178:7: warning: variable 'nbytes' set but not used [-Wunused-but-set-variable] 178 | int nbytes; | ^ 1 warning generated. --- xinterface.o --- --- error.o --- --- avihelp.o --- --- editor.o --- In file included from editor.c:14: ./error.h:26:23: warning: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 26 | 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} | ~^~ 18 warnings generated. --- editor.o --- ./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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ ~~~~~~~~ --- test_server --- --- editor.o --- ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ ~~~~~~~~ --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- editor.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ --- client.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- editor.o --- ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | static inline void *debug_mem_calloc(unsigned char *f, int l, size_t s) { f=f; l=l; return mem_calloc(s); } | ~^~ --- client.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- editor.o --- ./error.h:101:81: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 101 | 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] 102 | 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] 102 | static inline void debug_mem_free(unsigned char *f, int l, void *p) { f=f; l=l; mem_free(p); } | ~^~ --- client.o --- ./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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] --- editor.o --- ./error.h:103:86: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 103 | 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] 103 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} | ~^~ --- client.o --- 100 | 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] 101 | 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] 101 | 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] --- editor.o --- ./error.h:104:77: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 104 | 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] 104 | 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] 127 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ editor.c:127:9: note: treat the string as an argument to avoid this --- client.o --- 102 | 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] 102 | 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] 103 | 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] --- editor.o --- 127 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 144 | if (find_sprite(name,&n)) | ^~~~ ./data.h:149:39: note: passing argument to parameter here 149 | extern int find_sprite(unsigned char *,int *); | ^ editor.c:148:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 148 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' --- client.o --- 103 | 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] 104 | 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] 104 | 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] 104 | static inline void set_mem_comment(void *p, unsigned char *c, int l) {p=p; c=c; l=l;} --- editor.o --- 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ editor.c:148:10: note: treat the string as an argument to avoid this 148 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 271 | snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | int (snprintf)(char * __restrict, size_t, const char * __restrict, --- client.o --- | ~^~ 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] 194 | snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 198 | stream=fopen(txt,"r"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here --- editor.o --- | ^ 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] 272 | data=fopen(txt,"w"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 276 | snprintf(msg,256,"Can't create file \"%s\"\n",txt); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | int (snprintf)(char * __restrict, size_t, const char * __restrict, --- client.o --- 274 | 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] 201 | if (!fgets(txt,MAX_HOST_LEN+2,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 203 | a=strlen(txt); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; --- editor.o --- | ^ 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] 277 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ editor.c:277:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 277 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' --- client.o --- | ^ 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] 205 | memcpy(host,txt,strlen(txt)+1); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 207 | if (!fgets(txt,MAX_NAME_LEN+2,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | char *(fgets)(char * __restrict, int, FILE * __restrict); | ^ --- editor.o --- 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ editor.c:277:9: note: treat the string as an argument to avoid this 277 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 281 | snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | int (snprintf)(char * __restrict, size_t, const char * __restrict, | ^ --- client.o --- 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] 209 | a=strlen(txt); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 211 | memcpy(name,txt,strlen(txt)+1); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; | ^ --- editor.o --- 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] 283 | dynamic=fopen(txt,"w"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 287 | snprintf(msg,256,"Can't create file \"%s\"\n",txt); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | int (snprintf)(char * __restrict, size_t, const char * __restrict, | ^ --- client.o --- 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] 212 | if (!fgets(txt,256,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 214 | *color=strtol(txt,0,10); | ^~~ /usr/include/stdlib.h:114:37: note: passing argument to parameter here 114 | long strtol(const char * __restrict, char ** __restrict, int); | ^ --- editor.o --- 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] 288 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ editor.c:288:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 288 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} --- client.o --- 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] 226 | snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 230 | stream=fopen(txt,"w"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | FILE *fopen(const char * __restrict, const char * __restrict); | ^ --- editor.o --- | ^ editor.c:288:9: note: treat the string as an argument to avoid this 288 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 296 | sprintf(txt,"%s %c %d %d\n",sprite_names[O.sprite],O.type,O.x,O.y); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ --- client.o --- 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] 387 | int l=strlen(name)+1; | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; | ^ client.c:844:67: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 844 | 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] --- editor.o --- 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] 304 | fputs(txt,data); | ^~~ /usr/include/stdio.h:277:35: note: passing argument to parameter here 277 | 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] 308 | fputs(txt,dynamic); | ^~~ /usr/include/stdio.h:277:35: note: passing argument to parameter here 277 | int fputs(const char * __restrict, FILE * __restrict); | ^ --- client.o --- 845 | 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] 846 | 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] 854 | double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+((int)(p->next->member.data)&255), --- editor.o --- editor.c:321:8: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 321 | 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] 412 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 414 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ --- client.o --- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:855:62: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 855 | 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] 856 | 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] --- editor.o --- /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 415 | load_room(txt); | ^~~ editor.c:116:23: note: passing argument to parameter 'filename' here 116 | 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] 416 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here --- client.o --- 892 | SCREEN_XOFFSET+((int)(hero->data)&255), | ^~~~~~~~~~~~~~~~~ client.c:893:23: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 893 | 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] 894 | 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] 901 | SCREEN_XOFFSET+((int)(hero->data)&255), --- editor.o --- 313 | 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] 418 | load_room(txt); | ^~~ editor.c:116:23: note: passing argument to parameter 'filename' here 116 | 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] 448 | sprintf(txt,"% 4d ",x+xoffset); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ --- client.o --- | ^~~~~~~~~~~~~~~~~ client.c:902:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 902 | 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] 903 | 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] 921 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ --- editor.o --- 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] 450 | c_print(txt); | ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here 17 | 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] 453 | sprintf(txt,"% 4d ",y+yoffset); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ --- client.o --- /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 923 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1142 | p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- editor.o --- 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] 455 | c_print(txt); | ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here 17 | 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] 458 | sprintf(txt,"%-.20s ",obj?(char*)(sprite_names[obj->sprite]):"----"); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ --- client.o --- 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] 1164 | add_message(packet+1); | ^~~~~~~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | 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] 1165 | n=2+strlen(packet+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; | ^ --- editor.o --- 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] 460 | c_print(txt); | ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here 17 | 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] 463 | sprintf(txt,"%c ",obj?obj->type:'-'); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ --- client.o --- 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] 1180 | snprintf(txt,256, "Trying to change level to number %d",level_number); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1181 | add_message(txt); | ^~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | void add_message(char *message) | ^ --- editor.o --- 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] 465 | c_print(txt); | ^~~ ./console.h:17:27: note: passing argument to parameter 'text' here 17 | extern void c_print(char *text); | ^ 49 warnings generated. --- client.o --- 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] 1183 | 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:313:34: note: passing argument to parameter here 313 | 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] 1184 | snprintf(txt,256,"Changing level to \"%s\"",name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1186 | add_message(txt); | ^~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | 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] 1189 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~ /usr/include/string.h:90:25: note: passing argument to parameter here 90 | 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] 1189 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~~~~~~ /usr/include/string.h:90:39: note: passing argument to parameter here 90 | 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] 1192 | snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1204 | send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); | ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here 49 | 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] 1210 | if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1211 | else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1229 | x=strlen(packet+l+9)+1; | ^~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1509 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1514 | snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1515 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ client.c:1515:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1515 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ client.c:1515:9: note: treat the string as an argument to avoid this 1515 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 1559 | print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); | ^~~~~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1559 | print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); | ^~~~~~~~~~~~~ ./blit.h:44:64: note: passing argument to parameter 'message' here 44 | 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] 1612 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1621 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1660 | if ((m=contact_server(*color,name))) | ^~~~ client.c:384:48: note: passing argument to parameter 'name' here 384 | 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] 1718 | 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] 2030 | load_sprites(DATA_PATH GAME_SPRITES_FILE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' 25 | #define DATA_PATH "/usr/local/share/0verkill/data/" | ^ ./data.h:147:41: note: passing argument to parameter here 147 | 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] 2036 | 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 149 | 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] 2037 | 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 149 | 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] 2038 | 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 149 | 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] 2041 | sprintf(txt,"shrapnel%d",a+1); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ 75 warnings generated. --- test_server --- cc -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 --- editor.o --- --- client.o --- --- xclient.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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- editor --- --- xeditor --- --- 0verkill --- --- xclient.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- editor --- cc -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 --- xeditor --- cc -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 --- xclient.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 194 | snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 198 | stream=fopen(txt,"r"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 201 | if (!fgets(txt,MAX_HOST_LEN+2,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 203 | a=strlen(txt); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 205 | memcpy(host,txt,strlen(txt)+1); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 207 | if (!fgets(txt,MAX_NAME_LEN+2,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 209 | a=strlen(txt); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 211 | memcpy(name,txt,strlen(txt)+1); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 212 | if (!fgets(txt,256,stream)) | ^~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 214 | *color=strtol(txt,0,10); | ^~~ /usr/include/stdlib.h:114:37: note: passing argument to parameter here 114 | 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] 226 | snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 230 | stream=fopen(txt,"w"); | ^~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 387 | int l=strlen(name)+1; | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; | ^ client.c:844:67: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 844 | 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] 845 | 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] 846 | 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] 854 | 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] 855 | 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] 856 | 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] 892 | SCREEN_XOFFSET+((int)(hero->data)&255), | ^~~~~~~~~~~~~~~~~ client.c:893:23: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 893 | 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] 894 | 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] 901 | SCREEN_XOFFSET+((int)(hero->data)&255), | ^~~~~~~~~~~~~~~~~ client.c:902:22: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 902 | 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] 903 | 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] 921 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 923 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1142 | 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] 1164 | add_message(packet+1); | ^~~~~~~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | 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] 1165 | n=2+strlen(packet+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1180 | snprintf(txt,256, "Trying to change level to number %d",level_number); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1181 | add_message(txt); | ^~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | 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] 1183 | 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:313:34: note: passing argument to parameter here 313 | 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] 1184 | snprintf(txt,256,"Changing level to \"%s\"",name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1186 | add_message(txt); | ^~~ client.c:254:24: note: passing argument to parameter 'message' here 254 | 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] 1189 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~ /usr/include/string.h:90:25: note: passing argument to parameter here 90 | 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] 1189 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~~~~~~ /usr/include/string.h:90:39: note: passing argument to parameter here 90 | 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] 1192 | snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1204 | send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); | ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here 49 | 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] 1210 | if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1211 | else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); | ^~~~~~~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1229 | x=strlen(packet+l+9)+1; | ^~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1509 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1514 | snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1515 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ client.c:1515:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1515 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ client.c:1515:9: note: treat the string as an argument to avoid this 1515 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 1559 | print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); | ^~~~~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1559 | print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); | ^~~~~~~~~~~~~ ./blit.h:44:64: note: passing argument to parameter 'message' here 44 | 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] 1612 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1621 | if (find_sprite(txt,&sprite)) | ^~~ ./data.h:149:39: note: passing argument to parameter here 149 | 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] 1660 | if ((m=contact_server(*color,name))) | ^~~~ client.c:384:48: note: passing argument to parameter 'name' here 384 | 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] 1718 | 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] 2030 | load_sprites(DATA_PATH GAME_SPRITES_FILE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' 25 | #define DATA_PATH "/usr/local/share/0verkill/data/" | ^ ./data.h:147:41: note: passing argument to parameter here 147 | 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] 2036 | 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 149 | 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] 2037 | 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 149 | 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] 2038 | 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 149 | 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] 2041 | sprintf(txt,"shrapnel%d",a+1); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); | ^ 75 warnings generated. --- 0verkill --- cc -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 --- x0verkill --- cc -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 --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 120 | "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] 121 | "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] 122 | "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] 123 | "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] 124 | "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] 125 | "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] 126 | "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] 127 | "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] 128 | "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] 129 | "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] 130 | "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] 131 | "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] 132 | "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] 133 | "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] 134 | "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] 135 | "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] 136 | "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] 137 | "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] 251 | int l=strlen(name)+1; | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 502 | snprintf(txt,256,"Loading level \"%s\".\n",LEVEL); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 503 | ERROR(txt); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ bot.c:503:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 503 | ERROR(txt); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ bot.c:503:8: note: treat the string as an argument to avoid this 503 | ERROR(txt); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 504 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 506 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 837 | 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] 859 | n=2+strlen(packet+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 865 | n=2+strlen(packet+1); | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 874 | x=strlen(packet+l+9)+1; | ^~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 929 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~ /usr/include/string.h:90:25: note: passing argument to parameter here 90 | 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] 929 | if (strcmp(md5,packet+5)) /* MD5s differ */ | ^~~~~~~~ /usr/include/string.h:90:39: note: passing argument to parameter here 90 | 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] 943 | send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); | ^~ ./net.h:49:40: note: passing argument to parameter 'packet' here 49 | 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] 1029 | 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] 1107 | load_sprites(DATA_PATH GAME_SPRITES_FILE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' 25 | #define DATA_PATH "/usr/local/share/0verkill/data/" | ^ ./data.h:147:41: note: passing argument to parameter here 147 | 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] 1122 | if ((m=find_server(host,port))){ERROR(m);EXIT(1);} | ^~~~ bot.c:196:26: note: passing argument to parameter 'name' here 196 | 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] 1122 | 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] 1122 | if ((m=find_server(host,port))){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ bot.c:1122:40: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1122 | if ((m=find_server(host,port))){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ bot.c:1122:40: note: treat the string as an argument to avoid this 1122 | if ((m=find_server(host,port))){ERROR(m);EXIT(1);} | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 1124 | 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] 1124 | if ((m=init_socket())){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ bot.c:1124:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1124 | if ((m=init_socket())){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ bot.c:1124:31: note: treat the string as an argument to avoid this 1124 | if ((m=init_socket())){ERROR(m);EXIT(1);} | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 1127 | 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] 1127 | if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ bot.c:1127:53: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1127 | if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} | ^ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ bot.c:1127:53: note: treat the string as an argument to avoid this 1127 | if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ 61 warnings generated. --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); --- bot --- --- avi.o --- | ^ ./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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | void int_error(unsigned char *, ...); | ^ --- bot --- cc -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o -lm --- avi.o --- ./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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 60 | if (!(fgets(line,sizeof(line),f))){ | ^~~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 70 | retval=strtol(lptr,(char **)&lptr,0); | ^~~~ /usr/include/stdlib.h:114:37: note: passing argument to parameter here 114 | 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] 184 | f=fopen(filename,"r"); | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 260 | f=fopen(filename,"w"); | ^~~~~~~~ /usr/include/stdio.h:274:36: note: passing argument to parameter here 274 | 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] 393 | snprintf(txt,32,"%d",cursor_pos); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 394 | print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; | ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here 44 | 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] 394 | print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 396 | snprintf(txt,32,"% 5d",cursor_x); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 397 | print2screen(x,SCREEN_Y-2,11,txt);x+=5; | ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here 44 | 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] 399 | snprintf(txt,32,"% 5d",cursor_y); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 400 | print2screen(x,SCREEN_Y-2,11,txt);x+=5; | ^~~ ./blit.h:44:64: note: passing argument to parameter 'message' here 44 | 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] 711 | load_avi(argv[1]); | ^~~~~~~ avi.c:180:30: note: passing argument to parameter 'filename' here 180 | 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] 713 | save_avi(argv[1]); | ^~~~~~~ avi.c:251:30: note: passing argument to parameter 'filename' here 251 | void save_avi(unsigned char *filename) | ^ 31 warnings generated. --- avi --- --- xavi --- --- avi --- cc -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o -lm --- xavi --- cc -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o -lm -L/usr/local/lib -lX11 -lXpm --- 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] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | 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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~ ./error.h:31:26: note: expanded from macro 'internal' 31 | #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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ ./error.h:16:31: note: passing argument to parameter here 16 | 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] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./error.h:14:27: note: passing argument to parameter here 14 | void error(unsigned char *, ...); | ^ ./error.h:100:75: warning: explicitly assigning value of variable of type 'unsigned char *' to itself [-Wself-assign] 100 | 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] 100 | 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] 101 | 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] 101 | 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] 102 | 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] 102 | 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] 103 | 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] 103 | 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] 104 | 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] 104 | 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] 104 | 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] 339 | 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:274:36: note: passing argument to parameter here 274 | 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] 339 | 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:313:34: note: passing argument to parameter here 313 | 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] 339 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:339:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 339 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:339:122: note: treat the string as an argument to avoid this 339 | 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' 160 | #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] 340 | while(fgets(line,1024,stream)) | ^~~~ /usr/include/stdio.h:273:32: note: passing argument to parameter here 273 | 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] 342 | 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] 348 | 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:313:34: note: passing argument to parameter here 313 | 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] 348 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:348:112: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 348 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:348:112: note: treat the string as an argument to avoid this 348 | 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' 160 | #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] 363 | 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 149 | 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] 363 | 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:313:34: note: passing argument to parameter here 313 | 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] 363 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:363:113: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 363 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:363:113: note: treat the string as an argument to avoid this 363 | 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' 160 | #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] 376 | sprintf(txt,"%d",*((unsigned char *)&ip)); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 378 | sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 378 | sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); | ^~~~~~~~~~~~~~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 398 | 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:313:34: note: passing argument to parameter here 313 | 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] 477 | snprintf(msg,256,"Error: Can't bind socket to port %d!\n",port); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 478 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:478:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 478 | ERROR(msg); | ^~~ ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:478:9: note: treat the string as an argument to avoid this 478 | ERROR(msg); | ^ | "%s", ./cfg.h:160:36: note: expanded from macro 'ERROR' 160 | #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] 501 | sprintf(txt,"hero%d",num); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 542 | {message("Not enough memory.\n",2);return 1;} | ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 543 | cp->member.name=mem_alloc(strlen(name)+1); | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 545 | {mem_free(cp);message("Not enough memory.\n",2);return 1;} | ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 560 | memcpy(cp->member.name,name,strlen(name)+1); | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 567 | {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 383 | 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] 570 | {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 383 | 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] 889 | l=strlen((t[a])->name)+1; | ^~~~~~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 908 | if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} | ^~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 908 | if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 909 | else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 909 | else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 909 | else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 908 | 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] 909 | 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] 924 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ^~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 924 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 925 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~~~~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 925 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 925 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | size_t strlen(const char *) __pure; | ^ server.c:1155:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] 1155 | return 0; | ^ server.c:1153:3: note: previous statement is here 1153 | if (p->next->member.id==id) | ^ server.c:1172:82: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1172 | 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] 1216 | message("Incompatible client version.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 1225 | snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1229 | message("Incompatible client version. Player refused.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 1235 | if (strlen(packet+5) > MAX_NAME_LEN) | ^~~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1237 | snprintf(txt,256,"Name too long, shortening it to %i characters\n",MAX_NAME_LEN); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1244 | message("Player refused.\n",2); | ^~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 1250 | snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1252 | snprintf(txt,256,"%s entered the game.",packet+5); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1273 | 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:313:34: note: passing argument to parameter here 313 | 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] 1316 | memcpy(packet+1,p->name,strlen(p->name)+1); | ^~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1317 | sendall(packet,2+strlen(p->name),0); | ^~~~~~~ /usr/include/string.h:105:28: note: passing argument to parameter here 105 | 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] 1318 | snprintf(txt,256,"Game terminated by player \"%s\".\n",p->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1330 | snprintf(txt,256,"%s left the game.\n",q->member.name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1334 | snprintf(txt,256,"%s left the game.",q->member.name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1360 | snprintf(txt,256,"%s> %s\n",q->member.name,packet+1); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1365 | snprintf(txt,256,"Unknown packet: head=%d\n",*packet); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1405 | sprintf(txt,"corpse%d",num); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 1510 | send_message((struct player*)(p->data),0,"You got grenades"); | ^~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1511 | snprintf(txt,256,"%s got grenades.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1534 | send_message((struct player*)(p->data),0,"You got a magazine"); | ^~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1535 | snprintf(txt,256,"%s got a magazine.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1558 | send_message((struct player*)(p->data),0,"You got shotgun shells"); | ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1559 | snprintf(txt,256,"%s got shotgun shells.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1582 | send_message((struct player*)(p->data),0,"You got cartridges"); | ^~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1583 | snprintf(txt,256,"%s got cartridges.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1606 | send_message((struct player*)(p->data),0,"You got ammo for Uzi"); | ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1607 | snprintf(txt,256,"%s got Uzi ammo.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1631 | send_message((struct player*)(p->data),0,"You got Uzi"); | ^~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1632 | snprintf(txt,256,"%s got Uzi.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1656 | send_message((struct player*)(p->data),0,"You got sniper rifle"); | ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1657 | snprintf(txt,256,"%s got sniper rifle.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1681 | send_message((struct player*)(p->data),0,"You got a shotgun"); | ^~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1682 | snprintf(txt,256,"%s got a shotgun.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1698 | send_message((struct player*)(p->data),0,"You got invisibility dope"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1699 | snprintf(txt,256,"%s got invisibility.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1715 | send_message((struct player*)(p->data),0,"You got armor"); | ^~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1716 | snprintf(txt,256,"%s got armor.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1732 | send_message((struct player*)(p->data),0,"You picked up a medikit"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1733 | snprintf(txt,256,"%s picked up a medikit.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1748 | send_message((struct player*)(p->data),0,"You killed yourself"); | ^~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1749 | snprintf(txt,256,"%s suicides",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1751 | snprintf(txt,256,"%s suicides.\n",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1802 | 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] 1807 | send_message((struct player*)(o->data),0,"You killed yourself"); | ^~~~~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 1808 | snprintf(txt,256,"%s suicides",((struct player*)(o->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1810 | snprintf(txt,256,"%s suicides.\n",((struct player*)(o->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1816 | snprintf(txt,256,"%s killed %s.",((struct player*)(o->data))->name,((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1818 | snprintf(txt,256,"%s killed you",((struct player*)(o->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1820 | snprintf(txt,256,"You killed %s",((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1822 | snprintf(txt,256,"%s killed %s.\n",((struct player*)(o->data))->name,((struct player*)(p->data))->name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 1927 | 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] 1954 | (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] 2168 | snprintf(txt,256,"Signal %d caught.\n",sig_num); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2253 | {send_message(q,0,"No weapon.");return;} | ^~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 2255 | {send_message(q,0,"Not enough ammo.");return;} | ^~~~~~~~~~~~~~~~~~ server.c:902:76: note: passing argument to parameter 'msg' here 902 | 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] 2257 | snprintf(txt,256,"%s takes %s.\n",q->name,weapon[w].name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2293 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2307:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2307 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2321:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2321 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2335:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2335 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2349:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2349 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2363:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2363 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2377:4: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2377 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2396:5: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2396 | (void *)(q->obj->id)); | ^~~~~~~~~~~~~~~~~~~~ server.c:2410:5: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 2410 | (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] 2497 | snprintf(txt,256,"%s not responding. Kicked out of the game.\n",p->next->member.name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2501 | snprintf(txt,256,"%s was kicked out of the game.",p->next->member.name); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2643 | snprintf(txt,256,"Running 0verkill server version %d.%d\n",VERSION_MAJOR,VERSION_MINOR); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2649 | message("Initialization.\n",2); | ^~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2667 | message("Loading sprites.\n",2); | ^~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2668 | load_sprites(DATA_PATH GAME_SPRITES_FILE); /* players, corpses, bullets, ... */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cfg.h:25:19: note: expanded from macro 'DATA_PATH' 25 | #define DATA_PATH "/usr/local/share/0verkill/data/" | ^ ./data.h:147:41: note: passing argument to parameter here 147 | 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] 2669 | 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 149 | 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] 2669 | 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:313:34: note: passing argument to parameter here 313 | 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] 2669 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2669:125: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2669 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2669:125: note: treat the string as an argument to avoid this 2669 | 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' 160 | #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] 2670 | 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 149 | 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] 2670 | 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:313:34: note: passing argument to parameter here 313 | 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] 2670 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2670:119: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2670 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2670:119: note: treat the string as an argument to avoid this 2670 | 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' 160 | #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] 2671 | 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 149 | 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] 2671 | 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:313:34: note: passing argument to parameter here 313 | 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] 2671 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2671:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2671 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2671:122: note: treat the string as an argument to avoid this 2671 | 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' 160 | #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] 2672 | 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 149 | 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] 2672 | 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:313:34: note: passing argument to parameter here 313 | 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] 2672 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2672:132: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2672 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2672:132: note: treat the string as an argument to avoid this 2672 | 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' 160 | #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] 2673 | 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 149 | 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] 2673 | 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:313:34: note: passing argument to parameter here 313 | 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] 2673 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2673:128: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2673 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2673:128: note: treat the string as an argument to avoid this 2673 | 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' 160 | #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] 2674 | 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 149 | 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] 2674 | 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:313:34: note: passing argument to parameter here 313 | 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] 2674 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2674:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2674 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2674:122: note: treat the string as an argument to avoid this 2674 | 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' 160 | #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] 2675 | 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 149 | 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] 2675 | 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:313:34: note: passing argument to parameter here 313 | 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] 2675 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2675:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2675 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2675:122: note: treat the string as an argument to avoid this 2675 | 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' 160 | #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] 2676 | 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 149 | 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] 2676 | 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:313:34: note: passing argument to parameter here 313 | 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] 2676 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2676:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2676 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2676:122: note: treat the string as an argument to avoid this 2676 | 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' 160 | #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] 2677 | 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 149 | 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] 2677 | 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:313:34: note: passing argument to parameter here 313 | 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] 2677 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2677:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2677 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2677:122: note: treat the string as an argument to avoid this 2677 | 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' 160 | #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] 2678 | 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 149 | 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] 2678 | 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:313:34: note: passing argument to parameter here 313 | 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] 2678 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2678:122: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2678 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2678:122: note: treat the string as an argument to avoid this 2678 | 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' 160 | #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] 2681 | sprintf(txt,"shrapnel%d",a+1); | ^~~ /usr/include/stdio.h:301:33: note: passing argument to parameter here 301 | 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] 2682 | 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:313:34: note: passing argument to parameter here 313 | 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] 2682 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ /usr/include/stdio.h:275:56: note: passing argument to parameter here 275 | int fprintf(FILE * __restrict, const char * __restrict, ...); | ^ server.c:2682:126: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2682 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2682:126: note: treat the string as an argument to avoid this 2682 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2687:96: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2687 | 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' 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ server.c:2687:96: note: treat the string as an argument to avoid this 2687 | 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' 160 | #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] 2688 | snprintf(txt,256,"Loading level \"%s\"....\n",LEVEL); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2690 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2691 | message("Loading level graphics.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2693 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2694 | message("Loading level map.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2696 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); | ^~~ /usr/include/stdio.h:313:34: note: passing argument to parameter here 313 | 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] 2697 | message("Loading level objects.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2701 | message("Initializing socket.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2704 | message("Installing signal handlers.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2714 | message("Game started.\n",2); | ^~~~~~~~~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2741 | message("Sleep\n",2); | ^~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | 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] 2748 | message("Wakeup\n",2); | ^~~~~~~~~~ server.c:383:29: note: passing argument to parameter 'msg' here 383 | void message(unsigned char *msg,int output) | ^ 188 warnings generated. --- server --- cc -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 =========================================================================== =================================================== ===== 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=2025-10-03T12:50:34+0000' 'PKG_NOTE_ports_top_git_hash=a936fb9b16ba' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=69995d3471aa' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' 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 Oct 3 08:52:49 EDT 2025 build time: 00:02:21