------------------------------------------------------------------------------- -- Phase: Environment ------------------------------------------------------------------------------- NO_DEPENDS=1 UNAME_r=6.5 UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=unknown UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 LANG=C HOME=/root USER=root TERM=dumb SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: showconfig ------------------------------------------------------------------------------- ===> 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 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/games/0verkill XDG_CONFIG_HOME=/construction/games/0verkill XDG_CACHE_HOME=/construction/games/0verkill/.cache HOME=/construction/games/0verkill TMPDIR="/tmp" PATH=/construction/games/0verkill/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/0verkill/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ARGS ------------------------------------------------------------------------------- --with-x --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/games/0verkill XDG_CONFIG_HOME=/construction/games/0verkill XDG_CACHE_HOME=/construction/games/0verkill/.cache HOME=/construction/games/0verkill TMPDIR="/tmp" PATH=/construction/games/0verkill/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/0verkill/.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 CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -fcommon -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -fcommon -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" 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" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ARGS ------------------------------------------------------------------------------- DESTDIR=/construction/games/0verkill/stage SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: PLIST_SUB ------------------------------------------------------------------------------- PORTDOCS="" DOCS="" NO_DOCS="@comment " X11="" NO_X11="@comment " OSREL=6.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/0verkill" EXAMPLESDIR="share/examples/0verkill" DATADIR="share/0verkill" WWWDIR="www/0verkill" ETCDIR="etc/0verkill" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: 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 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: /etc/make.conf ------------------------------------------------------------------------------- DPORTS_BUILDER=yes DISABLE_LICENSES=yes DEFAULT_VERSIONS=ssl=openssl FORCE_PACKAGE=yes DEVELOPER=yes DFLY_STING_XFAIL=yes USE_PACKAGE_DEPENDS_ONLY=yes PORTSDIR=/xports PORT_DBDIR=/options PKG_DBDIR=/var/db/pkg PKG_CACHEDIR=/var/cache/pkg PKG_COMPRESSION_FORMAT=.tgz DEVELOPER=1 WITH_CCACHE_BUILD=yes CCACHE_DIR=/ccache UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=600503 OSVERSION=9999999 OSREL=6.5 _OSRELEASE=6.5-SYNTH DISTDIR=/distfiles WRKDIRPREFIX=/construction BATCH=yes PACKAGE_BUILDING=yes PKG_CREATE_VERBOSE=yes MAKE_JOBS_NUMBER=13 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/indexinfo-0.3.1.pkg Installing /packages/All/gettext-runtime-0.21.1.pkg Installing /packages/All/libXau-1.0.9.pkg Installing /packages/All/xorgproto-2022.1_1.pkg Installing /packages/All/libXdmcp-1.1.3.pkg Installing /packages/All/libxcb-1.15_1.pkg Installing /packages/All/libX11-1.8.6,1.pkg Installing /packages/All/libXext-1.3.4,1.pkg Installing /packages/All/libICE-1.1.0_1,1.pkg Installing /packages/All/libSM-1.2.3,1.pkg Installing /packages/All/libXt-1.2.1,1.pkg Installing /packages/All/libXpm-3.5.15.pkg Installing /packages/All/ccache-3.7.12_4.pkg 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 gcc create symlink for gcc (world) create symlink for g++ create symlink for g++ (world) ===== Message from ccache-3.7.12_4: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. SUCCEEDED 00:00:02 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- ===> 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 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> 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 ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by 0verkill-0.16_2 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> 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 ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by 0verkill-0.16_2 for building => SHA256 Checksum OK for 0verkill-0.16.tgz. SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> 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 ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found ===> 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. Extracted Memory Use: 2.79M SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for 0verkill-0.16_2 ===> Applying ports patches for 0verkill-0.16_2 from /xports/games/0verkill/files SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> 0verkill-0.16_2 depends on file: /usr/local/bin/ccache - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> 0verkill-0.16_2 depends on file: /usr/local/bin/ccache - found ===> Configuring for 0verkill-0.16_2 configure: warning: x86_64-portbld-dragonfly6.5: invalid host type loading site script /xports/Templates/config.site creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc -pipe -fcommon -O2 -fno-strict-aliasing ) works... yes checking whether the C compiler (cc -pipe -fcommon -O2 -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 SUCCEEDED 00:00:02 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> 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 --- --- kbd.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c kbd.c --- xclient.o --- cc -c -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -DXWINDOW -o xclient.o client.c --- sprite.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c sprite.c --- blit.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c blit.c --- console.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c console.c --- time.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c time.c --- net.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c net.c --- crc32.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c crc32.c --- md5.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5.c --- md5hl.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5hl.c --- server.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c server.c --- blit.o --- In file included from blit.c:12: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ --- md5hl.o --- In file included from md5hl.c:22: error.h: In function 'x_calloc': error.h:26:23: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] if ((p = malloc(x))) memset(p, 0, x); ^~~~~~ error.h:26:23: warning: incompatible implicit declaration of built-in function 'memset' error.h:26:23: note: include '' or provide a declaration of 'memset' error.h:9:1: +#include error.h:26:23: if ((p = malloc(x))) memset(p, 0, x); ^~~~~~ error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ --- net.o --- In file included from net.c:14: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ net.c: In function 'recv_packet': net.c:86:41: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] retval=recvfrom(fd,p,max_len+12,0,addr,addr_len); ^~~~~~~~ In file included from net.c:7: /usr/include/sys/socket.h:552:9: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' ssize_t recvfrom(int, void * __restrict, size_t, int, ^~~~~~~~ --- console.o --- In file included from console.c:19: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ console.c: In function 'c_goto': console.c:153:27: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size between 2 and 12 [-Wformat-truncation=] snprintf(txt,16,"\033[%d;%dH",y+1,x+1); ^~ console.c:153:18: note: directive argument in the range [-2147483647, 2147483647] snprintf(txt,16,"\033[%d;%dH",y+1,x+1); ^~~~~~~~~~~~~ console.c:153:2: note: 'snprintf' output between 7 and 27 bytes into a destination of size 16 snprintf(txt,16,"\033[%d;%dH",y+1,x+1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- hash.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c hash.c In file included from hash.c:9: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ --- sprite.o --- In file included from sprite.c:16: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ sprite.c: In function 'load_sprite': sprite.c:190:16: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] if (!(f=fopen(filename,"rb"))) ^~~~~~~~ In file included from sprite.c:4: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ sprite.c:194:16: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] if (!(f=fopen(filename,"rb"))) ^~~~~~~~ In file included from sprite.c:4: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ sprite.c:198:16: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] if (!(f=fopen(filename,"rb"))) ^~~~~~~~ In file included from sprite.c:4: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ sprite.c:201:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Error opening file \"%s\"!\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:202:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:205:14: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while(fgets(buffer,8191,f)) ^~~~~~ In file included from sprite.c:4: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ sprite.c:207:12: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] x=strlen(buffer); ^~~~~~ In file included from sprite.c:1: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ sprite.c:221:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:222:11: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:237:39: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] s->positions[CURP].xo=strtol(buffer+1,&p,0); ~~~~~~^~ In file included from sprite.c:3: /usr/include/stdlib.h:119:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' long strtol(const char * __restrict, char ** __restrict, int); ^~~~~~ sprite.c:245:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:246:11: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:258:52: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] s->positions[CURP].lines[CURL].len=strlen(buffer+1); ~~~~~~^~ In file included from sprite.c:1: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ sprite.c:273:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:274:11: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:291:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] x=strlen(buffer+1); ~~~~~~^~ In file included from sprite.c:1: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ sprite.c:302:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:303:11: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:307:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) ^ sprite.c:307:18: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) ^ sprite.c:314:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Error loading sprite \"%s\". Undefined position %d.\n",filename,x); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:315:12: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(txt); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:333:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Syntax error in file \"%s\"!\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:334:11: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ sprite.c:343:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Unexpected end of file in \"%s\".\n",filename); ^~~ In file included from sprite.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:344:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from sprite.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ --- data.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c data.c In file included from data.c:14: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ data.c: At top level: data.c:77:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] {"Browning",16,50,float2double(3*36),float2double(.3*36),20,2,13,12,48,float2double((double).3*36),-float2double(1*36)}, ^~~~~~~~~~ data.c:77:3: note: (near initialization for 'weapon[0].name') data.c:78:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] {"Shotgun",25,50,float2double(3*36),float2double(.5*36),10,5,6,12,30,float2double((double).3*36),-float2double((double)1.2*36)}, ^~~~~~~~~ data.c:78:3: note: (near initialization for 'weapon[1].name') data.c:79:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] {"Uzi",3,50,float2double(4*36),float2double(.25*36),15,4,50,50,150,float2double((double).9*36),-float2double((double)1.5*36)}, ^~~~~ data.c:79:3: note: (near initialization for 'weapon[2].name') data.c:80:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] {"Rifle",40,70,float2double(6*36),float2double(.4*36),50,20,1,15,15,0,0}, ^~~~~~~ data.c:80:3: note: (near initialization for 'weapon[3].name') data.c:81:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] {"Grenades",15,60,float2double((double)3.73*36),0,75,40,0,6,24,float2double(3*36),-float2double((double)1.5*36)} /* shell speed=grenade throwing speed, bullet speed=shrapnel speed */ ^~~~~~~~~~ data.c:81:3: note: (near initialization for 'weapon[4].name') data.c: In function 'find_sprite': data.c:126:27: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(sprite_names[*num],name))return 0; ~~~~~~~~~~~~^~~~~~ In file included from data.c:2: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ data.c:126:34: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(sprite_names[*num],name))return 0; ^~~~ In file included from data.c:2: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ data.c: In function 'load_data': data.c:196:21: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] if (!(stream=fopen(filename,"rb"))) ^~~~~~~~ In file included from data.c:1: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ data.c:223:19: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(name,&n)) ^~~~ data.c:123:5: note: expected 'unsigned char *' but argument is of type 'char *' int find_sprite(unsigned char *name,int *num) ^~~~~~~~~~~ data.c: In function 'load_sprites': data.c:244:15: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] stream=fopen(filename,"rb"); ^~~~~~~~ In file included from data.c:1: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ data.c:265:28: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] sprite_names[n_sprites-1]=(char *)mem_alloc(l+1); ^ data.c:271:15: warning: pointer targets in passing argument 1 of 'load_sprite' differ in signedness [-Wpointer-sign] load_sprite(q,sprites+(n_sprites-1)); ^ In file included from data.h:8, from data.c:9: sprite.h:37:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void load_sprite(unsigned char *,struct sprite *); ^~~~~~~~~~~ data.c: In function 'load_level': data.c:308:15: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!(fgets(txt,1024,f)))return NULL; ^~~ In file included from data.c:1: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ data.c:311:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:311:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:312:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:312:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:314:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(txt))a++; ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:319:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(txt); ^~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:323:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (!strlen(retval)){mem_free(retval);return NULL;} ^~~~~~ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c: In function '__add_md5': data.c:591:12: warning: pointer targets in passing argument 1 of 'MD5File' differ in signedness [-Wpointer-sign] q=MD5File(filename,NULL); ^~~~~~~~ In file included from data.c:13: md5.h:20:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern char * MD5File(const char *, char *); ^~~~~~~ data.c:591:3: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] q=MD5File(filename,NULL); ^ data.c:592:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(q); ^ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c: In function 'md5_level': data.c:614:3: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] q=load_level(level_num); ^ In file included from data.h:7, from data.c:9: cfg.h:25:19: warning: pointer targets in passing argument 1 of '__add_md5' differ in signedness [-Wpointer-sign] #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfg.h:25:19: note: in definition of macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ data.c:586:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *__add_md5(unsigned char *filename, int *len, unsigned char**result) ^~~~~~~~~ data.c:619:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); ^ In file included from data.c:1: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ data.c:622:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(p,2048,"%s%s%s",DATA_PATH,q,STATIC_DATA_SUFFIX); ^ In file included from data.c:1: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ data.c:625:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(p,2048,"%s%s%s",DATA_PATH,q,DYNAMIC_DATA_SUFFIX); ^ In file included from data.c:1: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ data.c:628:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); ^ In file included from data.c:1: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ data.c:634:11: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] f=fopen(p,"r"); ^ In file included from data.c:1: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ data.c:636:16: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while (fgets(p,2048,f)) ^ In file included from data.c:1: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ data.c:638:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; ^ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:638:36: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; ^ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:639:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; ^ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:639:36: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; ^ In file included from data.c:2: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ data.c:641:5: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] q=p; ^ data.c:646:19: warning: pointer targets in passing argument 1 of '__add_md5' differ in signedness [-Wpointer-sign] if (!__add_md5(q,&len,&result)){mem_free(result);return NULL;} ^ data.c:586:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *__add_md5(unsigned char *filename, int *len, unsigned char**result) ^~~~~~~~~ data.c:653:9: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] return q; ^ --- xclient.o --- In file included from client.c:67: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ client.c: In function 'load_cfg': client.c:194:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:198:15: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] stream=fopen(txt,"r"); ^~~ In file included from client.c:7: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ client.c:201:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,MAX_HOST_LEN+2,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:203:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(txt); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:205:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(host,txt,strlen(txt)+1); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:207:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,MAX_NAME_LEN+2,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:209:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(txt); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:211:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(name,txt,strlen(txt)+1); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:212:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,256,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:214:16: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] *color=strtol(txt,0,10); ^~~ In file included from client.c:41: /usr/include/stdlib.h:119:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' long strtol(const char * __restrict, char ** __restrict, int); ^~~~~~ client.c: In function 'save_cfg': client.c:226:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:230:15: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] stream=fopen(txt,"w"); ^~~ In file included from client.c:7: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ client.c: In function 'contact_server': client.c:387:15: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] int l=strlen(name)+1; ^~~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c: In function 'draw_scene': client.c:844:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+fore+((int)(p->next->member.data)&255), ^ client.c:845:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^ client.c:846:65: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^ client.c:854:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+((int)(p->next->member.data)&255), ^ client.c:855:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^ client.c:856:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^ client.c:892:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^ client.c:893:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^ client.c:894:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^ client.c:901:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^ client.c:902:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^ client.c:903:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^ client.c: In function 'change_level': client.c:921:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:923:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c: In function 'process_packet': client.c:1142:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^ client.c:1164:21: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(packet+1); ~~~~~~^~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1165:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] n=2+strlen(packet+1); ~~~~~~^~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:1180:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256, "Trying to change level to number %d",level_number); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1181:16: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(txt); ^~~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1183:24: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (!name){snprintf(error_message,1024,"Cannot find level number %d. Game terminated. Press ENTER.", level_number);send_quit();return -1;} ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1184:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Changing level to \"%s\"",name); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1186:16: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(txt); ^~~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1189:15: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ In file included from client.c:54: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ client.c:1189:25: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ~~~~~~^~ In file included from client.c:54: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ client.c:1192:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1204:16: warning: pointer targets in passing argument 1 of 'send_packet' differ in signedness [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ In file included from client.c:60: net.h:49:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^~~~~~~~~~~ client.c:1210:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1211:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1229:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] x=strlen(packet+l+9)+1; ~~~~~~~~^~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c: In function 'menu_screen': client.c:1509:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1514:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from client.c:56: client.c:1515:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from client.c:7: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ client.c:1559:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:1559:65: warning: pointer targets in passing argument 4 of 'print2screen' differ in signedness [-Wpointer-sign] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ In file included from client.c:56: blit.h:44:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void print2screen(int x,int y,unsigned char color,char* message); ^~~~~~~~~~~~ client.c:1612:20: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1621:20: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1660:33: warning: pointer targets in passing argument 2 of 'contact_server' differ in signedness [-Wpointer-sign] if ((m=contact_server(*color,name))) ^~~~ client.c:384:8: note: expected 'unsigned char *' but argument is of type 'char *' char * contact_server(int color,unsigned char *name) ^~~~~~~~~~~~~~ In file included from blit.h:4, from client.c:56: client.c: In function 'main': cfg.h:25:19: warning: pointer targets in passing argument 1 of 'load_sprites' differ in signedness [-Wpointer-sign] #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfg.h:25:19: note: in definition of macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from client.c:58: data.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void load_sprites(unsigned char *); ^~~~~~~~~~~~ client.c:2036:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("hit",&hit_sprite)){ERROR("Error: Can't find sprite \"hit\".\n");EXIT(1);} ^~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2037:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("title",&title_sprite)){ERROR("Error: Can't find sprite \"title\".\n");EXIT(1);} ^~~~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2038:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("bulge",&bulge_sprite)){ERROR("Error: Can't find sprite \"bulge\".\n");EXIT(1);} ^~~~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2041:11: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"shrapnel%d",a+1); ^~~ In file included from client.c:7: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ client.c: In function 'menu_screen': client.c:1611:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] sprintf(txt,"hero%d",*color); ^~ client.c:1611:16: note: directive argument in the range [-2147483647, 2147483647] sprintf(txt,"hero%d",*color); ^~~~~~~~ client.c:1611:4: note: 'sprintf' output between 6 and 16 bytes into a destination of size 8 sprintf(txt,"hero%d",*color); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1620:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] sprintf(txt,"hero%d",*color); ^~ client.c:1620:16: note: directive argument in the range [-2147483648, 2147483646] sprintf(txt,"hero%d",*color); ^~~~~~~~ client.c:1620:4: note: 'sprintf' output between 6 and 16 bytes into a destination of size 8 sprintf(txt,"hero%d",*color); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- error.o --- --- client.o --- --- help.o --- --- xinterface.o --- --- xkbd.o --- --- editor.o --- --- test_server.o --- --- avi.o --- --- avihelp.o --- --- bot.o --- --- server.o --- In file included from server.c:54: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] --- editor.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c editor.c --- test_server.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c test_server.c --- avihelp.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avihelp.c --- server.o --- #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] --- test_server.o --- In file included from test_server.c:21: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] --- bot.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c bot.c In file included from bot.c:62: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ bot.c: At top level: bot.c:120:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Terminator", ^~~~~~~~~~~~ bot.c:120:2: note: (near initialization for 'names[0]') bot.c:121:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Jack The Ripper", ^~~~~~~~~~~~~~~~~ bot.c:121:2: note: (near initialization for 'names[1]') bot.c:122:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Rambo", ^~~~~~~ bot.c:122:2: note: (near initialization for 'names[2]') bot.c:123:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Exhumator", ^~~~~~~~~~~ bot.c:123:2: note: (near initialization for 'names[3]') bot.c:124:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Assassin", ^~~~~~~~~~ bot.c:124:2: note: (near initialization for 'names[4]') bot.c:125:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Arnold", ^~~~~~~~ bot.c:125:2: note: (near initialization for 'names[5]') bot.c:126:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Necromancer", ^~~~~~~~~~~~~ bot.c:126:2: note: (near initialization for 'names[6]') bot.c:127:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Predator", ^~~~~~~~~~ bot.c:127:2: note: (near initialization for 'names[7]') bot.c:128:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Rocky", ^~~~~~~ bot.c:128:2: note: (near initialization for 'names[8]') bot.c:129:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Harvester", ^~~~~~~~~~~ bot.c:129:2: note: (near initialization for 'names[9]') bot.c:130:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Lamer", ^~~~~~~ bot.c:130:2: note: (near initialization for 'names[10]') bot.c:131:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Killme", ^~~~~~~~ bot.c:131:2: note: (near initialization for 'names[11]') bot.c:132:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Looser", ^~~~~~~~ bot.c:132:2: note: (near initialization for 'names[12]') bot.c:133:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Krueger", ^~~~~~~~~ bot.c:133:2: note: (near initialization for 'names[13]') bot.c:134:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "I'll kill you", ^~~~~~~~~~~~~~~ bot.c:134:2: note: (near initialization for 'names[14]') bot.c:135:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Zombieman", ^~~~~~~~~~~ bot.c:135:2: note: (near initialization for 'names[15]') bot.c:136:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Hellraiser", ^~~~~~~~~~~~ bot.c:136:2: note: (near initialization for 'names[16]') bot.c:137:2: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] "Eraser" ^~~~~~~~ bot.c:137:2: note: (near initialization for 'names[17]') bot.c: In function 'contact_server': bot.c:251:15: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] int l=strlen(name)+1; ^~~~ In file included from bot.c:52: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ bot.c: In function 'change_level': bot.c:502:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Loading level \"%s\".\n",LEVEL); ^~~ In file included from bot.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from bot.c:55: bot.c:503:8: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(txt); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from bot.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ bot.c:504:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ In file included from bot.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ bot.c:506:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from bot.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ bot.c: In function 'process_packet': bot.c:837:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^ bot.c:859:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] n=2+strlen(packet+1); ~~~~~~^~ In file included from bot.c:52: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ bot.c:865:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] n=2+strlen(packet+1); ~~~~~~^~ In file included from bot.c:52: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ bot.c:874:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] x=strlen(packet+l+9)+1; ~~~~~~~~^~ In file included from bot.c:52: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ bot.c:929:15: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ In file included from bot.c:52: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ bot.c:929:25: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ~~~~~~^~ In file included from bot.c:52: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ bot.c:943:16: warning: pointer targets in passing argument 1 of 'send_packet' differ in signedness [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ In file included from bot.c:57: net.h:49:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^~~~~~~~~~~ bot.c: In function 'parse_command_line': bot.c:1029:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] host=optarg; ^ In file included from data.h:7, from bot.c:55: bot.c: In function 'main': cfg.h:25:19: warning: pointer targets in passing argument 1 of 'load_sprites' differ in signedness [-Wpointer-sign] #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfg.h:25:19: note: in definition of macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bot.c:55: data.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void load_sprites(unsigned char *); ^~~~~~~~~~~~ bot.c:1122:21: warning: pointer targets in passing argument 1 of 'find_server' differ in signedness [-Wpointer-sign] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^~~~ bot.c:196:8: note: expected 'char *' but argument is of type 'unsigned char *' char * find_server(char *name,unsigned short port) ^~~~~~~~~~~ bot.c:1122:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ In file included from data.h:7, from bot.c:55: bot.c:1122:40: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from bot.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ bot.c:1124:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] if ((m=init_socket())){ERROR(m);EXIT(1);} ^ In file included from data.h:7, from bot.c:55: bot.c:1124:31: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if ((m=init_socket())){ERROR(m);EXIT(1);} ^ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from bot.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ bot.c:1127:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ In file included from data.h:7, from bot.c:55: bot.c:1127:53: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from bot.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ bot.c: In function 'process_packet': bot.c:866:3: warning: this statement may fall through [-Wimplicit-fallthrough=] shut_down(1); ^~~~~~~~~~~~ bot.c:868:3: note: here case P_INFO: ^~~~ --- test_server.o --- #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ --- editor.o --- In file included from editor.c:14: error.h: In function 'x_calloc': error.h:26:23: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] if ((p = malloc(x))) memset(p, 0, x); ^~~~~~ error.h:26:23: warning: incompatible implicit declaration of built-in function 'memset' error.h:26:23: note: include '' or provide a declaration of 'memset' error.h:9:1: +#include error.h:26:23: if ((p = malloc(x))) memset(p, 0, x); ^~~~~~ error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ editor.c: In function 'load_room': editor.c:144:19: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(name,&n)) ^~~~ In file included from editor.c:10: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ editor.c: In function 'save_data': editor.c:271:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ editor.c:272:13: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] data=fopen(txt,"w"); ^~~ In file included from editor.c:4: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ editor.c:276:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from editor.c:9: editor.c:277:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from editor.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:281:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,1024,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ editor.c:283:16: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] dynamic=fopen(txt,"w"); ^~~ In file included from editor.c:4: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ editor.c:287:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from editor.c:9: editor.c:288:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from editor.c:4: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:296:11: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"%s %c %d %d\n",sprite_names[O.sprite],O.type,O.x,O.y); ^~~ In file included from editor.c:4: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:304:10: warning: pointer targets in passing argument 1 of 'fputs' differ in signedness [-Wpointer-sign] fputs(txt,data); ^~~ In file included from editor.c:4: /usr/include/stdio.h:226:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fputs(const char * __restrict, FILE * __restrict); ^~~~~ editor.c:308:10: warning: pointer targets in passing argument 1 of 'fputs' differ in signedness [-Wpointer-sign] fputs(txt,dynamic); ^~~ In file included from editor.c:4: /usr/include/stdio.h:226:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fputs(const char * __restrict, FILE * __restrict); ^~~~~ editor.c: In function 'main': editor.c:412:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ editor.c:414:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ editor.c:415:12: warning: pointer targets in passing argument 1 of 'load_room' differ in signedness [-Wpointer-sign] load_room(txt); ^~~ editor.c:116:6: note: expected 'char *' but argument is of type 'unsigned char *' void load_room(char * filename) ^~~~~~~~~ editor.c:416:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ In file included from editor.c:4: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ editor.c:418:12: warning: pointer targets in passing argument 1 of 'load_room' differ in signedness [-Wpointer-sign] load_room(txt); ^~~ editor.c:116:6: note: expected 'char *' but argument is of type 'unsigned char *' void load_room(char * filename) ^~~~~~~~~ editor.c:448:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"% 4d ",x+xoffset); ^~~ In file included from editor.c:4: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:450:10: warning: pointer targets in passing argument 1 of 'c_print' differ in signedness [-Wpointer-sign] c_print(txt); ^~~ In file included from editor.c:8: console.h:17:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void c_print(char *text); ^~~~~~~ editor.c:453:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"% 4d ",y+yoffset); ^~~ In file included from editor.c:4: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:455:10: warning: pointer targets in passing argument 1 of 'c_print' differ in signedness [-Wpointer-sign] c_print(txt); ^~~ In file included from editor.c:8: console.h:17:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void c_print(char *text); ^~~~~~~ editor.c:458:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"%-.20s ",obj?(char*)(sprite_names[obj->sprite]):"----"); ^~~ In file included from editor.c:4: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:460:10: warning: pointer targets in passing argument 1 of 'c_print' differ in signedness [-Wpointer-sign] c_print(txt); ^~~ In file included from editor.c:8: console.h:17:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void c_print(char *text); ^~~~~~~ editor.c:463:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"%c ",obj?obj->type:'-'); ^~~ In file included from editor.c:4: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ editor.c:465:10: warning: pointer targets in passing argument 1 of 'c_print' differ in signedness [-Wpointer-sign] c_print(txt); ^~~ In file included from editor.c:8: console.h:17:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void c_print(char *text); ^~~~~~~ editor.c: In function 'save_data': editor.c:287:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 237 [-Wformat-truncation=] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~ ~~~ editor.c:287:3: note: 'snprintf' output between 22 and 1045 bytes into a destination of size 256 snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ editor.c:276:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 237 [-Wformat-truncation=] snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~ ~~~ editor.c:276:3: note: 'snprintf' output between 22 and 1045 bytes into a destination of size 256 snprintf(msg,256,"Can't create file \"%s\"\n",txt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- help.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c help.c --- error.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c error.c In file included from error.c:12: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.c: In function 'er': error.c:126:19: warning: pointer targets in passing argument 2 of 'vfprintf' differ in signedness [-Wpointer-sign] vfprintf(stderr, m, l); ^ In file included from error.c:6: /usr/include/stdio.h:260:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int vfprintf(FILE * __restrict, const char * __restrict, __va_list) ^~~~~~~~ error.c: In function 'int_error': error.c:147:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(errbuf, "\033[1mINTERNAL ERROR\033[0m at %s:%d: ", errfile, errline); ^~~~~~ In file included from error.c:6: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ error.c:148:9: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(errbuf, m); ^~~~~~ In file included from error.c:5: /usr/include/string.h:86:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *strcat(char * __restrict, const char * __restrict); ^~~~~~ error.c:148:17: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(errbuf, m); ^ In file included from error.c:5: /usr/include/string.h:86:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' char *strcat(char * __restrict, const char * __restrict); ^~~~~~ error.c: In function 'debug_msg': error.c:157:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(errbuf, "DEBUG MESSAGE at %s:%d: ", errfile, errline); ^~~~~~ In file included from error.c:6: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ error.c:158:9: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(errbuf, m); ^~~~~~ In file included from error.c:5: /usr/include/string.h:86:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *strcat(char * __restrict, const char * __restrict); ^~~~~~ error.c:158:17: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(errbuf, m); ^ In file included from error.c:5: /usr/include/string.h:86:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' char *strcat(char * __restrict, const char * __restrict); ^~~~~~ --- xinterface.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c xinterface.c --- client.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c client.c In file included from client.c:67: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ client.c: In function 'load_cfg': client.c:194:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:198:15: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] stream=fopen(txt,"r"); ^~~ In file included from client.c:7: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ client.c:201:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,MAX_HOST_LEN+2,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:203:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(txt); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:205:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(host,txt,strlen(txt)+1); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:207:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,MAX_NAME_LEN+2,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:209:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] a=strlen(txt); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:211:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(name,txt,strlen(txt)+1); ^~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:212:13: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!fgets(txt,256,stream)) ^~~ In file included from client.c:7: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ client.c:214:16: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] *color=strtol(txt,0,10); ^~~ In file included from client.c:41: /usr/include/stdlib.h:119:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' long strtol(const char * __restrict, char ** __restrict, int); ^~~~~~ client.c: In function 'save_cfg': client.c:226:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:230:15: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] stream=fopen(txt,"w"); ^~~ In file included from client.c:7: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ client.c: In function 'contact_server': client.c:387:15: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] int l=strlen(name)+1; ^~~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c: In function 'draw_scene': client.c:844:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+fore+((int)(p->next->member.data)&255), ^ client.c:845:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^ client.c:846:65: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^ client.c:854:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.x-hero->x)+SCREEN_XOFFSET+((int)(p->next->member.data)&255), ^ client.c:855:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] double2int(p->next->member.y-hero->y)+SCREEN_YOFFSET+(((int)(p->next->member.data)>>8)&255), ^ client.c:856:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)p->next->member.data)>>16], ^ client.c:892:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^ client.c:893:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^ client.c:894:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^ client.c:901:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_XOFFSET+((int)(hero->data)&255), ^ client.c:902:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] SCREEN_YOFFSET+(((int)(hero->data)>>8)&255), ^ client.c:903:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sprites[hit_sprite].positions+sprites[hit_sprite].steps[((int)hero->data)>>16], ^ client.c: In function 'change_level': client.c:921:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:923:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c: In function 'process_packet': client.c:1142:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] p->member.data=(void*)((packet[5]<<16)+(packet[7]<<8)+(packet[6])); ^ client.c:1164:21: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(packet+1); ~~~~~~^~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1165:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] n=2+strlen(packet+1); ~~~~~~^~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:1180:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256, "Trying to change level to number %d",level_number); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1181:16: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(txt); ^~~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1183:24: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (!name){snprintf(error_message,1024,"Cannot find level number %d. Game terminated. Press ENTER.", level_number);send_quit();return -1;} ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1184:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Changing level to \"%s\"",name); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1186:16: warning: pointer targets in passing argument 1 of 'add_message' differ in signedness [-Wpointer-sign] add_message(txt); ^~~ client.c:254:6: note: expected 'char *' but argument is of type 'unsigned char *' void add_message(char *message) ^~~~~~~~~~~ client.c:1189:15: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ^~~ In file included from client.c:54: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ client.c:1189:25: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(md5,packet+5)) /* MD5s differ */ ~~~~~~^~ In file included from client.c:54: /usr/include/string.h:88:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^~~~~~ client.c:1192:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(error_message,1024,"Invalid MD5 sum. Can't change level. Game terminated. Press ENTER."); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1204:16: warning: pointer targets in passing argument 1 of 'send_packet' differ in signedness [-Wpointer-sign] send_packet(&p,1,(struct sockaddr *)(&server),my_id,0); ^~ In file included from client.c:60: net.h:49:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void send_packet(unsigned char *packet,int len,const struct sockaddr* addr,int sender,int recipient); ^~~~~~~~~~~ client.c:1210:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (l<2)snprintf(error_message,1024,"Game terminated. Press ENTER."); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1211:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] else snprintf(error_message,1024,"Game terminated by %s. Press ENTER.",packet+1); ^~~~~~~~~~~~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ client.c:1229:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] x=strlen(packet+l+9)+1; ~~~~~~~~^~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c: In function 'menu_screen': client.c:1509:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1514:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Error: Can't find sprite \"%s\".\n",txt); ^~~ In file included from client.c:7: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from blit.h:4, from client.c:56: client.c:1515:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from client.c:7: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ client.c:1559:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ In file included from client.c:54: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ client.c:1559:65: warning: pointer targets in passing argument 4 of 'print2screen' differ in signedness [-Wpointer-sign] print2screen((SCREEN_X-strlen(error_message)>>1),SCREEN_Y-1,9,error_message); ^~~~~~~~~~~~~ In file included from client.c:56: blit.h:44:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void print2screen(int x,int y,unsigned char color,char* message); ^~~~~~~~~~~~ client.c:1612:20: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1621:20: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&sprite)) ^~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:1660:33: warning: pointer targets in passing argument 2 of 'contact_server' differ in signedness [-Wpointer-sign] if ((m=contact_server(*color,name))) ^~~~ client.c:384:8: note: expected 'unsigned char *' but argument is of type 'char *' char * contact_server(int color,unsigned char *name) ^~~~~~~~~~~~~~ In file included from blit.h:4, from client.c:56: client.c: In function 'main': cfg.h:25:19: warning: pointer targets in passing argument 1 of 'load_sprites' differ in signedness [-Wpointer-sign] #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfg.h:25:19: note: in definition of macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from client.c:58: data.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void load_sprites(unsigned char *); ^~~~~~~~~~~~ client.c:2036:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("hit",&hit_sprite)){ERROR("Error: Can't find sprite \"hit\".\n");EXIT(1);} ^~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2037:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("title",&title_sprite)){ERROR("Error: Can't find sprite \"title\".\n");EXIT(1);} ^~~~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2038:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("bulge",&bulge_sprite)){ERROR("Error: Can't find sprite \"bulge\".\n");EXIT(1);} ^~~~~~~ In file included from client.c:58: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ client.c:2041:11: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"shrapnel%d",a+1); ^~~ In file included from client.c:7: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ client.c: In function 'menu_screen': client.c:1611:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] sprintf(txt,"hero%d",*color); ^~ client.c:1611:16: note: directive argument in the range [-2147483647, 2147483647] sprintf(txt,"hero%d",*color); ^~~~~~~~ client.c:1611:4: note: 'sprintf' output between 6 and 16 bytes into a destination of size 8 sprintf(txt,"hero%d",*color); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1620:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] sprintf(txt,"hero%d",*color); ^~ client.c:1620:16: note: directive argument in the range [-2147483648, 2147483646] sprintf(txt,"hero%d",*color); ^~~~~~~~ client.c:1620:4: note: 'sprintf' output between 6 and 16 bytes into a destination of size 8 sprintf(txt,"hero%d",*color); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- xkbd.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c xkbd.c xkbd.c: In function 'keycode2keysym': xkbd.c:178:7: warning: variable 'nbytes' set but not used [-Wunused-but-set-variable] int nbytes; ^~~~~~ xkbd.c: In function 'kbd_update': xkbd.c:372:53: warning: this statement may fall through [-Wimplicit-fallthrough=] event.xclient.format!=32|| ~~~~~~~~~~~~~~~~~~~~~~~~~~ event.xclient.message_type!=x_wm_protocols_atom|| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ event.xclient.data.l[0]!=(signed)x_delete_window_atom ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xkbd.c:379:5: note: here case DestroyNotify: ^~~~ xkbd.c:390:13: warning: this statement may fall through [-Wimplicit-fallthrough=] x_height=event.xconfigure.height/FONT_Y_SIZE; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xkbd.c:392:5: note: here case Expose: /* window was exposed - redraw it */ ^~~~ --- server.o --- internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ server.c: In function 'load_dynamic': server.c:339:21: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~~~~~~ In file included from server.c:5: --- bot --- --- editor --- --- test_server --- --- 0verkill --- --- x0verkill --- --- xeditor --- --- server.o --- /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ server.c:339:70: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:339:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] --- avi.o --- cc -pipe -fcommon -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avi.c --- server.o --- 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: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:340:14: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while(fgets(line,1024,stream)) ^~~~ In file included from server.c:5: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ server.c:342:4: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] p=line; ^ server.c:348:64: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:348:112: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} --- 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 --- server.o --- ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:363:19: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:363:61: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:363:113: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c: In function 'print_ip': server.c:376:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"%d",*((unsigned char *)&ip)); ^~~ In file included from server.c:5: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:378:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); ^~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:378:14: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); ~~~^~~~~~~~~~~~ In file included from server.c:5: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ server.c: In function 'message': server.c:398:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(timestamp,64,"%2d.%2d.%d %02d:%02d:%02d ",tm.tm_mday,tm.tm_mon+1,tm.tm_year+1900,tm.tm_hour,tm.tm_min,tm.tm_sec); ^~~~~~~~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' --- 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 --- server.o --- int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'init_socket': server.c:477:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(msg,256,"Error: Can't bind socket to port %d!\n",port); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:478:9: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] ERROR(msg); ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c: In function 'select_hero': server.c:501:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"hero%d",num); ^~~ In file included from server.c:5: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ server.c: In function 'add_player': server.c:542:12: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] {message("Not enough memory.\n",2);return 1;} ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:543:35: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] cp->member.name=mem_alloc(strlen(name)+1); ^~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:545:25: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] {mem_free(cp);message("Not enough memory.\n",2);return 1;} ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:560:37: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(cp->member.name,name,strlen(name)+1); ^~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:567:52: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] {mem_free(cp->member.name);mem_free(cp);message ("No such color.\n",1);return 1;} ^~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:570:51: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] {mem_free(cp->member.name);mem_free(cp);message("Can't create object.\n",1);return 1;} ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c: In function 'send_info': server.c:889:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] l=strlen((t[a])->name)+1; ~~~~~~^~~~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c: In function 'send_message': server.c:908:28: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} ~~~~~~^~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:908:56: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} ^~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:909:23: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ~~~~~~^~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:909:60: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:909:73: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c: In function 'sendall_message': server.c:924:28: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ~~~~~~^~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:924:56: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ^~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:925:23: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ~~~~~~^~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:925:60: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:925:73: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ^~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c: In function 'find_player': server.c:1153:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (p->next->member.id==id) ^~ server.c:1155:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return 0; ^~~~~~ server.c: In function 'create_noise': server.c:1172:82: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] o=new_obj(id,T_NOISE,NOISE_TTL,noise_sprite,0,0,int2double(x),int2double(y),0,0,(void *)(p->id)); ^ server.c: In function 'read_data': server.c:1216:14: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Incompatible client version.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:1225:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1229:14: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Incompatible client version. Player refused.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:1235:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(packet+5) > MAX_NAME_LEN) ~~~~~~^~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:1237:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Name too long, shortening it to %i characters\n",MAX_NAME_LEN); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1244:14: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Player refused.\n",2); ^~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:1250:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1252:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s entered the game.",packet+5); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1273:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] --- 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 --- server.o --- snprintf(txt,256,"There'%s %d %s in the game.",active_players==1?"s":"re",active_players,active_players==1?"player":"players"); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1316:36: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(packet+1,p->name,strlen(p->name)+1); ~^~~~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:1317:29: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] sendall(packet,2+strlen(p->name),0); ~^~~~~~ In file included from server.c:35: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ server.c:1318:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Game terminated by player \"%s\".\n",p->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1330:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s left the game.\n",q->member.name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ --- avi.o --- In file included from avi.c:11: error.h: In function 'mem_alloc': error.h:55:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (malloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_calloc': error.h:66:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (calloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ error.h: In function 'mem_free': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] --- 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 --- 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 --- 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 --- server.o --- server.c:1334:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s left the game.",q->member.name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1360:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s> %s\n",q->member.name,packet+1); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1365:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Unknown packet: head=%d\n",*packet); --- avi.o --- #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:76:3: note: in expansion of macro 'internal' internal("mem_free(NULL)"); ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] internal("mem_free(NULL)"); ^~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h: In function 'mem_realloc': error.h:31:26: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] #define internal errfile = __FILE__, errline = __LINE__, int_error ^ error.h:86:3: note: in expansion of macro 'internal' internal("mem_realloc(NULL, %d)", size); ^~~~~~~~ error.h:86:12: warning: pointer targets in passing argument 1 of 'int_error' differ in signedness [-Wpointer-sign] --- server.o --- ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'create_corpse': server.c:1405:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"corpse%d",num); ^~~ In file included from server.c:5: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ server.c: In function 'dynamic_collision': server.c:1510:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got grenades"); ^~~~~~~~~~~~~~~~~~ --- avi.o --- internal("mem_realloc(NULL, %d)", size); ^~~~~~~~~~~~~~~~~~~~~~~ error.h:16:6: note: expected 'unsigned char *' but argument is of type 'char *' void int_error(unsigned char *, ...); ^~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of 'error' differ in signedness [-Wpointer-sign] error("ERROR: out of memory (realloc returned NULL)\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:14:6: note: expected 'unsigned char *' but argument is of type 'char *' void error(unsigned char *, ...); ^~~~~ avi.c: In function 'load_line': avi.c:60:14: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] if (!(fgets(line,sizeof(line),f))){ ^~~~ In file included from avi.c:2: /usr/include/stdio.h:221:7: note: expected 'char * restrict' but argument is of type 'unsigned char *' char *fgets(char * __restrict, int, FILE * __restrict); ^~~~~ avi.c: In function 'read_number': --- server.o --- server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1511:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got grenades.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1534:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got a magazine"); ^~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' --- avi.o --- avi.c:70:16: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] retval=strtol(lptr,(char **)&lptr,0); ^~~~ In file included from avi.c:1: /usr/include/stdlib.h:119:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' long strtol(const char * __restrict, char ** __restrict, int); ^~~~~~ avi.c: In function 'load_avi': avi.c:184:10: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] f=fopen(filename,"r"); ^~~~~~~~ In file included from avi.c:2: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ avi.c: In function 'save_avi': avi.c:260:10: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] f=fopen(filename,"w"); ^~~~~~~~ In file included from avi.c:2: --- server.o --- void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1535:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got a magazine.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1558:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got shotgun shells"); ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ --- avi.o --- /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ avi.c: In function 'print_bottom_line': avi.c:393:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,32,"%d",cursor_pos); ^~~ In file included from avi.c:2: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ avi.c:394:31: warning: pointer targets in passing argument 4 of 'print2screen' differ in signedness [-Wpointer-sign] print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; ^~~ In file included from avi.c:8: blit.h:44:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void print2screen(int x,int y,unsigned char color,char* message); --- server.o --- server.c:1559:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got shotgun shells.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1582:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got cartridges"); ^~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1583:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] --- avi.o --- ^~~~~~~~~~~~ avi.c:394:46: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] print2screen(x,SCREEN_Y-2,11,txt);x+=strlen(txt)+2; ^~~ In file included from avi.c:3: /usr/include/string.h:110:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^~~~~~ avi.c:396:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,32,"% 5d",cursor_x); ^~~ In file included from avi.c:2: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ avi.c:397:31: warning: pointer targets in passing argument 4 of 'print2screen' differ in signedness [-Wpointer-sign] print2screen(x,SCREEN_Y-2,11,txt);x+=5; ^~~ --- server.o --- snprintf(txt,256,"%s got cartridges.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1606:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got ammo for Uzi"); ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1607:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got Uzi ammo.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: --- avi.o --- In file included from avi.c:8: blit.h:44:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void print2screen(int x,int y,unsigned char color,char* message); ^~~~~~~~~~~~ avi.c:399:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,32,"% 5d",cursor_y); ^~~ In file included from avi.c:2: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ avi.c:400:31: warning: pointer targets in passing argument 4 of 'print2screen' differ in signedness [-Wpointer-sign] print2screen(x,SCREEN_Y-2,11,txt);x+=5; ^~~ In file included from avi.c:8: blit.h:44:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void print2screen(int x,int y,unsigned char color,char* message); ^~~~~~~~~~~~ --- server.o --- /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1631:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got Uzi"); ^~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1632:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got Uzi.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' --- avi.o --- avi.c: In function 'main': avi.c:711:15: warning: pointer targets in passing argument 1 of 'load_avi' differ in signedness [-Wpointer-sign] load_avi(argv[1]); ~~~~^~~ avi.c:180:6: note: expected 'unsigned char *' but argument is of type 'char *' void load_avi(unsigned char *filename) ^~~~~~~~ avi.c:713:15: warning: pointer targets in passing argument 1 of 'save_avi' differ in signedness [-Wpointer-sign] save_avi(argv[1]); ~~~~^~~ avi.c:251:6: note: expected 'unsigned char *' but argument is of type 'char *' void save_avi(unsigned char *filename) ^~~~~~~~ --- server.o --- int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1656:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got sniper rifle"); ^~~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1657:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got sniper rifle.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1681:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got a shotgun"); ^~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1682:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got a shotgun.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1698:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got invisibility dope"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1699:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got invisibility.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1715:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You got armor"); ^~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1716:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s got armor.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1732:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You picked up a medikit"); ^~~~~~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1733:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s picked up a medikit.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1748:47: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(p->data),0,"You killed yourself"); ^~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1749:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s suicides",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1751:15: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s suicides.\n",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1802:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] o=&((find_in_table((int)(obj->data)))->member); /* owner of the bullet */ ^ server.c:1807:48: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] send_message((struct player*)(o->data),0,"You killed yourself"); ^~~~~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:1808:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s suicides",((struct player*)(o->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1810:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s suicides.\n",((struct player*)(o->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1816:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s killed %s.",((struct player*)(o->data))->name,((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1818:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s killed you",((struct player*)(o->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1820:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"You killed %s",((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:1822:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s killed %s.\n",((struct player*)(o->data))->name,((struct player*)(p->data))->name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'update_game': server.c:1927:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] q=find_player(0,(int)(p->next->member.data)); ^ server.c:1954:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(p->next->member.id)); ^ server.c: In function 'signal_handler': server.c:2168:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Signal %d caught.\n",sig_num); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'change_weapon_player': server.c:2253:21: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] {send_message(q,0,"No weapon.");return;} ^~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:2255:21: warning: pointer targets in passing argument 3 of 'send_message' differ in signedness [-Wpointer-sign] {send_message(q,0,"Not enough ammo.");return;} ^~~~~~~~~~~~~~~~~~ server.c:902:6: note: expected 'unsigned char *' but argument is of type 'char *' void send_message(struct player* player,unsigned char *name,unsigned char *msg) ^~~~~~~~~~~~ server.c:2257:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s takes %s.\n",q->name,weapon[w].name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'fire_player': server.c:2293:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2307:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2321:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2335:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2349:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2363:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2377:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2396:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c:2410:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)(q->obj->id)); ^ server.c: In function 'update_players': server.c:2497:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s not responding. Kicked out of the game.\n",p->next->member.name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2501:13: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s was kicked out of the game.",p->next->member.name); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c: In function 'server': server.c:2643:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Running 0verkill server version %d.%d\n",VERSION_MAJOR,VERSION_MINOR); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2649:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Initialization.\n",2); ^~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2667:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Loading sprites.\n",2); ^~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ In file included from data.h:7, from server.c:46: cfg.h:25:19: warning: pointer targets in passing argument 1 of 'load_sprites' differ in signedness [-Wpointer-sign] #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfg.h:25:19: note: in definition of macro 'DATA_PATH' #define DATA_PATH "/usr/local/share/0verkill/data/" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from server.c:46: data.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void load_sprites(unsigned char *); ^~~~~~~~~~~~ server.c:2669:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2669:76: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2669:125: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2670:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2670:72: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2670:119: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2671:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2671:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2671:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2672:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2672:83: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2672:132: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2673:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2673:78: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2673:128: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2674:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2674:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2674:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2675:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2675:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2675:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2676:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2676:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2676:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2677:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2677:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2677:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2678:18: warning: pointer targets in passing argument 1 of 'find_sprite' differ in signedness [-Wpointer-sign] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~~~~~ In file included from server.c:46: data.h:149:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int find_sprite(unsigned char *,int *); ^~~~~~~~~~~ server.c:2678:74: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2678:122: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2681:11: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(txt,"shrapnel%d",a+1); ^~~ In file included from server.c:5: /usr/include/stdio.h:253:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2682:77: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ In file included from data.h:7, from server.c:46: server.c:2682:126: warning: pointer targets in passing argument 2 of 'fprintf' differ in signedness [-Wpointer-sign] if (find_sprite(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} ^~~ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5: /usr/include/stdio.h:223:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...) ^~~~~~~ server.c:2688:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"Loading level \"%s\"....\n",LEVEL); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2690:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2691:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Loading level graphics.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2693:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2694:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Loading level map.\n",2); ^~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2696:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); ^~~ In file included from server.c:5: /usr/include/stdio.h:267:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^~~~~~~~ server.c:2697:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Loading level objects.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2701:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Initializing socket.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2704:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Installing signal handlers.\n",2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2714:10: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Game started.\n",2); ^~~~~~~~~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2741:11: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Sleep\n",2); ^~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c:2748:11: warning: pointer targets in passing argument 1 of 'message' differ in signedness [-Wpointer-sign] message("Wakeup\n",2); ^~~~~~~~~~ server.c:383:6: note: expected 'unsigned char *' but argument is of type 'char *' void message(unsigned char *msg,int output) ^~~~~~~ server.c: In function 'dynamic_collision': server.c:1779:8: warning: this statement may fall through [-Wimplicit-fallthrough=] if (p->type==T_CORPSE) ^ server.c:1791:5: note: here case T_BULLET: ^~~~ server.c: In function 'update_game': server.c:2094:4: warning: this statement may fall through [-Wimplicit-fallthrough=] sendall_chunked(packet,5,0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:2096:4: note: here case 2: ^~~~ server.c: In function 'read_data': server.c:1225:74: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 194 and 208 [-Wformat-truncation=] snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); ^~ ~~~~ server.c:1225:5: note: 'snprintf' output between 51 and 320 bytes into a destination of size 256 snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1250:65: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); ^~ ~~~~ server.c:1250:5: note: 'snprintf' output 40 or more bytes (assuming 295) into a destination of size 256 snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'server': server.c:2682:106: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 237 [-Wformat-truncation=] 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);} ^~ ~~~ server.c:2682:68: note: 'snprintf' output between 23 and 278 bytes into a destination of size 256 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);} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 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 --- 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 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: run-depends ------------------------------------------------------------------------------- ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: stage ------------------------------------------------------------------------------- ===> Staging for 0verkill-0.16_2 ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Generating temporary packing list install -s -m 555 /construction/games/0verkill/0verkill-0.16/0verkill /construction/games/0verkill/stage/usr/local/bin install -s -m 555 /construction/games/0verkill/0verkill-0.16/avi /construction/games/0verkill/stage/usr/local/bin/0verkill-avi install -s -m 555 /construction/games/0verkill/0verkill-0.16/bot /construction/games/0verkill/stage/usr/local/bin/0verkill-bot install -s -m 555 /construction/games/0verkill/0verkill-0.16/editor /construction/games/0verkill/stage/usr/local/bin/0verkill-editor install -s -m 555 /construction/games/0verkill/0verkill-0.16/server /construction/games/0verkill/stage/usr/local/bin/0verkill-server install -s -m 555 /construction/games/0verkill/0verkill-0.16/test_server /construction/games/0verkill/stage/usr/local/bin/0verkill-test_server install -s -m 555 /construction/games/0verkill/0verkill-0.16/x0verkill /construction/games/0verkill/stage/usr/local/bin install -s -m 555 /construction/games/0verkill/0verkill-0.16/xavi /construction/games/0verkill/stage/usr/local/bin/x0verkill-avi install -s -m 555 /construction/games/0verkill/0verkill-0.16/xeditor /construction/games/0verkill/stage/usr/local/bin/x0verkill-editor cd /construction/games/0verkill/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 /construction/games/0verkill/stage/usr/local/share/0verkill cd /construction/games/0verkill/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 /construction/games/0verkill/stage/usr/local/share/0verkill install -m 0644 /construction/games/0verkill/0verkill-0.16/doc/AUTHORS /construction/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /construction/games/0verkill/0verkill-0.16/doc/README.html /construction/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /construction/games/0verkill/0verkill-0.16/doc/avi.txt /construction/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /construction/games/0verkill/0verkill-0.16/doc/bot.txt /construction/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /construction/games/0verkill/0verkill-0.16/doc/doc.html /construction/games/0verkill/stage/usr/local/share/doc/0verkill ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Error: /usr/local/bin/x0verkill is linked to /usr/local/lib/libX11.so.6 from x11/libX11 but it is not declared as a dependency Warning: you need USE_XORG+=x11 Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: check-plist ------------------------------------------------------------------------------- ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: package ------------------------------------------------------------------------------- ===> Building package for 0verkill-0.16_2 file sizes/checksums [252]: 0% file sizes/checksums [252]: 39% file sizes/checksums [252]: 79% file sizes/checksums [252]: 100% Service unavailablepacking files [252]: 0% packing files [252]: 39% packing files [252]: 79% packing files [252]: 100% packing directories [0]: 0% packing directories [0]: 100% SUCCEEDED 00:00:01 TOTAL TIME 00:00:08