=> Building games/0verkill build started at Tue Oct 4 21:25:29 PDT 2016 port directory: /usr/ports/games/0verkill building for: DragonFly pkgbox64.dragonflybsd.org 4.7-DEVELOPMENT DragonFly v4.7.0.78.g7d868-DEVELOPMENT #7: Mon Aug 1 22:25:32 PDT 2016 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 maintained by: mich@FreeBSD.org ident warning: no id keywords in /build/boomdata/data/.m/bleeding-edge-default/ref/../04//usr/ports/games/0verkill/Makefile Makefile ident: Poudriere version: 3.1-pre Host OSVERSION: 400700 Jail OSVERSION: 400702 !!! Jail is newer than host. (Jail: 400702, Host: 400700) !!! !!! This is not supported. !!! !!! Host kernel must be same or newer than jail. !!! !!! Expect build failures. !!! ---Begin Environment--- STATUS=1 SAVED_TERM=screen MASTERMNT=/build/boomdata/data/.m/bleeding-edge-default/ref PATH=/usr/local/libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/xorg/bin:/usr/X11R6/bin:/root/bin:/sbin:/usr/sbin POUDRIERE_BUILD_TYPE=bulk PKGNAME=0verkill-0.16_2 OLDPWD=/root/boom PWD=/build/boomdata/data/.m/bleeding-edge-default/ref/.p/pool MASTERNAME=bleeding-edge-default TERM=cons25 USER=root HOME=/root POUDRIERE_VERSION=3.1-pre LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ===> The following configuration options are available for 0verkill-0.16_2: DOCS=on: Build and/or install documentation X11=on: X11 (graphics) support ===> Use 'make config' to modify these settings ---End OPTIONS List--- --CONFIGURE_ARGS-- --with-x --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/games/0verkill XDG_CONFIG_HOME=/wrkdirs/games/0verkill HOME=/wrkdirs/games/0verkill TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/games/0verkill XDG_CONFIG_HOME=/wrkdirs/games/0verkill HOME=/wrkdirs/games/0verkill TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- DOCS="" NO_DOCS="@comment " X11="" NO_X11="@comment " OSREL=4.7 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/0verkill" EXAMPLESDIR="share/examples/0verkill" DATADIR="share/0verkill" WWWDIR="www/0verkill" ETCDIR="etc/0verkill" --End PLIST_SUB-- --SUB_LIST-- DOCS="" NO_DOCS="@comment " X11="" NO_X11="@comment " PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/0verkill DOCSDIR=/usr/local/share/doc/0verkill EXAMPLESDIR=/usr/local/share/examples/0verkill WWWDIR=/usr/local/www/0verkill ETCDIR=/usr/local/etc/0verkill --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs NO_BACKUP=yes USE_PACKAGE_DEPENDS=yes PKG_CREATE_VERBOSE=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORT_DBDIR=/options PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles MAKE_JOBS_NUMBER=5 ---End make.conf--- =================================================== ===> License GPLv2 accepted by the user =========================================================================== =================================================== ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.8.7_3.txz Installing pkg-1.8.7_3... Extracting pkg-1.8.7_3: .......... done ===> 0verkill-0.16_2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of 0verkill-0.16_2 =========================================================================== =================================================== =========================================================================== =================================================== ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by 0verkill-0.16_2 for building =========================================================================== =================================================== ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by 0verkill-0.16_2 for building => SHA256 Checksum OK for 0verkill-0.16.tgz. =========================================================================== =================================================== =========================================================================== =================================================== ===> License GPLv2 accepted by the user ===> 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. =========================================================================== =================================================== =========================================================================== =================================================== ===> Patching for 0verkill-0.16_2 ===> Applying ports patches for 0verkill-0.16_2 =========================================================================== =================================================== ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found ===> Installing existing package /packages/All/libXpm-3.5.11_4.txz Installing libXpm-3.5.11_4... `-- Installing xproto-7.0.28... `-- Extracting xproto-7.0.28: .......... done `-- Installing libXt-1.1.5,1... | `-- Installing libSM-1.2.2_3,1... | | `-- Installing libICE-1.0.9_1,1... | | `-- Extracting libICE-1.0.9_1,1: .......... done | `-- Extracting libSM-1.2.2_3,1: .......... done | `-- Installing libX11-1.6.3,1... | | `-- Installing kbproto-1.0.7... | | `-- Extracting kbproto-1.0.7: .......... done | | `-- Installing libXdmcp-1.1.2... | | `-- Extracting libXdmcp-1.1.2: ......... done | | `-- Installing libxcb-1.11.1... | | `-- Installing libxml2-2.9.4... | | `-- Extracting libxml2-2.9.4: .......... done | | `-- Installing libpthread-stubs-0.3_6... | | `-- Extracting libpthread-stubs-0.3_6: ..... done | | `-- Installing libXau-1.0.8_3... | | `-- Extracting libXau-1.0.8_3: .......... done | | `-- Extracting libxcb-1.11.1: .......... done | `-- Extracting libX11-1.6.3,1: .......... done `-- Extracting libXt-1.1.5,1: .......... done `-- Installing libXext-1.3.3_1,1... | `-- Installing xextproto-7.3.0... | `-- Extracting xextproto-7.3.0: .......... done `-- Extracting libXext-1.3.3_1,1: .......... done `-- Installing gettext-runtime-0.19.8.1... | `-- Installing indexinfo-0.2.5... | `-- Extracting indexinfo-0.2.5: .... done `-- Extracting gettext-runtime-0.19.8.1: .......... done Extracting libXpm-3.5.11_4: .......... done ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of 0verkill-0.16_2 =========================================================================== =================================================== =========================================================================== =================================================== ===> Configuring for 0verkill-0.16_2 configure: warning: x86_64-portbld-dragonfly4.7: invalid host type loading site script /usr/ports/Templates/config.site creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc -pipe -O2 -fno-strict-aliasing ) works... yes checking whether the C compiler (cc -pipe -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... 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 =========================================================================== =================================================== ===> Building for 0verkill-0.16_2 --- kbd.o --- --- xclient.o --- --- server.o --- --- data.o --- --- sprite.o --- --- kbd.o --- cc -pipe -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 -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -DXWINDOW -o xclient.o client.c --- server.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c server.c --- data.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c data.c --- sprite.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c sprite.c --- data.o --- In file included from data.c:14:0: 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 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 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 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 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 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 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 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:15: 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:0: /usr/include/string.h:83: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:0: /usr/include/string.h:83: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:197: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 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:0, 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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: 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 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:0: /usr/include/string.h:105: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 differ in signedness [-Wpointer-sign] q=load_level(level_num); ^ In file included from data.h:7:0, 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/" ^ data.c:617:17: note: in expansion of macro 'DATA_PATH' if (!__add_md5(DATA_PATH LEVEL_FILE,&len,&result)){mem_free(result);return NULL;} ^ --- xclient.o --- In file included from client.c:67:0: 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 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)"); ^ --- data.o --- 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ --- xclient.o --- 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 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] --- data.o --- 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: --- xclient.o --- 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.o --- /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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 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 return differ in signedness [-Wpointer-sign] return q; ^ --- xclient.o --- 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:196: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:0: /usr/include/stdlib.h:113: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:15: 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:14: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:83:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^ client.c:1189:19: 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:0: /usr/include/string.h:83: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:0: /usr/include/stdio.h:233: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:0: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ client.c:1229:13: 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:0: /usr/include/string.h:105: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/string.h:105: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:0: 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:0: 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:0: 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:0, 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/" ^ client.c:2030:15: note: in expansion of macro 'DATA_PATH' load_sprites(DATA_PATH GAME_SPRITES_FILE); ^ In file included from client.c:58:0: 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:0: 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:0: 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:0: 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:0: /usr/include/stdio.h:223:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...); ^ --- sprite.o --- In file included from sprite.c:16:0: 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 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 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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:237:33: 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:0: /usr/include/stdlib.h:113: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:258:46: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...); ^ sprite.c:291:13: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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 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 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...); ^ --- server.o --- In file included from server.c:54:0: 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 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 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 *, ...); ^ 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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:233: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:0, from server.c:46: server.c:339:122: warning: pointer targets in passing argument 2 of 'fprintf' 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);} ^ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:196: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 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:0: /usr/include/stdio.h:233: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:0, 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);} ^ cfg.h:160:36: note: in definition of macro 'ERROR' #define ERROR(a) {fprintf(stderr,a);} ^ In file included from server.c:5:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:223: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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ server.c:378:11: 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:0: /usr/include/stdio.h:223: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:0: /usr/include/stdio.h:233: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 '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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:223: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:12: 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:0: /usr/include/string.h:105: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:22: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ server.c:909:17: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:22: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ server.c:925:17: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ 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:0: /usr/include/stdio.h:233: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:16: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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] 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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ server.c:1316:35: 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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ server.c:1317:28: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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); ^ In file included from server.c:5:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:223: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"); ^ 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:0: /usr/include/stdio.h:233: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 *' 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:0: /usr/include/stdio.h:233: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) ^ 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:0: /usr/include/stdio.h:233: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] snprintf(txt,256,"%s got cartridges.\n",((struct player*)(p->data))->name); ^ In file included from server.c:5:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0, 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/" ^ server.c:2668:15: note: in expansion of macro 'DATA_PATH' load_sprites(DATA_PATH GAME_SPRITES_FILE); /* players, corpses, bullets, ... */ ^ In file included from server.c:46:0: 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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:223: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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) ^ --- blit.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c blit.c In file included from blit.c:12:0: 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 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 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.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c console.c In file included from console.c:19:0: 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 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 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 *, ...); ^ --- hash.o --- cc -pipe -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:0: 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 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 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 *, ...); ^ --- time.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c time.c --- net.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c net.c --- crc32.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c crc32.c --- md5.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5.c --- net.o --- In file included from net.c:14:0: 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 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 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:0: /usr/include/sys/socket.h:495:9: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'int *' ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, socklen_t *); ^ --- md5hl.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c md5hl.c --- error.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c error.c --- md5hl.o --- In file included from md5hl.c:22:0: 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: 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 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 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.o --- In file included from error.c:12:0: 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 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 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:0: /usr/include/stdio.h:228: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:0: /usr/include/stdio.h:223: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:0: /usr/include/string.h:81: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:0: /usr/include/string.h:81: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:0: /usr/include/stdio.h:223: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:0: /usr/include/string.h:81: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:0: /usr/include/string.h:81:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' char *strcat(char * __restrict, const char * __restrict); ^ --- client.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c client.c --- help.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c help.c --- client.o --- In file included from client.c:67:0: 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 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 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:196: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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:196: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:0: /usr/include/stdlib.h:113: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:15: 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:14: 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/string.h:83:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^ client.c:1189:19: 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:0: /usr/include/string.h:83: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:0: /usr/include/stdio.h:233: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:0: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ client.c:1229:13: 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:0: /usr/include/string.h:105: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:0: 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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/string.h:105: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:0: 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:0: 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:0: 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:0, 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/" ^ client.c:2030:15: note: in expansion of macro 'DATA_PATH' load_sprites(DATA_PATH GAME_SPRITES_FILE); ^ In file included from client.c:58:0: 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:0: 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:0: 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:0: 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:0: /usr/include/stdio.h:223:6: note: expected 'char * restrict' but argument is of type 'unsigned char *' int sprintf(char * __restrict, const char * __restrict, ...); ^ --- xinterface.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c xinterface.c --- xkbd.o --- cc -pipe -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; ^ --- editor.o --- cc -pipe -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 -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c test_server.c In file included from test_server.c:21:0: 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 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 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:0: 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: 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 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 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:0: 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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:223: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:0: /usr/include/stdio.h:200: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:0: /usr/include/stdio.h:200: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:223: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:0: 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:0: /usr/include/stdio.h:223: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:0: 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:0: /usr/include/stdio.h:223: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:0: 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:0: /usr/include/stdio.h:223: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:0: console.h:17:13: note: expected 'char *' but argument is of type 'unsigned char *' extern void c_print(char *text); ^ --- avi.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avi.c In file included from avi.c:11:0: 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 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 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 *, ...); ^ 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:0: /usr/include/stdio.h:196: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': 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:0: /usr/include/stdlib.h:113: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:197: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:0: /usr/include/stdio.h:233: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:0: 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: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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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; ^ In file included from avi.c:8:0: 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:0: /usr/include/stdio.h:233: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:0: 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: In function 'main': avi.c:711:11: 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:11: 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) ^ --- avihelp.o --- cc -pipe -O2 -fno-strict-aliasing -I/usr/local/include -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c avihelp.c --- bot.o --- cc -pipe -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:0: 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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:0: /usr/include/string.h:105: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:0: /usr/include/stdio.h:233: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:0, 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:0: /usr/include/stdio.h:198: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:0: /usr/include/stdio.h:233: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:0: /usr/include/stdio.h:233: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:14: 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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ bot.c:865:14: 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:0: /usr/include/string.h:105:9: note: expected 'const char *' but argument is of type 'unsigned char *' size_t strlen(const char *) __pure; ^ bot.c:874:13: 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:0: /usr/include/string.h:105: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:0: /usr/include/string.h:83:6: note: expected 'const char *' but argument is of type 'unsigned char *' int strcmp(const char *, const char *) __pure; ^ bot.c:929:19: 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:0: /usr/include/string.h:83: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:0: 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 differ in signedness [-Wpointer-sign] host=optarg; ^ In file included from data.h:7:0, 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/" ^ bot.c:1107:15: note: in expansion of macro 'DATA_PATH' load_sprites(DATA_PATH GAME_SPRITES_FILE); ^ In file included from bot.c:55:0: 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 differ in signedness [-Wpointer-sign] if ((m=find_server(host,port))){ERROR(m);EXIT(1);} ^ In file included from data.h:7:0, 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:0: /usr/include/stdio.h:198: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 differ in signedness [-Wpointer-sign] if ((m=init_socket())){ERROR(m);EXIT(1);} ^ In file included from data.h:7:0, 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:0: /usr/include/stdio.h:198: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 differ in signedness [-Wpointer-sign] if ((m=contact_server(color,select_name()))){ERROR(m);EXIT(1);} ^ In file included from data.h:7:0, 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:0: /usr/include/stdio.h:198:6: note: expected 'const char * restrict' but argument is of type 'unsigned char *' int fprintf(FILE * __restrict, const char * __restrict, ...); ^ --- test_server --- cc -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o -lm --- editor --- cc -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o -lm --- xeditor --- cc -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o -lm -L/usr/local/lib -lX11 -lXpm --- 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 --- 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 --- 0verkill --- cc -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o -lm --- x0verkill --- cc -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o -lm -L/usr/local/lib -lX11 -lXpm --- 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 =========================================================================== =================================================== ===> 0verkill-0.16_2 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===> Staging for 0verkill-0.16_2 ===> Generating temporary packing list install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/0verkill /wrkdirs/games/0verkill/stage/usr/local/bin install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/avi /wrkdirs/games/0verkill/stage/usr/local/bin/0verkill-avi install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/bot /wrkdirs/games/0verkill/stage/usr/local/bin/0verkill-bot install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/editor /wrkdirs/games/0verkill/stage/usr/local/bin/0verkill-editor install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/server /wrkdirs/games/0verkill/stage/usr/local/bin/0verkill-server install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/test_server /wrkdirs/games/0verkill/stage/usr/local/bin/0verkill-test_server install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/x0verkill /wrkdirs/games/0verkill/stage/usr/local/bin install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/xavi /wrkdirs/games/0verkill/stage/usr/local/bin/x0verkill-avi install -s -m 555 /wrkdirs/games/0verkill/0verkill-0.16/xeditor /wrkdirs/games/0verkill/stage/usr/local/bin/x0verkill-editor cd /wrkdirs/games/0verkill/0verkill-0.16 && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- data /wrkdirs/games/0verkill/stage/usr/local/share/0verkill cd /wrkdirs/games/0verkill/0verkill-0.16 && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- grx /wrkdirs/games/0verkill/stage/usr/local/share/0verkill install -m 0644 /wrkdirs/games/0verkill/0verkill-0.16/doc/AUTHORS /wrkdirs/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/games/0verkill/0verkill-0.16/doc/README.html /wrkdirs/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/games/0verkill/0verkill-0.16/doc/avi.txt /wrkdirs/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/games/0verkill/0verkill-0.16/doc/bot.txt /wrkdirs/games/0verkill/stage/usr/local/share/doc/0verkill install -m 0644 /wrkdirs/games/0verkill/0verkill-0.16/doc/doc.html /wrkdirs/games/0verkill/stage/usr/local/share/doc/0verkill ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===> Building package for 0verkill-0.16_2 file sizes/checksums [255]: ... done packing files [255]: ... done packing directories [0]: . done =========================================================================== => Cleaning up wrkdir ===> Cleaning for 0verkill-0.16_2 build of games/0verkill ended at Tue Oct 4 21:25:43 PDT 2016 build time: 00:00:14