* Package: games-action/0verkill-0.16-r4 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking 0verkill-0.16.tgz to /var/tmp/portage/games-action/0verkill-0.16-r4/work >>> Source unpacked in /var/tmp/portage/games-action/0verkill-0.16-r4/work >>> Preparing source in /var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16 ... * Applying 0verkill-0.16-docs.patch ... [ ok ] * Applying 0verkill-0.16-home-overflow.patch ... [ ok ] * Applying 0verkill-0.16-segv.patch ... [ ok ] * Applying 0verkill-0.16-gentoo-paths.patch ... [ ok ] * Applying 0verkill-0.16-ovflfix.patch ... [ ok ] * Applying 0verkill-0.16-CC.patch ... [ ok ] * Applying 0verkill-0.16-underflow-check.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16' ... * Running aclocal ... [ ok ] * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: 0verkill-0.16/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/0verkill-0.16-r4 --htmldir=/usr/share/doc/0verkill-0.16-r4/html --libdir=/usr/lib64 --without-x checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for EMX... no checking for main in -lm... yes checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking linux/vt.h usability... yes checking linux/vt.h presence... yes checking for linux/vt.h... yes checking linux/kd.h usability... yes checking linux/kd.h presence... yes checking for linux/kd.h... yes checking siginfo.h usability... no checking siginfo.h presence... no checking for siginfo.h... no checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for an ANSI C-conforming 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 x86_64-pc-linux-gnu-gcc needs -traditional... no checking return type of signal handlers... void checking for gettimeofday... yes checking for select... yes checking for strtol... yes checking for strtoul... yes checking for getopt... yes checking for calloc... yes checking for psignal... yes checking for random... yes checking for srandom... yes checking for socket... yes checking for typeof... yes checking for gethostbyname... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h >>> Source configured. >>> Compiling source in /var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16 ... make -j1 x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o server.o server.c In file included from server.c:54: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 339 | if (!(stream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} | ^~~~~~~~ | | | unsigned char * In file included from server.c:5: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ server.c:339:70: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 339 | tream=fopen(filename,"rb"))){unsigned char msg[256];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:339:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 339 | 56];snprintf(msg,256,"Can't open file \"%s\"!\n",filename);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:340:14: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 340 | while(fgets(line,1024,stream)) | ^~~~ | | | unsigned char * In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:255:25: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 255 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ server.c:342:4: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 342 | p=line; | ^ server.c:348:64: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 348 | if ((t=_convert_type(*p))<0){unsigned char msg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:348:112: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 348 | sg[256];snprintf(msg,256,"Unknown object type '%c'.\n",*p);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:363:19: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 363 | if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} | ^~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | 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] 363 | if (find_sprite(name,&n)){unsigned char msg[256];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:363:113: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 363 | 56];snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c: In function ‘print_ip’: server.c:376:10: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 376 | sprintf(txt,"%d",*((unsigned char *)&ip)); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ server.c:378:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 378 | sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); | ^~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:378:14: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 378 | sprintf(txt+strlen(txt),".%d",((unsigned char *)&ip)[a]); | ~~~^~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ server.c: In function ‘message’: server.c:398:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 398 | snprintf(timestamp,64,"%2d.%2d.%d %02d:%02d:%02d ",tm.tm_mday,tm.tm_mon+1,tm.tm_year+1900,tm.tm_hour,tm.tm_min,tm.tm_sec); | ^~~~~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘init_socket’: server.c:477:12: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 477 | snprintf(msg,256,"Error: Can't bind socket to port %d!\n",port); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:478:9: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 478 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c: In function ‘select_hero’: server.c:501:10: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 501 | sprintf(txt,"hero%d",num); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ server.c: In function ‘add_player’: server.c:542:12: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 542 | {message("Not enough memory.\n",2);return 1;} | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | 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] 543 | cp->member.name=mem_alloc(strlen(name)+1); | ^~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:545:25: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 545 | {mem_free(cp);message("Not enough memory.\n",2);return 1;} | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | 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] 560 | memcpy(cp->member.name,name,strlen(name)+1); | ^~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:567:52: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 567 | {mem_free(cp->member.name);mem_free(cp);message ("No such color.\n",1);return 1;} | ^~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | 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] 570 | {mem_free(cp->member.name);mem_free(cp);message("Can't create object.\n",1);return 1;} | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c: In function ‘send_info’: server.c:889:18: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 889 | l=strlen((t[a])->name)+1; | ~~~~~~^~~~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c: In function ‘send_message’: server.c:908:28: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 908 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ~~~~~~^~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:908:56: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 908 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ^~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:909:23: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 909 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ~~~~~~^~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:909:60: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 909 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:909:73: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 909 | se {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c: In function ‘sendall_message’: server.c:922:28: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 922 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ~~~~~~^~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:922:56: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 922 | if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} | ^~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:923:23: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 923 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ~~~~~~^~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:923:60: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 923 | else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:923:73: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 923 | se {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} | ^~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c: In function ‘find_player’: server.c:1149:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1149 | if (p->next->member.id==id) | ^~ server.c:1151:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1151 | return 0; | ^~~~~~ server.c: In function ‘create_noise’: server.c:1168:82: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1168 | SE,NOISE_TTL,noise_sprite,0,0,int2double(x),int2double(y),0,0,(void *)(p->id)); | ^ server.c: In function ‘read_data’: server.c:1212:14: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 1212 | message("Incompatible client version.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:1221:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1221 | snprintf(txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1225:14: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 1225 | message("Incompatible client version. Player refused.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:1234:14: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 1234 | message("Player refused.\n",2); | ^~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:1240:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1240 | snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1242:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1242 | snprintf(txt,256,"%s entered the game.",packet+5); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1263:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1263 | snprintf(txt,256,"There'%s %d %s in the game.",active_players==1?"s":"re",active_players,active_players==1?"player":"players"); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1306:36: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 1306 | memcpy(packet+1,p->name,strlen(p->name)+1); | ~^~~~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:1307:29: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 1307 | sendall(packet,2+strlen(p->name),0); | ~^~~~~~ | | | unsigned char * In file included from server.c:35: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ server.c:1308:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1308 | snprintf(txt,256,"Game terminated by player \"%s\".\n",p->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1320:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1320 | snprintf(txt,256,"%s left the game.\n",q->member.name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1324:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1324 | snprintf(txt,256,"%s left the game.",q->member.name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1350:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1350 | snprintf(txt,256,"%s> %s\n",q->member.name,packet+1); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1355:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1355 | snprintf(txt,256,"Unknown packet: head=%d\n",*packet); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘create_corpse’: server.c:1395:10: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 1395 | sprintf(txt,"corpse%d",num); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ server.c: In function ‘dynamic_collision’: server.c:1500:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1500 | send_message((struct player*)(p->data),0,"You got grenades"); | ^~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1501:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1501 | snprintf(txt,256,"%s got grenades.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1524:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1524 | send_message((struct player*)(p->data),0,"You got a magazine"); | ^~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1525:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1525 | snprintf(txt,256,"%s got a magazine.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1548:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1548 | send_message((struct player*)(p->data),0,"You got shotgun shells"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1549:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1549 | snprintf(txt,256,"%s got shotgun shells.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1572:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1572 | send_message((struct player*)(p->data),0,"You got cartridges"); | ^~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1573:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1573 | snprintf(txt,256,"%s got cartridges.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1596:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1596 | send_message((struct player*)(p->data),0,"You got ammo for Uzi"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1597:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1597 | snprintf(txt,256,"%s got Uzi ammo.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1621:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1621 | send_message((struct player*)(p->data),0,"You got Uzi"); | ^~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1622:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1622 | snprintf(txt,256,"%s got Uzi.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1646:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1646 | send_message((struct player*)(p->data),0,"You got sniper rifle"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1647:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1647 | snprintf(txt,256,"%s got sniper rifle.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1671:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1671 | send_message((struct player*)(p->data),0,"You got a shotgun"); | ^~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1672:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1672 | snprintf(txt,256,"%s got a shotgun.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1688:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1688 | send_message((struct player*)(p->data),0,"You got invisibility dope"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1689:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1689 | snprintf(txt,256,"%s got invisibility.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1705:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1705 | send_message((struct player*)(p->data),0,"You got armor"); | ^~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1706:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1706 | snprintf(txt,256,"%s got armor.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1722:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1722 | send_message((struct player*)(p->data),0,"You picked up a medikit"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1723:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1723 | snprintf(txt,256,"%s picked up a medikit.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1738:47: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1738 | send_message((struct player*)(p->data),0,"You killed yourself"); | ^~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1739:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1739 | snprintf(txt,256,"%s suicides",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1741:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1741 | snprintf(txt,256,"%s suicides.\n",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1792:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1792 | o=&((find_in_table((int)(obj->data)))->member); /* owner of the bullet */ | ^ server.c:1797:48: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 1797 | send_message((struct player*)(o->data),0,"You killed yourself"); | ^~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:1798:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1798 | snprintf(txt,256,"%s suicides",((struct player*)(o->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1800:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1800 | snprintf(txt,256,"%s suicides.\n",((struct player*)(o->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1806:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1806 | snprintf(txt,256,"%s killed %s.",((struct player*)(o->data))->name,((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1808:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1808 | snprintf(txt,256,"%s killed you",((struct player*)(o->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1810:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1810 | snprintf(txt,256,"You killed %s",((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:1812:16: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 1812 | snprintf(txt,256,"%s killed %s.\n",((struct player*)(o->data))->name,((struct player*)(p->data))->name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘update_game’: server.c:1917:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1917 | q=find_player(0,(int)(p->next->member.data)); | ^ server.c:1944:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1944 | (void *)(p->next->member.id)); | ^ server.c: In function ‘signal_handler’: server.c:2158:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2158 | snprintf(txt,256,"Signal %d caught.\n",sig_num); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘change_weapon_player’: server.c:2243:21: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 2243 | {send_message(q,0,"No weapon.");return;} | ^~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:2245:21: warning: pointer targets in passing argument 3 of ‘send_message’ differ in signedness [-Wpointer-sign] 2245 | {send_message(q,0,"Not enough ammo.");return;} | ^~~~~~~~~~~~~~~~~~ | | | char * server.c:902:76: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 902 | age(struct player* player,unsigned char *name,unsigned char *msg) | ~~~~~~~~~~~~~~~^~~ server.c:2247:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2247 | snprintf(txt,256,"%s takes %s.\n",q->name,weapon[w].name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘fire_player’: server.c:2283:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2283 | (void *)(q->obj->id)); | ^ server.c:2297:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2297 | (void *)(q->obj->id)); | ^ server.c:2311:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2311 | (void *)(q->obj->id)); | ^ server.c:2325:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2325 | (void *)(q->obj->id)); | ^ server.c:2339:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2339 | (void *)(q->obj->id)); | ^ server.c:2353:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2353 | (void *)(q->obj->id)); | ^ server.c:2367:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2367 | (void *)(q->obj->id)); | ^ server.c:2386:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2386 | (void *)(q->obj->id)); | ^ server.c:2400:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2400 | (void *)(q->obj->id)); | ^ server.c: In function ‘update_players’: server.c:2487:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2487 | snprintf(txt,256,"%s not responding. Kicked out of the game.\n",p->next->member.name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2491:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2491 | snprintf(txt,256,"%s was kicked out of the game.",p->next->member.name); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c: In function ‘server’: server.c:2633:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2633 | snprintf(txt,256,"Running 0verkill server version %d.%d\n",VERSION_MAJOR,VERSION_MINOR); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2639:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2639 | message("Initialization.\n",2); | ^~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2657:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2657 | message("Loading sprites.\n",2); | ^~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ In file included from data.h:7, from server.c:46: cfg.h:25:19: warning: pointer targets in passing argument 1 of ‘load_sprites’ differ in signedness [-Wpointer-sign] 25 | #define DATA_PATH "/usr/share/0verkill/data/" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:2658:15: note: in expansion of macro ‘DATA_PATH’ 2658 | load_sprites(DATA_PATH GAME_SPRITES_FILE); /* players, corpses, bullets, ... */ | ^~~~~~~~~ In file included from server.c:46: data.h:147:26: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 147 | extern void load_sprites(unsigned char *); | ^~~~~~~~~~~~~~~ server.c:2659:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2659 | if (find_sprite("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2659:76: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2659 | te("bullet",&bullet_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2659:125: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2659 | g[256];snprintf(msg,256,"Can't find sprite \"bullet\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2660:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2660 | if (find_sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} | ^~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2660:72: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2660 | sprite("slug",&slug_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2660:119: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2660 | msg[256];snprintf(msg,256,"Can't find sprite \"slug\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2661:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2661 | if (find_sprite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2661:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2661 | rite("shell",&shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2661:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2661 | sg[256];snprintf(msg,256,"Can't find sprite \"shell\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2662:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2662 | if (find_sprite("sshell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2662:83: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2662 | ell",&shotgun_shell_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2662:132: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2662 | g[256];snprintf(msg,256,"Can't find sprite \"sshell\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2663:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2663 | if (find_sprite("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2663:78: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2663 | ("grenade",&grenade_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2663:128: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2663 | [256];snprintf(msg,256,"Can't find sprite \"grenade\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2664:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2664 | if (find_sprite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2664:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2664 | rite("mess1",&mess1_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2664:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2664 | sg[256];snprintf(msg,256,"Can't find sprite \"mess1\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2665:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2665 | if (find_sprite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2665:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2665 | rite("mess2",&mess2_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2665:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2665 | sg[256];snprintf(msg,256,"Can't find sprite \"mess2\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2666:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2666 | if (find_sprite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2666:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2666 | rite("mess3",&mess3_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2666:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2666 | sg[256];snprintf(msg,256,"Can't find sprite \"mess3\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2667:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2667 | if (find_sprite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2667:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2667 | rite("mess4",&mess4_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2667:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2667 | sg[256];snprintf(msg,256,"Can't find sprite \"mess4\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2668:18: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 2668 | if (find_sprite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} | ^~~~~~~ | | | char * In file included from server.c:46: data.h:149:24: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 149 | extern int find_sprite(unsigned char *,int *); | ^~~~~~~~~~~~~~~ server.c:2668:74: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2668 | rite("noise",&noise_sprite)){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2668:122: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2668 | sg[256];snprintf(msg,256,"Can't find sprite \"noise\".\n");ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2671:11: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 2671 | sprintf(txt,"shrapnel%d",a+1); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ server.c:2672:77: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2672 | te(txt,&shrapnel_sprite[a])){unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from data.h:7, from server.c:46: server.c:2672:126: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 2672 | g[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c:2678:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2678 | snprintf(txt,256,"Loading level \"%s\"....\n",LEVEL); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2680:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2680 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,LEVEL_SPRITES_SUFFIX); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2681:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2681 | message("Loading level graphics.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2683:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2683 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,STATIC_DATA_SUFFIX); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2684:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2684 | message("Loading level map.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2686:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 2686 | snprintf(txt,256,"%s%s%s",DATA_PATH,LEVEL,DYNAMIC_DATA_SUFFIX); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from server.c:5: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ server.c:2687:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2687 | message("Loading level objects.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2691:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2691 | message("Initializing socket.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2694:10: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2694 | message("Installing signal handlers.\n",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | 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] 2704 | message("Game started.\n",2); | ^~~~~~~~~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2731:11: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2731 | message("Sleep\n",2); | ^~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c:2738:11: warning: pointer targets in passing argument 1 of ‘message’ differ in signedness [-Wpointer-sign] 2738 | message("Wakeup\n",2); | ^~~~~~~~~~ | | | char * server.c:383:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 383 | void message(unsigned char *msg,int output) | ~~~~~~~~~~~~~~~^~~ server.c: In function ‘dynamic_collision’: server.c:1769:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 1769 | if (p->type==T_CORPSE) | ^ server.c:1781:5: note: here 1781 | case T_BULLET: | ^~~~ server.c: In function ‘update_game’: server.c:2084:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 2084 | sendall_chunked(packet,5,0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:2086:4: note: here 2086 | case 2: | ^~~~ server.c: In function ‘read_data’: server.c:1221:74: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 194 and 208 [-Wformat-truncation=] 1221 | (txt,256,"Request for player #%d (client version %d.%d) from %s.\n",n_players,maj,min,txt1); | ^~ ~~~~ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 51 and 320 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1240:65: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 1240 | snprintf(txt,256,"Player #%d accepted, name \"%s\", address %s.\n",n_players,packet+5,txt1); | ^~ ~~~~ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 40 or more bytes (assuming 295) into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function ‘server’: server.c:2672:106: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 237 [-Wformat-truncation=] 2672 | unsigned char msg[256];snprintf(msg,256,"Can't find sprite \"%s\".\n",txt);ERROR(msg);EXIT(1);} | ^~ ~~~ In file included from /usr/include/stdio.h:867, from server.c:5: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 23 and 278 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o data.o data.c In file included from data.c:14: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ data.c: At top level: data.c:77:3: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 77 | {"Browning",16,50,float2double(3*36),float2double(.3*36),20,2,13,12,48,float2double((double).3*36),-float2double(1*36)}, | ^~~~~~~~~~ data.c:77:3: note: (near initialization for ‘weapon[0].name’) data.c:78:3: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 78 | {"Shotgun",25,50,float2double(3*36),float2double(.5*36),10,5,6,12,30,float2double((double).3*36),-float2double((double)1.2*36)}, | ^~~~~~~~~ data.c:78:3: note: (near initialization for ‘weapon[1].name’) data.c:79:3: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 79 | {"Uzi",3,50,float2double(4*36),float2double(.25*36),15,4,50,50,150,float2double((double).9*36),-float2double((double)1.5*36)}, | ^~~~~ data.c:79:3: note: (near initialization for ‘weapon[2].name’) data.c:80:3: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 80 | {"Rifle",40,70,float2double(6*36),float2double(.4*36),50,20,1,15,15,0,0}, | ^~~~~~~ data.c:80:3: note: (near initialization for ‘weapon[3].name’) data.c:81:3: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 81 | {"Grenades",15,60,float2double((double)3.73*36),0,75,40,0,6,24,float2double(3*36),-float2double((double)1.5*36)} /* shell speed=grenade throwing speed, bullet speed=shrapnel speed */ | ^~~~~~~~~~ data.c:81:3: note: (near initialization for ‘weapon[4].name’) data.c: In function ‘find_sprite’: data.c:126:27: warning: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness [-Wpointer-sign] 126 | if (!strcmp(sprite_names[*num],name))return 0; | ~~~~~~~~~~~~^~~~~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:136:32: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 136 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ data.c:126:34: warning: pointer targets in passing argument 2 of ‘strcmp’ differ in signedness [-Wpointer-sign] 126 | if (!strcmp(sprite_names[*num],name))return 0; | ^~~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:136:50: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 136 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ data.c: In function ‘load_data’: data.c:196:21: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign] 196 | if (!(stream=fopen(filename,"rb"))) | ^~~~~~~~ | | | unsigned char * In file included from data.c:1: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ data.c:223:19: warning: pointer targets in passing argument 1 of ‘find_sprite’ differ in signedness [-Wpointer-sign] 223 | if (find_sprite(name,&n)) | ^~~~ | | | char * data.c:123:32: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 123 | 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] 244 | stream=fopen(filename,"rb"); | ^~~~~~~~ | | | unsigned char * In file included from data.c:1: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ data.c:265:28: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 265 | 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] 271 | load_sprite(q,sprites+(n_sprites-1)); | ^ | | | char * In file included from data.h:8, from data.c:9: sprite.h:37:25: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 37 | 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] 308 | if (!(fgets(txt,1024,f)))return NULL; | ^~~ | | | unsigned char * In file included from /usr/include/stdio.h:867, from data.c:1: /usr/include/bits/stdio2.h:255:25: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 255 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ data.c:311:18: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 311 | if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:311:41: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 311 | if (txt[strlen(txt)-1]==10)txt[strlen(txt)-1]=0; | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:312:18: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 312 | if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:312:41: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 312 | if (txt[strlen(txt)-1]==13)txt[strlen(txt)-1]=0; | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:314:14: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 314 | if (strlen(txt))a++; | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:319:11: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 319 | a=strlen(txt); | ^~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:323:14: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 323 | if (!strlen(retval)){mem_free(retval);return NULL;} | ^~~~~~ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c: In function ‘__add_md5’: data.c:591:12: warning: pointer targets in passing argument 1 of ‘MD5File’ differ in signedness [-Wpointer-sign] 591 | q=MD5File(filename,NULL); | ^~~~~~~~ | | | unsigned char * In file included from data.c:13: md5.h:20:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 20 | extern char * MD5File(const char *, char *); | ^~~~~~~ data.c:591:3: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 591 | q=MD5File(filename,NULL); | ^ data.c:592:11: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 592 | a=strlen(q); | ^ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c: In function ‘md5_level’: data.c:614:3: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 614 | q=load_level(level_num); | ^ In file included from data.h:7, from data.c:9: cfg.h:25:19: warning: pointer targets in passing argument 1 of ‘__add_md5’ differ in signedness [-Wpointer-sign] 25 | #define DATA_PATH "/usr/share/0verkill/data/" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * data.c:617:17: note: in expansion of macro ‘DATA_PATH’ 617 | if (!__add_md5(DATA_PATH LEVEL_FILE,&len,&result)){mem_free(result);return NULL;} | ^~~~~~~~~ data.c:586:41: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 586 | 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] 619 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from data.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ data.c:622:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 622 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,STATIC_DATA_SUFFIX); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from data.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ data.c:625:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 625 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,DYNAMIC_DATA_SUFFIX); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from data.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ data.c:628:11: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 628 | snprintf(p,2048,"%s%s%s",DATA_PATH,q,LEVEL_SPRITES_SUFFIX); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from data.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ data.c:634:11: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign] 634 | f=fopen(p,"r"); | ^ | | | unsigned char * In file included from data.c:1: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ data.c:636:16: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 636 | while (fgets(p,2048,f)) | ^ | | | unsigned char * In file included from /usr/include/stdio.h:867, from data.c:1: /usr/include/bits/stdio2.h:255:25: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 255 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ data.c:638:17: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 638 | if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; | ^ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:638:36: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 638 | if (p[strlen(p)-1]==13)p[strlen(p)-1]=0; | ^ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:639:17: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 639 | if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; | ^ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:639:36: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 639 | if (p[strlen(p)-1]==10)p[strlen(p)-1]=0; | ^ | | | unsigned char * In file included from data.c:2: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ data.c:641:5: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 641 | q=p; | ^ data.c:646:19: warning: pointer targets in passing argument 1 of ‘__add_md5’ differ in signedness [-Wpointer-sign] 646 | if (!__add_md5(q,&len,&result)){mem_free(result);return NULL;} | ^ | | | char * data.c:586:41: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 586 | unsigned char *__add_md5(unsigned char *filename, int *len, unsigned char**result) | ~~~~~~~~~~~~~~~^~~~~~~~ data.c:653:9: warning: pointer targets in returning ‘char *’ from a function with return type ‘unsigned char *’ differ in signedness [-Wpointer-sign] 653 | return q; | ^ data.c: In function ‘load_data’: data.c:226:44: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 235 [-Wformat-truncation=] 226 | snprintf(msg,256,"Unknown bitmap name \"%s\"!\n",name); | ^~ In file included from /usr/include/stdio.h:867, from data.c:1: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 25 and 1048 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o sprite.o sprite.c In file included from sprite.c:16: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 190 | if (!(f=fopen(filename,"rb"))) | ^~~~~~~~ | | | unsigned char * In file included from sprite.c:4: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ sprite.c:194:16: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign] 194 | if (!(f=fopen(filename,"rb"))) { | ^~~~~~~~ | | | unsigned char * In file included from sprite.c:4: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ sprite.c:197:16: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign] 197 | if (!(f=fopen(filename,"rb"))) { | ^~~~~~~~ | | | unsigned char * In file included from sprite.c:4: /usr/include/stdio.h:246:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 246 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ sprite.c:199:12: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 199 | snprintf(msg,256,"Error opening file \"%s\"!\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:200:9: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 200 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:203:14: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 203 | while(fgets(buffer,8191,f)) | ^~~~~~ | | | unsigned char * In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:255:25: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 255 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ sprite.c:205:12: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 205 | x=strlen(buffer); | ^~~~~~ | | | unsigned char * In file included from sprite.c:1: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sprite.c:219:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 219 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:220:11: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 220 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:235:39: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 235 | s->positions[CURP].xo=strtol(buffer+1,&p,0); | ~~~~~~^~ | | | unsigned char * In file included from sprite.c:3: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ sprite.c:243:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 243 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:244:11: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 244 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:256:52: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 256 | s->positions[CURP].lines[CURL].len=strlen(buffer+1); | ~~~~~~^~ | | | unsigned char * In file included from sprite.c:1: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sprite.c:271:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 271 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:272:11: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 272 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:289:19: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 289 | x=strlen(buffer+1); | ~~~~~~^~ | | | unsigned char * In file included from sprite.c:1: /usr/include/string.h:384:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 384 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sprite.c:300:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 300 | snprintf(msg,256,"Syntax error in file \"%s\".\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:301:11: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 301 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:305:9: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 305 | for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) | ^ sprite.c:305:18: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 305 | for(q=buffer,p=buffer+1;*q&&*q!=10;*q==','?p=q+1:0) | ^ sprite.c:312:15: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 312 | snprintf(txt,256,"Error loading sprite \"%s\". Undefined position %d.\n",filename,x); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:313:12: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 313 | ERROR(txt); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:331:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 331 | snprintf(msg,256,"Syntax error in file \"%s\"!\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:332:11: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 332 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:341:12: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 341 | snprintf(msg,256,"Unexpected end of file in \"%s\".\n",filename); | ^~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sprite.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ In file included from blit.h:4, from sprite.c:12: sprite.c:342:9: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign] 342 | ERROR(msg); | ^~~ | | | unsigned char * cfg.h:160:36: note: in definition of macro ‘ERROR’ 160 | #define ERROR(a) {fprintf(stderr,a);} | ^ In file included from /usr/include/stdio.h:867, from sprite.c:4: /usr/include/bits/stdio2.h:98:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ sprite.c:192:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 192 | chdir(DATA_PATH); | ^~~~~~~~~~~~~~~~ sprite.c:195:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 195 | chdir(DATA_PATH "/../"); | ^~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o blit.o blit.c In file included from blit.c:12: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o console.o console.c In file included from console.c:19: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ console.c: In function ‘c_refresh’: console.c:88:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 88 | write(1,screen_buffer,screen_buffer_pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ console.c: In function ‘c_goto’: console.c:153:27: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 2 and 12 [-Wformat-truncation=] 153 | snprintf(txt,16,"\033[%d;%dH",y+1,x+1); | ^~ console.c:153:18: note: directive argument in the range [-2147483647, 2147483647] 153 | snprintf(txt,16,"\033[%d;%dH",y+1,x+1); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from console.c:8: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 7 and 27 bytes into a destination of size 16 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o hash.o hash.c In file included from hash.c:9: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o time.o time.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o kbd.o kbd.c kbd.c: In function ‘my_getchar’: kbd.c:140:2: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] 140 | read(0,&a,1); | ^~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o net.o net.c In file included from net.c:14: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 86 | retval=recvfrom(fd,p,max_len+12,0,addr,addr_len); | ^~~~~~~~ | | | int * In file included from /usr/include/sys/socket.h:269, from net.c:7: /usr/include/bits/socket2.h:65:49: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 65 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o crc32.o crc32.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o md5.o md5.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o md5hl.o md5hl.c In file included from md5hl.c:22: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer -c -o error.o error.c In file included from error.c:12: error.h: In function ‘mem_alloc’: error.h:55:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 55 | error("ERROR: out of memory (malloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 66 | error("ERROR: out of memory (calloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | void error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_free’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:76:3: note: in expansion of macro ‘internal’ 76 | internal("mem_free(NULL)"); | ^~~~~~~~ error.h:76:12: warning: pointer targets in passing argument 1 of ‘int_error’ differ in signedness [-Wpointer-sign] 76 | internal("mem_free(NULL)"); | ^~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h: In function ‘mem_realloc’: error.h:31:26: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 31 | #define internal errfile = __FILE__, errline = __LINE__, int_error | ^ error.h:86:3: note: in expansion of macro ‘internal’ 86 | 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] 86 | internal("mem_realloc(NULL, %d)", size); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:16:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 16 | void int_error(unsigned char *, ...); | ^~~~~~~~~~~~~~~ error.h:94:9: warning: pointer targets in passing argument 1 of ‘error’ differ in signedness [-Wpointer-sign] 94 | error("ERROR: out of memory (realloc returned NULL)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * error.h:14:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 14 | 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] 126 | vfprintf(stderr, m, l); | ^ | | | unsigned char * In file included from /usr/include/stdio.h:867, from error.c:6: /usr/include/bits/stdio2.h:128:27: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 128 | const char *__restrict __fmt, __gnuc_va_list __ap) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ error.c: In function ‘int_error’: error.c:147:10: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 147 | sprintf(errbuf, "\033[1mINTERNAL ERROR\033[0m at %s:%d: ", errfile, errline); | ^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ error.c:148:9: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 148 | strcat(errbuf, m); | ^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ error.c:148:17: warning: pointer targets in passing argument 2 of ‘strcat’ differ in signedness [-Wpointer-sign] 148 | strcat(errbuf, m); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/string_fortified.h:126:1: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ error.c: In function ‘debug_msg’: error.c:157:10: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 157 | sprintf(errbuf, "DEBUG MESSAGE at %s:%d: ", errfile, errline); | ^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ error.c:158:9: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 158 | strcat(errbuf, m); | ^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ error.c:158:17: warning: pointer targets in passing argument 2 of ‘strcat’ differ in signedness [-Wpointer-sign] 158 | strcat(errbuf, m); | ^ | | | unsigned char * In file included from /usr/include/features.h:450, from /usr/include/signal.h:25, from error.c:3: /usr/include/bits/string_fortified.h:126:1: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -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 /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: data.o:(.bss+0x0): multiple definition of `last_obj'; server.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: data.o:(.data.rel.local+0x0): multiple definition of `weapon'; server.o:(.bss+0x320): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: data.o:(.data+0x20): multiple definition of `obj_attr'; server.o:(.bss+0x400): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: data.o:(.bss+0x40): multiple definition of `weapon_name'; server.o:(.bss+0x5c0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sprite.o:(.bss+0x0): multiple definition of `weapon'; server.o:(.bss+0x320): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sprite.o:(.bss+0xe0): multiple definition of `obj_attr'; server.o:(.bss+0x400): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sprite.o:(.bss+0x2a0): multiple definition of `weapon_name'; server.o:(.bss+0x5c0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hash.o:(.bss+0x80000): multiple definition of `weapon'; server.o:(.bss+0x320): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hash.o:(.bss+0x800e0): multiple definition of `obj_attr'; server.o:(.bss+0x400): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hash.o:(.bss+0x802a0): multiple definition of `weapon_name'; server.o:(.bss+0x5c0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:57: server] Error 1 * ERROR: games-action/0verkill-0.16-r4::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-action/0verkill-0.16-r4::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-action/0verkill-0.16-r4::gentoo'`. * The complete build log is located at '/var/log/portage/games-action:0verkill-0.16-r4:20200208-095724.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-action/0verkill-0.16-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-action/0verkill-0.16-r4/temp/environment'. * Working directory: '/var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16' * S: '/var/tmp/portage/games-action/0verkill-0.16-r4/work/0verkill-0.16'