Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'], chrootPath='/var/lib/mock/f29-build-10652-4817/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/ularn-1.5p4-29.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'], chrootPath='/var/lib/mock/f29-build-10652-4817/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CbOoFd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Ularn + /usr/bin/gzip -dc /builddir/build/SOURCES/Ularn-1.5ishPL4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Ularn + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e s#@bindir@#/usr/bin# -e s#@datadir@#/usr/share# -e s#@var@#/var# + chmod +x config.h.SH Patch #0 (ularn-build.patch): + echo 'Patch #0 (ularn-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file extern.h patching file fortune.c patching file header.h patching file io.c patching file main.c patching file Makefile.u.SH patching file savelev.c patching file tok.c Patch #1 (ularn-euid.patch): + echo 'Patch #1 (ularn-euid.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file main.c Patch #2 (ularn-datadir.patch): + echo 'Patch #2 (ularn-datadir.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file config.h.SH patching file data.c patching file extern.h patching file header.h patching file main.c Patch #3 (ularn-drop-setgid.patch): + echo 'Patch #3 (ularn-drop-setgid.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file data.c patching file extern.h patching file header.h patching file main.c patching file scores.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PX8IJD + umask 022 + cd /builddir/build/BUILD + cd Ularn BUILDSTDERR: ++ pwd + builddir=/builddir/build/BUILD/Ularn + . ./config.h.SH BUILDSTDERR: ++ case $CONFIG in BUILDSTDERR: ++ test '!' -f config.sh BUILDSTDERR: ++ . ./config.sh BUILDSTDERR: +++ hpux=undef BUILDSTDERR: +++ linux=define BUILDSTDERR: +++ bsd=undef BUILDSTDERR: +++ cygwin=undef BUILDSTDERR: +++ syserr=define BUILDSTDERR: +++ bsdlibs= BUILDSTDERR: +++ d_eunice=undef BUILDSTDERR: +++ eunicefix=: BUILDSTDERR: +++ define=define BUILDSTDERR: +++ contains=grep BUILDSTDERR: +++ cppstdin=/usr/bin/cpp BUILDSTDERR: +++ cppminus= BUILDSTDERR: +++ d_ftime=define BUILDSTDERR: +++ d_getopt=define BUILDSTDERR: +++ d_index=define BUILDSTDERR: +++ d_termio=define BUILDSTDERR: +++ d_voidsig=define BUILDSTDERR: +++ libc=/usr/lib/libc.a BUILDSTDERR: +++ mansrc= BUILDSTDERR: +++ manext= BUILDSTDERR: +++ models=none BUILDSTDERR: +++ split= BUILDSTDERR: +++ small= BUILDSTDERR: +++ medium= BUILDSTDERR: +++ large= BUILDSTDERR: +++ huge= BUILDSTDERR: +++ ccflags= BUILDSTDERR: +++ ldflags= BUILDSTDERR: +++ cc=gcc BUILDSTDERR: +++ n=-n BUILDSTDERR: +++ c= BUILDSTDERR: +++ package=Ularn BUILDSTDERR: +++ spitshell=cat BUILDSTDERR: +++ shsharp=true BUILDSTDERR: +++ sharpbang='#!' BUILDSTDERR: +++ startsh='#!/bin/sh' BUILDSTDERR: +++ loclist=' BUILDSTDERR: expr BUILDSTDERR: sed BUILDSTDERR: echo BUILDSTDERR: cat BUILDSTDERR: rm BUILDSTDERR: tr BUILDSTDERR: grep BUILDSTDERR: ' BUILDSTDERR: +++ expr=/usr/bin/expr BUILDSTDERR: +++ sed=/bin/sed BUILDSTDERR: +++ echo=/bin/echo BUILDSTDERR: +++ cat=/bin/cat BUILDSTDERR: +++ rm=/bin/rm BUILDSTDERR: +++ mv= BUILDSTDERR: +++ cp= BUILDSTDERR: +++ tail= BUILDSTDERR: +++ tr=/usr/bin/tr BUILDSTDERR: +++ mkdir= BUILDSTDERR: +++ sort= BUILDSTDERR: +++ uniq= BUILDSTDERR: +++ grep=/bin/grep BUILDSTDERR: +++ trylist=' BUILDSTDERR: xmkmf BUILDSTDERR: imake BUILDSTDERR: compress BUILDSTDERR: uncompress BUILDSTDERR: test BUILDSTDERR: Mcc BUILDSTDERR: cpp BUILDSTDERR: ' BUILDSTDERR: +++ test=test BUILDSTDERR: +++ inews= BUILDSTDERR: +++ egrep= BUILDSTDERR: +++ more= BUILDSTDERR: +++ pg= BUILDSTDERR: +++ Mcc=Mcc BUILDSTDERR: +++ vi= BUILDSTDERR: +++ mailx= BUILDSTDERR: +++ mail= BUILDSTDERR: +++ cpp=/usr/bin/cpp BUILDSTDERR: +++ perl= BUILDSTDERR: +++ compress=/usr/bin/compress BUILDSTDERR: +++ uncompress=/usr/bin/uncompress BUILDSTDERR: +++ imake=/usr/bin/X11/imake BUILDSTDERR: +++ xmkmf=/usr/bin/X11/xmkmf BUILDSTDERR: +++ bindir=/usr/bin Extracting config.h (with variable substitutions) Extracting Makefile.u (with variable substitutions) BUILDSTDERR: +++ d_drand48=define BUILDSTDERR: +++ d_havetlib=define BUILDSTDERR: +++ termlib=-lcurses BUILDSTDERR: +++ d_itimer=define BUILDSTDERR: +++ d_systime='' BUILDSTDERR: +++ d_random=undef BUILDSTDERR: +++ defcomp=undef BUILDSTDERR: +++ imaketmpl= BUILDSTDERR: +++ libdir=/usr/share/ularn BUILDSTDERR: +++ scoredir=/var/games BUILDSTDERR: +++ mycompress='/usr/bin/compress -c' BUILDSTDERR: +++ myuncompress='/usr/bin/uncompress -c' BUILDSTDERR: +++ CONFIG=true BUILDSTDERR: ++ test undef = define BUILDSTDERR: ++ echo 'Extracting config.h (with variable substitutions)' BUILDSTDERR: ++ sed -e 's!^#undef!/\*#undef!' + /builddir/build/BUILD/Ularn/Makefile.u.SH + cd /builddir/build/BUILD/Ularn + mv Makefile.u Makefile + CC='gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + make -j4 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c action.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c bill.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c create.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c data.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from create.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from action.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from bill.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from data.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: create.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makeplayer () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: bill.c:10:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter1() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: bill.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter2 () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: bill.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter3 () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: bill.c:76:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter4 () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:7:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: run (dir) BUILDSTDERR: ^~~ BUILDSTDERR: action.c:30:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c: In function 'wield': BUILDSTDERR: action.c:35:38: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((i = whatitem("wield"))==ESC) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: newcavelevel (x) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: create.c: In function 'newcavelevel': BUILDSTDERR: create.c:57:14: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (beenhere[level]) BUILDSTDERR: ^ BUILDSTDERR: action.c:42:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:44:40: warning: 'return' with no value, in function returning non-void BUILDSTDERR: else if (iven[i-'a']==0) { ydhi(i); return; } BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c:64:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: create.c:52:1: note: declared here BUILDSTDERR: newcavelevel (x) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: action.c:45:46: warning: 'return' with no value, in function returning non-void BUILDSTDERR: else if (iven[i-'a']==OPOTION) { ycwi(i); return; } BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:46:46: warning: 'return' with no value, in function returning non-void BUILDSTDERR: else if (iven[i-'a']==OSCROLL) { ycwi(i); return; } BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:49:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:54:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c: At top level: BUILDSTDERR: action.c:58:41: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\nYou wield %s", objectname[iven[i-'a']]); BUILDSTDERR: ^ BUILDSTDERR: create.c:90:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makemaze (lev) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c: In function 'makemaze': BUILDSTDERR: create.c:99:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: create.c:90:1: note: declared here BUILDSTDERR: makemaze (lev) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c:114:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: create.c:90:1: note: declared here BUILDSTDERR: makemaze (lev) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: action.c:65:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:30:1: note: declared here BUILDSTDERR: wield () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ydhi (x) BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:81:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ycwi (x) BUILDSTDERR: ^~~~ BUILDSTDERR: bill.c:95:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter5 () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: data.c:134:28: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*char mitem[MAXX][MAXY]; /* monster item array */ BUILDSTDERR: BUILDSTDERR: create.c: At top level: BUILDSTDERR: create.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: eat (xx,yy) BUILDSTDERR: ^~~ BUILDSTDERR: bill.c:116:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: letter6 () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: bill.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: mailbill () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c:228:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cannedlevel (lev) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'mailbill': BUILDSTDERR: bill.c:151:2: warning: implicit declaration of function 'wait'; did you mean 'quit'? [-Wimplicit-function-declaration] BUILDSTDERR: wait((int *)0); BUILDSTDERR: ^~~~ BUILDSTDERR: quit BUILDSTDERR: create.c:310:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: treasureroom(lv) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: action.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c: In function 'wear': BUILDSTDERR: action.c:96:37: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((i = whatitem("wear"))==ESC) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:102:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:114:10: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: create.c:332:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: troom(lv,xsize,ysize,tx,ty,glyph) BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:118:48: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\nYou put on your %s", objectname[iven[i-'a']]); BUILDSTDERR: ^ BUILDSTDERR: action.c:125:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:130:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:135:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c:146:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:91:1: note: declared here BUILDSTDERR: wear () BUILDSTDERR: ^~~~ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c: In function 'dropobj': BUILDSTDERR: action.c:163:11: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: p = &item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: action.c:163:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: p = &item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: action.c:166:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: create.c:391:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makeobject (j) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: action.c:175:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: create.c: In function 'makeobject': BUILDSTDERR: action.c:180:44: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((amt=readnum((long)c[GOLD])) <= 0) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: create.c:405:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: create.c:391:1: note: declared here BUILDSTDERR: makeobject (j) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: action.c:183:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:215:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery]=i; BUILDSTDERR: ^ BUILDSTDERR: bill.c: In function 'letter1': BUILDSTDERR: bill.c:14:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'letter2': BUILDSTDERR: bill.c:41:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'letter3': BUILDSTDERR: bill.c:62:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'letter4': BUILDSTDERR: bill.c:80:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'letter5': BUILDSTDERR: bill.c:99:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: bill.c: In function 'letter6': BUILDSTDERR: bill.c:120:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1,"can't write 600 letter\n",23); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: action.c:215:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery]=i; BUILDSTDERR: ^ BUILDSTDERR: action.c:217:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: action.c:217:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: action.c:219:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:222:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:157:1: note: declared here BUILDSTDERR: dropobj () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:230:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c: In function 'readscr': BUILDSTDERR: action.c:235:37: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((i = whatitem("read"))==ESC) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:230:1: note: declared here BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:243:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:230:1: note: declared here BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:248:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:230:1: note: declared here BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:252:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:230:1: note: declared here BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c:254:49: warning: 'return' with no value, in function returning non-void BUILDSTDERR: lprcat("\nThere's nothing on it to read."); return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:230:1: note: declared here BUILDSTDERR: readscr () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:263:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: eatcookie () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c: In function 'eatcookie': BUILDSTDERR: action.c:270:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:263:1: note: declared here BUILDSTDERR: eatcookie () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:284:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:263:1: note: declared here BUILDSTDERR: eatcookie () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:286:34: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (iven[i-'a']==0) { ydhi(i); return; } BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:263:1: note: declared here BUILDSTDERR: eatcookie () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:287:37: warning: 'return' with no value, in function returning non-void BUILDSTDERR: lprcat("\nYou can't eat that!"); return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:263:1: note: declared here BUILDSTDERR: eatcookie () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:271:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if (i != '.') BUILDSTDERR: ^ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:295:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: quaff () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c: In function 'quaff': BUILDSTDERR: action.c:301:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:295:1: note: declared here BUILDSTDERR: quaff () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:309:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:295:1: note: declared here BUILDSTDERR: quaff () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:313:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:295:1: note: declared here BUILDSTDERR: quaff () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c:316:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:295:1: note: declared here BUILDSTDERR: quaff () BUILDSTDERR: ^~~~~ BUILDSTDERR: action.c: At top level: BUILDSTDERR: action.c:322:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: qwhatitem () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: bill.c: In function 'mailbill': BUILDSTDERR: bill.c:160:5: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: system(buf); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: create.c: At top level: BUILDSTDERR: create.c:621:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fillmroom(n,what,arg) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: bill.c:165:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: create.c:630:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: froom(n,itm,arg) BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c:641:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fillroom (what,arg) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c:668:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fillmonst (what) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: create.c:693:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sethp (flg) BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c: In function 'sethp': BUILDSTDERR: create.c:704:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: create.c:693:1: note: declared here BUILDSTDERR: sethp (flg) BUILDSTDERR: ^~~~~ BUILDSTDERR: create.c: At top level: BUILDSTDERR: create.c:747:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: checkgen () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c: In function 'checkgen': BUILDSTDERR: create.c:753:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if ((monster[mitem[x][y].mon].flags&FL_GENOCIDED) != 0) BUILDSTDERR: ^ BUILDSTDERR: action.c:350:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: whatitem (str) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: create.c: In function 'makeplayer': BUILDSTDERR: create.c:40:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: create.c: In function 'eat': BUILDSTDERR: create.c:206:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: create.c: In function 'treasureroom': BUILDSTDERR: create.c:325:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c:476:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: create.c: In function 'troom': BUILDSTDERR: create.c:383:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c: In function 'do_create': BUILDSTDERR: action.c:487:12: warning: 'return' with no value, in function returning non-void BUILDSTDERR: case ESC: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:476:1: note: declared here BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:497:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:476:1: note: declared here BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:507:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:476:1: note: declared here BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: action.c:520:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:476:1: note: declared here BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: create.c: In function 'fillmroom': BUILDSTDERR: create.c:628:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: create.c: In function 'froom': BUILDSTDERR: create.c:635:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c:531:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: action.c:476:1: note: declared here BUILDSTDERR: do_create() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: create.c: In function 'fillroom': BUILDSTDERR: create.c:662:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: create.c: In function 'checkgen': BUILDSTDERR: create.c:755:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c: In function 'run': BUILDSTDERR: action.c:25:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c: In function 'ydhi': BUILDSTDERR: action.c:79:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: action.c: In function 'ycwi': BUILDSTDERR: action.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c diag.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c display.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from diag.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: diag.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: diag() BUILDSTDERR: ^~~~ BUILDSTDERR: diag.c: In function 'diag': BUILDSTDERR: diag.c:69:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: diag.c:64:1: note: declared here BUILDSTDERR: diag() BUILDSTDERR: ^~~~ BUILDSTDERR: diag.c:78:64: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] BUILDSTDERR: fprintf(dfile, "gold: %ld Experience: %ld Character level: %d Level in caverns: %ld\n", BUILDSTDERR: ~^ BUILDSTDERR: %ld BUILDSTDERR: diag.c:81:2: BUILDSTDERR: (long) c[LEVEL], BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: diag.c:78:87: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=] BUILDSTDERR: fprintf(dfile, "gold: %ld Experience: %ld Character level: %d Level in caverns: %ld\n", BUILDSTDERR: ~~^ BUILDSTDERR: %d BUILDSTDERR: diag.c:82:2: BUILDSTDERR: level); BUILDSTDERR: ~~~~~ BUILDSTDERR: diag.c:95:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: j, ivendef[iven[j]], iven[j] ); BUILDSTDERR: ^ BUILDSTDERR: diag.c:96:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: fprintf (dfile, "\t%s", objectname[iven[j]] ); BUILDSTDERR: ^ BUILDSTDERR: diag.c:115:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: levelname[level], level); BUILDSTDERR: ^ BUILDSTDERR: diag.c: At top level: BUILDSTDERR: diag.c:187:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: diagdrawscreen() BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: diag.c: In function 'diagdrawscreen': BUILDSTDERR: diag.c:194:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: if (k = mitem[j][i].mon) BUILDSTDERR: ^ BUILDSTDERR: diag.c:197:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: fprintf(dfile, "%c", objnamelist[item[j][i]]); BUILDSTDERR: ^ BUILDSTDERR: diag.c:200:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from display.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: display.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bottomdo() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c: In function 'bottomdo': BUILDSTDERR: display.c:25:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:20:1: note: declared here BUILDSTDERR: bottomdo() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bottomgold() { botsub(GOLD,72,19,"%-8d"); } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c:41:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bot_spellx() { botsub(SPELLS,9,18,"%2d"); } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bot_linex() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: display.c: In function 'bot_linex': BUILDSTDERR: display.c:68:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] BUILDSTDERR: sprintf(buf, "%d (%d)", c[HP], c[HPMAX]); BUILDSTDERR: ~^ ~~~~~ BUILDSTDERR: %ld BUILDSTDERR: display.c:68:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] BUILDSTDERR: sprintf(buf, "%d (%d)", c[HP], c[HPMAX]); BUILDSTDERR: ~^ ~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: display.c:86:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("%2s", levelname[level]); BUILDSTDERR: ^ BUILDSTDERR: display.c:96:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:43:1: note: declared here BUILDSTDERR: bot_linex() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: display.c:139:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("%2s", levelname[level]); BUILDSTDERR: ^ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:150:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bot_hpx() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: display.c:166:16: warning: missing braces around initializer [-Wmissing-braces] BUILDSTDERR: } bot_data[] = { BUILDSTDERR: ^ BUILDSTDERR: display.c:186:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: botside() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: display.c:211:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bothp() BUILDSTDERR: ^~~~~ BUILDSTDERR: display.c: In function 'bothp': BUILDSTDERR: display.c:216:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:211:1: note: declared here BUILDSTDERR: bothp() BUILDSTDERR: ^~~~~ BUILDSTDERR: display.c:219:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] BUILDSTDERR: sprintf(buf, "%d (%d)", c[HP], c[HPMAX]); BUILDSTDERR: ~^ ~~~~~ BUILDSTDERR: %ld BUILDSTDERR: display.c:219:21: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] BUILDSTDERR: sprintf(buf, "%d (%d)", c[HP], c[HPMAX]); BUILDSTDERR: ~^ ~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:233:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: draws(xmin,xmax,ymin,ymax) BUILDSTDERR: ^~~~~ BUILDSTDERR: display.c:275:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: drawscreen() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c: In function 'drawscreen': BUILDSTDERR: display.c:296:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: if (k=mitem[j][i].mon) { BUILDSTDERR: ^ BUILDSTDERR: display.c:300:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: screen[j][i]=monstnamelist[mimicmonst]; BUILDSTDERR: ^ BUILDSTDERR: display.c:302:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: screen[j][i]=objnamelist[item[j][i]]; BUILDSTDERR: ^ BUILDSTDERR: display.c:305:32: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: screen[j][i] = objnamelist[item[j][i]]; BUILDSTDERR: ^ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:385:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showcell(x,y) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c: In function 'showcell': BUILDSTDERR: display.c:391:11: warning: "/*" within comment [-Wcomment] BUILDSTDERR: return; /* see nothing if blind */ BUILDSTDERR: BUILDSTDERR: In file included from display.c:2: BUILDSTDERR: display.c:434:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(monstnamelist[mimicmonst]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:47: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:434:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(monstnamelist[mimicmonst]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:76: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:436:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(objnamelist[item[i][j]]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:47: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:436:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(objnamelist[item[i][j]]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:76: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:471:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: show1cell(x,y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: display.c: In function 'show1cell': BUILDSTDERR: display.c:475:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* see nothing if blind */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:471:1: note: declared here BUILDSTDERR: show1cell(x,y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from display.c:2: BUILDSTDERR: display.c:482:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(monstnamelist[mimicmonst]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:47: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:482:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(monstnamelist[mimicmonst]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:76: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:484:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(objnamelist[item[x][y]]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:47: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c:484:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprc(objnamelist[item[x][y]]); BUILDSTDERR: ^ BUILDSTDERR: header.h:136:76: note: in definition of macro 'lprc' BUILDSTDERR: #define lprc(ch) {(lpnt>=lpend) ? (*lpnt++ = (ch), lflush()) : (*lpnt++ = (ch));} BUILDSTDERR: ^~ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:515:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showplayer() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c:540:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: moveplayer(dir) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c:609:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: seemagic(arg) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c: In function 'seemagic': BUILDSTDERR: display.c:629:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:609:1: note: declared here BUILDSTDERR: seemagic(arg) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c:655:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: display.c:609:1: note: declared here BUILDSTDERR: seemagic(arg) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: display.c: At top level: BUILDSTDERR: display.c:699:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: seepage() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: display.c: In function 'bottomgold': BUILDSTDERR: display.c:38:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: bottomgold() { botsub(GOLD,72,19,"%-8d"); } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c: In function 'bot_spellx': BUILDSTDERR: display.c:41:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: bot_spellx() { botsub(SPELLS,9,18,"%2d"); } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: display.c: In function 'bot_hpx': BUILDSTDERR: display.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'botside': BUILDSTDERR: display.c:209:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'draws': BUILDSTDERR: display.c:265:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'drawscreen': BUILDSTDERR: display.c:378:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'showcell': BUILDSTDERR: display.c:464:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'showplayer': BUILDSTDERR: display.c:525:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: display.c: In function 'seepage': BUILDSTDERR: display.c:711:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fortune.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from fortune.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c player.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from player.c:23: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c help.c BUILDSTDERR: player.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raiselevel () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: player.c:53:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: loselevel () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: player.c:67:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raiseexperience (x) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: player.c:135:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: loseexperience (x) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: player.c:170:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: losehp (x) BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:183:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: losemhp (x) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: player.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raisehp (x) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: player.c:210:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raisemhp (x) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: player.c:226:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raisespells (x) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c:233:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: raisemspells (x) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: player.c:249:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: losespells (x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: player.c:256:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: losemspells (x) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c:271:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: positionplayer () BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: player.c: In function 'positionplayer': BUILDSTDERR: player.c:276:14: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) BUILDSTDERR: ^ BUILDSTDERR: player.c:276:23: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) BUILDSTDERR: ^ BUILDSTDERR: player.c:276:41: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) BUILDSTDERR: ^ BUILDSTDERR: player.c:276:50: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) BUILDSTDERR: ^ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:291:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: recalc () BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:423:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: quit () BUILDSTDERR: ^~~~ BUILDSTDERR: player.c: In function 'quit': BUILDSTDERR: player.c:436:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:423:1: note: declared here BUILDSTDERR: quit () BUILDSTDERR: ^~~~ BUILDSTDERR: player.c:441:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:423:1: note: declared here BUILDSTDERR: quit () BUILDSTDERR: ^~~~ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:472:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: more() BUILDSTDERR: ^~~~ BUILDSTDERR: player.c:487:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: take (itm, arg) BUILDSTDERR: ^~~~ BUILDSTDERR: player.c:583:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: drop_object (k) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c: In function 'drop_object': BUILDSTDERR: player.c:596:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery] == OPIT) BUILDSTDERR: ^ BUILDSTDERR: player.c:596:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery] == OPIT) BUILDSTDERR: ^ BUILDSTDERR: player.c:598:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: else if (item[playerx][playery]) { BUILDSTDERR: ^ BUILDSTDERR: player.c:598:24: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: else if (item[playerx][playery]) { BUILDSTDERR: ^ BUILDSTDERR: player.c:607:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = itm; BUILDSTDERR: ^ BUILDSTDERR: player.c:607:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = itm; BUILDSTDERR: ^ BUILDSTDERR: player.c:608:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery] = ivenarg[k]; BUILDSTDERR: ^ BUILDSTDERR: player.c:608:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery] = ivenarg[k]; BUILDSTDERR: ^ BUILDSTDERR: player.c:624:6: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: player.c:624:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:634:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: enchantarmor (how) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: player.c: In function 'enchantarmor': BUILDSTDERR: player.c:647:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:634:1: note: declared here BUILDSTDERR: enchantarmor (how) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: player.c:664:50: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\nYour %s glows briefly.", objectname[iven[c[which]]]); BUILDSTDERR: ^ BUILDSTDERR: player.c:665:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:634:1: note: declared here BUILDSTDERR: enchantarmor (how) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: player.c:670:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: objectname[iven[c[which]]]); BUILDSTDERR: ^ BUILDSTDERR: player.c:674:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:634:1: note: declared here BUILDSTDERR: enchantarmor (how) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: player.c:678:53: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\nYour %s glows for a moment.", objectname[iven[c[which]]]); BUILDSTDERR: ^ BUILDSTDERR: player.c:638:6: warning: unused variable 'tmp' [-Wunused-variable] BUILDSTDERR: int tmp; BUILDSTDERR: ^~~ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:685:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: enchweapon (how) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: player.c: In function 'enchweapon': BUILDSTDERR: player.c:694:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:685:1: note: declared here BUILDSTDERR: enchweapon (how) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: player.c: At top level: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from help.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: player.c:733:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: pocketfull () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: player.c:747:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nearbymonst () BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c:762:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: stealsomething (x,y) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: player.c: In function 'stealsomething': BUILDSTDERR: player.c:782:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: beenhere[level]++; BUILDSTDERR: ^ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:792:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: emptyhanded () BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c:806:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: creategem () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: player.c:835:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c: In function 'adjustcvalues': BUILDSTDERR: player.c:877:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:880:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:883:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:886:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:889:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:900:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c:903:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: player.c:835:1: note: declared here BUILDSTDERR: adjustcvalues (itm, arg) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: player.c: At top level: BUILDSTDERR: player.c:919:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: gettokstr (str) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: player.c:946:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: getpassword () BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: player.c:971:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: getyn () BUILDSTDERR: ^~~~~ BUILDSTDERR: player.c:987:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: packweight () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: player.c: In function 'raiselevel': BUILDSTDERR: player.c:43:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'loselevel': BUILDSTDERR: player.c:57:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'raiseexperience': BUILDSTDERR: player.c:125:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'loseexperience': BUILDSTDERR: player.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'losehp': BUILDSTDERR: player.c:181:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'losemhp': BUILDSTDERR: player.c:192:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'raisehp': BUILDSTDERR: player.c:208:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'raisemhp': BUILDSTDERR: player.c:215:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'raisespells': BUILDSTDERR: player.c:231:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'raisemspells': BUILDSTDERR: player.c:238:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'losespells': BUILDSTDERR: player.c:254:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'losemspells': BUILDSTDERR: player.c:263:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'positionplayer': BUILDSTDERR: player.c:286:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'recalc': BUILDSTDERR: player.c:415:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'more': BUILDSTDERR: player.c:481:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'creategem': BUILDSTDERR: player.c:829:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'gettokstr': BUILDSTDERR: player.c:939:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: player.c: In function 'getpassword': BUILDSTDERR: player.c:955:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(gpwbuf,BUFSIZ-1,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: help.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: help () BUILDSTDERR: ^~~~ BUILDSTDERR: help.c: In function 'help': BUILDSTDERR: help.c:23:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* open the help file and get # pages */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: help.c:17:1: note: declared here BUILDSTDERR: help () BUILDSTDERR: ^~~~ BUILDSTDERR: help.c:46:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: help.c:17:1: note: declared here BUILDSTDERR: help () BUILDSTDERR: ^~~~ BUILDSTDERR: help.c: At top level: BUILDSTDERR: help.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: welcome () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: help.c: In function 'welcome': BUILDSTDERR: help.c:64:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* open the help file */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: help.c:58:1: note: declared here BUILDSTDERR: welcome () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: help.c: At top level: BUILDSTDERR: help.c:77:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: retcont () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: help.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: openhelp () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: help.c: In function 'retcont': BUILDSTDERR: help.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c io.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c main.c BUILDSTDERR: player.c: In function 'enchantarmor': BUILDSTDERR: player.c:673:22: warning: array subscript -1 is below array bounds of 'char[]' [-Warray-bounds] BUILDSTDERR: adjustcvalues(iven[c[which]], ivenarg[c[which]]); /* Surely not? */ BUILDSTDERR: ~~~~^~~~~~~~~~ BUILDSTDERR: player.c:673:41: warning: array subscript -1 is below array bounds of 'short int[]' [-Warray-bounds] BUILDSTDERR: adjustcvalues(iven[c[which]], ivenarg[c[which]]); /* Surely not? */ BUILDSTDERR: ~~~~~~~^~~~~~~~~~ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from main.c:3: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from io.c:50: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c monster.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from monster.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: io.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: getcharacter () BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: io.c: In function 'getcharacter': BUILDSTDERR: io.c:68:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* byt=getchar(); /* get character from terminal */ BUILDSTDERR: BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: newgame () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c: In function 'newgame': BUILDSTDERR: io.c:84:2: warning: implicit declaration of function 'time'; did you mean 'ftime'? [-Wimplicit-function-declaration] BUILDSTDERR: time(&initialtime); BUILDSTDERR: ^~~~ BUILDSTDERR: ftime BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:104:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lprintf(char *fmt, ...) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c: In function 'lprintf': BUILDSTDERR: io.c:120:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:104:1: note: declared here BUILDSTDERR: lprintf(char *fmt, ...) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c:163:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: while (*outb++ = *tmpb++); BUILDSTDERR: ^ BUILDSTDERR: io.c:171:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: while (*outb++ = *tmpb++) BUILDSTDERR: ^ BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:229:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lprint (x) BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lwrite (buf, len) BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:338:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lrfill (adr, num) BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:436:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lcreat(str) BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:460:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lopen (str) BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c:483:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lappend (str) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c:506:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lrclose() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c:517:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lwclose () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: io.c:528:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lprcat (str) BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c: In function 'lprcat': BUILDSTDERR: io.c:536:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: while (*str2++ = *str++) BUILDSTDERR: ^ BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:557:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: init_term () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: io.c: In function 'init_term': BUILDSTDERR: io.c:563:10: warning: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration] BUILDSTDERR: switch (tgetent(termbuf, term = getenv("TERM"))) { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: getenv BUILDSTDERR: io.c:583:37: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* if (pc = tgetstr("pc", &capptr)) /* padding character */ BUILDSTDERR: BUILDSTDERR: io.c:585:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* BUILDSTDERR: BUILDSTDERR: io.c:592:9: warning: implicit declaration of function 'tgetflag'; did you mean 'tgetstr'? [-Wimplicit-function-declaration] BUILDSTDERR: if (!tgetflag("bs")) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: tgetstr BUILDSTDERR: io.c:560:8: warning: unused variable 'pc' [-Wunused-variable] BUILDSTDERR: char *pc, *capptr = cap+10; BUILDSTDERR: ^~ BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:631:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cl_up (x,y) BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: main (argc, argv) BUILDSTDERR: ^~~~ BUILDSTDERR: io.c:647:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cl_dn (x,y) BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c:670:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: standout (str) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: io.c: In function 'standout': BUILDSTDERR: io.c:675:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:670:1: note: declared here BUILDSTDERR: standout (str) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:686:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: set_score_output() { BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: io.c:699:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lflush () BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c: In function 'lflush': BUILDSTDERR: io.c:713:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:699:1: note: declared here BUILDSTDERR: lflush () BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c: In function 'main': BUILDSTDERR: main.c:64:13: warning: implicit declaration of function 'setresgid'; did you mean 'setregid'? [-Wimplicit-function-declaration] BUILDSTDERR: if (setresgid(-1, realgid, realgid) != 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: setregid BUILDSTDERR: main.c:73:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: if (pwe=getpwuid(geteuid())) BUILDSTDERR: ^~~ BUILDSTDERR: io.c:722:5: warning: implicit declaration of function 'tputs'; did you mean 'puts'? [-Wimplicit-function-declaration] BUILDSTDERR: tputs (CL, 0, putcharacter); BUILDSTDERR: ^~~~~ BUILDSTDERR: puts BUILDSTDERR: io.c:745:12: warning: implicit declaration of function 'tgoto' [-Wimplicit-function-declaration] BUILDSTDERR: tputs (tgoto (CM, curx, cury), 0, putcharacter); BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: At top level: BUILDSTDERR: io.c:795:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: putcharacter(c) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: io.c:806:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: flush_buf() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: io.c:824:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: tmcapcnv(sd,ss) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: main.c: At top level: BUILDSTDERR: main.c:307:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c: In function 'parse': BUILDSTDERR: main.c:319:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:321:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* west */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:323:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* west */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:325:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* east */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:327:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* east */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:329:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* south */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:331:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* south */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c: In function 'newgame': BUILDSTDERR: io.c:87:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: io.c: In function 'lprint': BUILDSTDERR: io.c:238:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: io.c: In function 'lwrite': BUILDSTDERR: io.c:262:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(lfd,buf,len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: io.c:278:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:333:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* north */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:335:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* north */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:337:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* northeast */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:339:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* northeast */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:341:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* northwest */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:343:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* northwest */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:345:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* southeast */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:347:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* southeast */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:349:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* southwest */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:351:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* southwest */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:355:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* do nothing, stay here */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:359:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c: In function 'lrfill': BUILDSTDERR: io.c:371:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:363:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* wield a weapon */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:367:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* wear armor */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:375:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* to read a scroll */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:380:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* quaff a potion */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:385:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* to drop an object */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:389:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* cast a spell */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:393:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:398:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* status */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'lrclose': BUILDSTDERR: io.c:510:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: io.c: In function 'lwclose': BUILDSTDERR: io.c:522:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: io.c: In function 'lprcat': BUILDSTDERR: io.c:539:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:403:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* to eat a fortune cookie */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:408:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /*list spells and scrolls */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:413:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /*give the help screen*/ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'init_term': BUILDSTDERR: io.c:626:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: io.c: In function 'cl_up': BUILDSTDERR: main.c:439:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:642:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:447:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:451:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'cl_dn': BUILDSTDERR: io.c:665:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:455:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* teleport yourself */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'set_score_output': BUILDSTDERR: io.c:688:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:475:25: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprcat(objectname[item[i][j]]); BUILDSTDERR: ^ BUILDSTDERR: main.c:482:11: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:491:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'putcharacter': BUILDSTDERR: io.c:801:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:498:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c: In function 'flush_buf': BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c:809:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(lfd, outbuf, ind); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.c:505:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: io.c:811:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:515:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:522:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: io.c: In function 'tmcapcnv': BUILDSTDERR: io.c:886:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: main.c:530:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:586:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:601:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:608:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:618:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:623:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* quit */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:630:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* look */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c:638:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c:307:1: note: declared here BUILDSTDERR: parse () BUILDSTDERR: ^~~~~ BUILDSTDERR: main.c: At top level: BUILDSTDERR: main.c:643:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: parse2 () BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: createmonster(mon) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c: In function 'createmonster': BUILDSTDERR: monster.c:100:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:91:1: note: declared here BUILDSTDERR: createmonster(mon) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c:121:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:91:1: note: declared here BUILDSTDERR: createmonster(mon) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:136:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cgood(x, y, itm, monst) BUILDSTDERR: ^~~~~ BUILDSTDERR: monster.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: In function 'createitem': BUILDSTDERR: monster.c:165:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* no such object */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:178:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:186:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:193:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:200:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:207:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:210:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:219:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:159:1: note: declared here BUILDSTDERR: createitem(x, y, it, arg) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:233:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cast() BUILDSTDERR: ^~~~ BUILDSTDERR: monster.c: In function 'cast': BUILDSTDERR: monster.c:240:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:233:1: note: declared here BUILDSTDERR: cast() BUILDSTDERR: ^~~~ BUILDSTDERR: monster.c:252:3: warning: statement with no effect [-Wunused-value] BUILDSTDERR: lflush; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:256:3: warning: statement with no effect [-Wunused-value] BUILDSTDERR: lflush; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:260:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:233:1: note: declared here BUILDSTDERR: cast() BUILDSTDERR: ^~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:284:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: In function 'speldamage': BUILDSTDERR: monster.c:293:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* no such spell */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:297:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:301:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:306:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:315:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:322:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:328:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:335:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:339:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:344:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:356:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:369:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:373:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:377:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:384:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:388:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:395:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:404:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:410:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* fireball */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:415:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:419:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:423:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:427:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:431:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: main.c: In function 'parse2': BUILDSTDERR: main.c:650:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: monster.c:481:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:486:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:491:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:497:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:504:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:509:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:517:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:524:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:537:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:541:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:545:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* time stop */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:549:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:553:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:558:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:567:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:574:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:580:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:585:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:589:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:596:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:600:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:671:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:678:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:683:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:284:1: note: declared here BUILDSTDERR: speldamage(x) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:692:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: loseint() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:704:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: isconfuse() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:721:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nospell(x, monst) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:745:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fullhit(xx) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:768:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c: In function 'direct': BUILDSTDERR: monster.c:776:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad arguments */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:778:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:791:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:803:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:808:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:814:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:768:1: note: declared here BUILDSTDERR: direct(spnum, dam, str, arg) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:830:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: godirect(spnum, dam, str, delay, cshow) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: In function 'godirect': BUILDSTDERR: monster.c:839:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad args */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:830:1: note: declared here BUILDSTDERR: godirect(spnum, dam, str, delay, cshow) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:842:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:830:1: note: declared here BUILDSTDERR: godirect(spnum, dam, str, delay, cshow) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:866:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:830:1: note: declared here BUILDSTDERR: godirect(spnum, dam, str, delay, cshow) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:890:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:830:1: note: declared here BUILDSTDERR: godirect(spnum, dam, str, delay, cshow) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:975:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ifblind(x, y) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:997:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: tdirect(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c: In function 'tdirect': BUILDSTDERR: monster.c:1004:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad args */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:997:1: note: declared here BUILDSTDERR: tdirect(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1006:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:997:1: note: declared here BUILDSTDERR: tdirect(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1010:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:997:1: note: declared here BUILDSTDERR: tdirect(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1016:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:997:1: note: declared here BUILDSTDERR: tdirect(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1022:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makewall(spnum) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: In function 'makewall': BUILDSTDERR: monster.c:1028:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad args */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1022:1: note: declared here BUILDSTDERR: makewall(spnum) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:1030:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1022:1: note: declared here BUILDSTDERR: makewall(spnum) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:1033:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if ((y >= 0) && (y <= MAXY - 1) && (x >= 0) && (x <= MAXX - 1)) /* within bounds? */ BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1062:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: omnidirect(spnum, dam, str) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: In function 'omnidirect': BUILDSTDERR: monster.c:1069:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad args */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1062:1: note: declared here BUILDSTDERR: omnidirect(spnum, dam, str) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:1072:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if ((m = mitem[x][y].mon) != 0) BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1095:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dirsub(x, y) BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1138:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: verifyxy(x, y) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:1170:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dirpoly(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c: In function 'dirpoly': BUILDSTDERR: monster.c:1176:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* bad args */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1170:1: note: declared here BUILDSTDERR: dirpoly(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1178:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* if he is confused, he can't aim his magic */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1170:1: note: declared here BUILDSTDERR: dirpoly(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1182:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1170:1: note: declared here BUILDSTDERR: dirpoly(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c:1188:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1170:1: note: declared here BUILDSTDERR: dirpoly(spnum) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1204:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: hitmonster(x, y) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: In function 'hitmonster': BUILDSTDERR: monster.c:1210:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* not if time stopped */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1204:1: note: declared here BUILDSTDERR: hitmonster(x, y) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:1215:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1204:1: note: declared here BUILDSTDERR: hitmonster(x, y) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c:1240:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if (flag && (monst==RUSTMONSTER || monst==DISENCHANTRESS || monst==CUBE) BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1290:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: hitm(x, y, amt) BUILDSTDERR: ^~~~ BUILDSTDERR: monster.c: In function 'hitm': BUILDSTDERR: monster.c:1357:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: beenhere[level] -= mitem[x][y].n; BUILDSTDERR: ^ BUILDSTDERR: monster.c:1358:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (beenhere[level] < 1) beenhere[level]=1; BUILDSTDERR: ^ BUILDSTDERR: monster.c:1358:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (beenhere[level] < 1) beenhere[level]=1; BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1385:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: hitplayer (x, y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c: In function 'hitplayer': BUILDSTDERR: monster.c:1406:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1385:1: note: declared here BUILDSTDERR: hitplayer (x, y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:1411:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1385:1: note: declared here BUILDSTDERR: hitplayer (x, y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:1418:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1385:1: note: declared here BUILDSTDERR: hitplayer (x, y) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:1447:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1385:1: note: declared here BUILDSTDERR: hitplayer (x, y) BUILDSTDERR: ^~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c moreobj.c BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1481:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dropsomething (x,y,monst) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c: In function 'dropsomething': BUILDSTDERR: monster.c:1497:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1481:1: note: declared here BUILDSTDERR: dropsomething (x,y,monst) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c:1502:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1481:1: note: declared here BUILDSTDERR: dropsomething (x,y,monst) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1511:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dropgold(amount) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c:1528:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: something(x,y,lev) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c: In function 'something': BUILDSTDERR: monster.c:1534:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* correct level? */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1528:1: note: declared here BUILDSTDERR: something(x,y,lev) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1560:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: newobject(lev, i) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:1687:42: warning: missing braces around initializer [-Wmissing-braces] BUILDSTDERR: static short rustarm[ARMORTYPES][2] = { BUILDSTDERR: ^ BUILDSTDERR: monster.c:1698:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: spattack(x, xx, yy) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: In function 'spattack': BUILDSTDERR: monster.c:1709:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if (c[CANCELLATION]) BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1937:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: checkloss(x) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:1953:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: annihilate() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: monster.c: In function 'annihilate': BUILDSTDERR: monster.c:1964:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: k += monster[*p].experience; BUILDSTDERR: ^ BUILDSTDERR: monster.c:1968:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: monster[*p].name); BUILDSTDERR: ^ BUILDSTDERR: monster.c:1962:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if (*(p = &mitem[i][j].mon)) /* if a monster there */ BUILDSTDERR: ^ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:1983:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: genmonst() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: In function 'genmonst': BUILDSTDERR: monster.c:2001:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:1983:1: note: declared here BUILDSTDERR: genmonst() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: monster.c: At top level: BUILDSTDERR: monster.c:2012:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makemonst(lev) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c:2044:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: randmonst () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c: In function 'randmonst': BUILDSTDERR: monster.c:2047:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: monster.c:2044:1: note: declared here BUILDSTDERR: randmonst () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: monster.c: In function 'loseint': BUILDSTDERR: monster.c:696:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: monster.c: In function 'ifblind': BUILDSTDERR: monster.c:989:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: monster.c: In function 'dropgold': BUILDSTDERR: monster.c:1518:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from moreobj.c:10: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: monster.c: In function 'checkloss': BUILDSTDERR: monster.c:1944:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: monster.c: In function 'annihilate': BUILDSTDERR: monster.c:1976:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c: In function 'oaltar': BUILDSTDERR: moreobj.c:43:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from moreobj.c:10: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:61:6: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:61:6: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:61:6: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:61:6: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:64:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:68:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: if (k < (c[GOLD]+k)/10 || k < rnd(50) && !wizard) { BUILDSTDERR: ~~~~~~~~~~~~^~~~~~~~~~ BUILDSTDERR: moreobj.c:72:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:90:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from moreobj.c:10: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:102:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /*remember to destroy the altar*/ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:102:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /*remember to destroy the altar*/ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:102:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /*remember to destroy the altar*/ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:102:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /*remember to destroy the altar*/ BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:105:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:116:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:22:1: note: declared here BUILDSTDERR: oaltar() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c: At top level: BUILDSTDERR: moreobj.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ohear() BUILDSTDERR: ^~~~~ BUILDSTDERR: moreobj.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: othrone(arg) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: moreobj.c: In function 'othrone': BUILDSTDERR: moreobj.c:154:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=ODEADTHRONE; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:154:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=ODEADTHRONE; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:155:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:155:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:159:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OTHRONE2; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:159:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OTHRONE2; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:160:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:160:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:163:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:139:1: note: declared here BUILDSTDERR: othrone(arg) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: moreobj.c:170:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OTHRONE2; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:170:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OTHRONE2; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:171:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:171:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:179:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:139:1: note: declared here BUILDSTDERR: othrone(arg) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: moreobj.c:184:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:139:1: note: declared here BUILDSTDERR: othrone(arg) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: moreobj.c: At top level: BUILDSTDERR: moreobj.c:189:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: odeadthrone() BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: moreobj.c: In function 'odeadthrone': BUILDSTDERR: moreobj.c:207:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:189:1: note: declared here BUILDSTDERR: odeadthrone() BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: moreobj.c:212:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:189:1: note: declared here BUILDSTDERR: odeadthrone() BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: moreobj.c: At top level: BUILDSTDERR: moreobj.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ochest() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c: In function 'ochest': BUILDSTDERR: moreobj.c:263:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:263:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:263:32: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:263:41: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: In file included from moreobj.c:10: BUILDSTDERR: moreobj.c:266:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: dropgold(rnd(110*iarg[playerx][playery]+200)); BUILDSTDERR: ^ BUILDSTDERR: header.h:202:34: note: in definition of macro 'rnd' BUILDSTDERR: #define rnd(x) ((int)(rand() % (x)) + 1) BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:266:35: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: dropgold(rnd(110*iarg[playerx][playery]+200)); BUILDSTDERR: ^ BUILDSTDERR: header.h:202:34: note: in definition of macro 'rnd' BUILDSTDERR: #define rnd(x) ((int)(rand() % (x)) + 1) BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:268:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: something(playerx, playery, iarg[playerx][playery]+2); BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:268:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: something(playerx, playery, iarg[playerx][playery]+2); BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:271:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:223:1: note: declared here BUILDSTDERR: ochest() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:275:24: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (take(OCHEST,iarg[playerx][playery])==0) BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:275:33: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (take(OCHEST,iarg[playerx][playery])==0) BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:276:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:276:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:276:32: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:276:41: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:277:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:223:1: note: declared here BUILDSTDERR: ochest() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:282:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:223:1: note: declared here BUILDSTDERR: ochest() BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c: At top level: BUILDSTDERR: moreobj.c:292:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ofountain() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c: In function 'ofountain': BUILDSTDERR: moreobj.c:308:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:292:1: note: declared here BUILDSTDERR: ofountain() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c:336:8: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=ODEADFOUNTAIN; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:336:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=ODEADFOUNTAIN; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:337:8: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:337:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: moreobj.c:339:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:292:1: note: declared here BUILDSTDERR: ofountain() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c:344:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:292:1: note: declared here BUILDSTDERR: ofountain() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c:363:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: moreobj.c:292:1: note: declared here BUILDSTDERR: ofountain() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c: At top level: BUILDSTDERR: moreobj.c:371:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fntchange(how) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: moreobj.c:450:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fch(how,x) BUILDSTDERR: ^~~ BUILDSTDERR: moreobj.c: In function 'ohear': BUILDSTDERR: moreobj.c:131:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: moreobj.c: In function 'fntchange': BUILDSTDERR: moreobj.c:441:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: moreobj.c: In function 'fch': BUILDSTDERR: moreobj.c:466:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c movem.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from movem.c:13: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c object.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from object.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: movem.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: movemonst() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: movem.c: In function 'movemonst': BUILDSTDERR: movem.c:34:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* no action if time is stopped */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:29:1: note: declared here BUILDSTDERR: movemonst() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: movem.c:36:29: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((c[HASTESELF]&1)==0) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:29:1: note: declared here BUILDSTDERR: movemonst() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: movem.c:40:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* no action if monsters are held */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:29:1: note: declared here BUILDSTDERR: movemonst() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: movem.c:76:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: moved[lasthx][lasthy]=0; BUILDSTDERR: ^ BUILDSTDERR: movem.c:76:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: moved[lasthx][lasthy]=0; BUILDSTDERR: ^ BUILDSTDERR: movem.c:96:11: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (mitem[lasthx][lasthy].mon) /* now move monster last hit by player if not already moved */ BUILDSTDERR: ^ BUILDSTDERR: movem.c:96:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (mitem[lasthx][lasthy].mon) /* now move monster last hit by player if not already moved */ BUILDSTDERR: ^ BUILDSTDERR: movem.c:98:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (moved[lasthx][lasthy]==0) /* if it has not already been moved */ BUILDSTDERR: ^ BUILDSTDERR: movem.c:98:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (moved[lasthx][lasthy]==0) /* if it has not already been moved */ BUILDSTDERR: ^ BUILDSTDERR: movem.c: At top level: BUILDSTDERR: movem.c:118:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: movemt(i,j) BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c: In function 'movemt': BUILDSTDERR: movem.c:133:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:118:1: note: declared here BUILDSTDERR: movemt(i,j) BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:166:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:118:1: note: declared here BUILDSTDERR: movemt(i,j) BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:206:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: screen[playerx][playery]=1; BUILDSTDERR: ^ BUILDSTDERR: movem.c:206:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: screen[playerx][playery]=1; BUILDSTDERR: ^ BUILDSTDERR: movem.c:234:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:118:1: note: declared here BUILDSTDERR: movemt(i,j) BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c: At top level: BUILDSTDERR: movem.c:297:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: mmove(aa,bb,cc,dd) BUILDSTDERR: ^~~~~ BUILDSTDERR: movem.c: In function 'mmove': BUILDSTDERR: movem.c:308:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:297:1: note: declared here BUILDSTDERR: mmove(aa,bb,cc,dd) BUILDSTDERR: ^~~~~ BUILDSTDERR: movem.c:335:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:297:1: note: declared here BUILDSTDERR: mmove(aa,bb,cc,dd) BUILDSTDERR: ^~~~~ BUILDSTDERR: movem.c:402:25: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: mitem[cc][dd].it[n].item = item[cc][dd]; BUILDSTDERR: ^ BUILDSTDERR: movem.c:403:25: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: mitem[cc][dd].it[n].itemarg = iarg[cc][dd]; BUILDSTDERR: ^ BUILDSTDERR: movem.c:446:21: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (c[BLINDCOUNT]) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:297:1: note: declared here BUILDSTDERR: mmove(aa,bb,cc,dd) BUILDSTDERR: ^~~~~ BUILDSTDERR: movem.c:476:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:297:1: note: declared here BUILDSTDERR: mmove(aa,bb,cc,dd) BUILDSTDERR: ^~~~~ BUILDSTDERR: movem.c: At top level: BUILDSTDERR: movem.c:484:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: teleportmonst (xx, yy, monst) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: movem.c: In function 'teleportmonst': BUILDSTDERR: movem.c:514:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: movem.c:484:1: note: declared here BUILDSTDERR: teleportmonst (xx, yy, monst) BUILDSTDERR: ^~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c regen.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from regen.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: object.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c: In function 'lookforobject': BUILDSTDERR: object.c:21:20: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (c[TIMESTOP]) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:23:8: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i=item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:23:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i=item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:24:12: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (i==0) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:40:11: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:40:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:48:11: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:48:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:55:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:71:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:77:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:88:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:124:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:136:7: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:136:7: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:136:7: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:136:7: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:138:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:142:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:142:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:142:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:142:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:144:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:149:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:149:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:149:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:149:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:157:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:157:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:157:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:157:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:160:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:163:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:168:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:193:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:199:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:210:18: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (rnd(11)<6) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:211:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTELEPORTER; BUILDSTDERR: ^ BUILDSTDERR: object.c:211:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTELEPORTER; BUILDSTDERR: ^ BUILDSTDERR: object.c:212:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:212:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:222:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:234:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:241:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:262:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:268:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:291:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:306:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: switch(iarg[playerx][playery]) { BUILDSTDERR: ^ BUILDSTDERR: object.c:306:25: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: switch(iarg[playerx][playery]) { BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:337:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:337:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:337:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:337:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:338:9: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OOPENDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:338:18: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OOPENDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:358:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:377:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:394:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:413:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:429:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:432:19: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (rnd(17)<13) return; /* for an arrow trap */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:433:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTRAPARROW; BUILDSTDERR: ^ BUILDSTDERR: object.c:433:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTRAPARROW; BUILDSTDERR: ^ BUILDSTDERR: object.c:434:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: object.c:434:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: object.c:441:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:445:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* for a dart trap */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:446:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = ODARTRAP; BUILDSTDERR: ^ BUILDSTDERR: object.c:446:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = ODARTRAP; BUILDSTDERR: ^ BUILDSTDERR: object.c:447:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: object.c:447:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 0; BUILDSTDERR: ^ BUILDSTDERR: object.c:455:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:459:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* for a trap door */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:460:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTRAPDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:460:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = OTRAPDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:461:7: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:461:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: know[playerx][playery] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:467:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:484:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:487:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:494:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:497:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:506:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:508:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:517:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:540:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:540:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:540:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:540:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:545:27: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSPEED,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:545:27: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSPEED,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:545:27: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSPEED,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:545:27: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSPEED,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:564:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:564:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:564:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:564:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:569:29: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSHROOMS,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:569:29: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSHROOMS,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:569:29: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSHROOMS,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:569:29: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OSHROOMS,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:594:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: hitp[k][j]=monster[mitem[k][j].mon].hitpoints; BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:596:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:596:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:596:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:596:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:601:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OACID,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:601:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OACID,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:601:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OACID,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:601:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OACID,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:624:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:624:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:624:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:624:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:629:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OHASH,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:629:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OHASH,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:629:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OHASH,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:629:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OHASH,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:651:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:651:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:651:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:651:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:656:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOKE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:656:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOKE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:656:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOKE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:656:26: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOKE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:669:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:673:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c:676:22: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (nearbymonst()) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:16:1: note: declared here BUILDSTDERR: lookforobject() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:694:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: finditem(itm) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: object.c: In function 'finditem': BUILDSTDERR: object.c:699:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: tmp=iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:699:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: tmp=iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:728:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:728:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:728:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:728:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:729:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:694:1: note: declared here BUILDSTDERR: finditem(itm) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:743:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ostairs(dir) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: In function 'ostairs': BUILDSTDERR: object.c:760:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:743:1: note: declared here BUILDSTDERR: ostairs(dir) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:782:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:743:1: note: declared here BUILDSTDERR: ostairs(dir) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:805:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:743:1: note: declared here BUILDSTDERR: ostairs(dir) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:817:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: oteleport(err) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: object.c:866:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* BUILDSTDERR: BUILDSTDERR: object.c:873:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: opotion(pot) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: In function 'opotion': BUILDSTDERR: object.c:883:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:873:1: note: declared here BUILDSTDERR: opotion(pot) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:887:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy potion */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:887:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy potion */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:887:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy potion */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:887:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy potion */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:889:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:873:1: note: declared here BUILDSTDERR: opotion(pot) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:893:30: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OPOTION,pot)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:893:30: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OPOTION,pot)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:893:30: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OPOTION,pot)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:893:30: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OPOTION,pot)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:894:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:873:1: note: declared here BUILDSTDERR: opotion(pot) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:901:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c: In function 'quaffpotion': BUILDSTDERR: object.c:908:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* check for within bounds */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:930:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:944:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:987:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:995:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1004:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1007:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1016:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1021:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1059:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: regen.c:15:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: regen() BUILDSTDERR: ^~~~~ BUILDSTDERR: regen.c: In function 'regen': BUILDSTDERR: regen.c:24:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: regen.c:15:1: note: declared here BUILDSTDERR: regen() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c:1068:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1073:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1079:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1083:2: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:901:1: note: declared here BUILDSTDERR: quaffpotion(pot) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1093:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: oscroll(typ) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: In function 'oscroll': BUILDSTDERR: object.c:1105:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1093:1: note: declared here BUILDSTDERR: oscroll(typ) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: regen.c:178:14: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery]==0)/* if nothing there */ BUILDSTDERR: ^ BUILDSTDERR: regen.c:178:23: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery]==0)/* if nothing there */ BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1110:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1110:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1110:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1110:3: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1117:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1093:1: note: declared here BUILDSTDERR: oscroll(typ) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1122:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy it */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1122:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy it */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1122:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy it */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1122:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* destroy it */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1123:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1093:1: note: declared here BUILDSTDERR: oscroll(typ) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1146:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: adjusttime(tim) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: object.c: In function 'adjusttime': BUILDSTDERR: object.c:1152:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (c[time_change[j]]) { BUILDSTDERR: ^ BUILDSTDERR: object.c:1153:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (c[time_change[j]] < tim+1) BUILDSTDERR: ^ BUILDSTDERR: object.c:1154:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: c[time_change[j]] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:1156:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: c[time_change[j]] -= tim; BUILDSTDERR: ^ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1164:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c: In function 'read_scroll': BUILDSTDERR: object.c:1169:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* be sure we are within bounds */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1177:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1181:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1194:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1197:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1201:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1205:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1209:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1228:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1232:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1236:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1241:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1247:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: hitp[j][i] = monster[mitem[j][i].mon].hitpoints; BUILDSTDERR: ^ BUILDSTDERR: object.c:1249:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1254:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1259:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1264:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1273:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1278:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1164:1: note: declared here BUILDSTDERR: read_scroll(typ) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1298:5: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: c[exten[i]] <<= 1; BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'removecurse': BUILDSTDERR: object.c:1337:8: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (c[curse[i]]) c[curse[i]] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c:1337:21: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (c[curse[i]]) c[curse[i]] = 1; BUILDSTDERR: ^ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1340:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: opit() BUILDSTDERR: ^~~~ BUILDSTDERR: object.c: In function 'opit': BUILDSTDERR: object.c:1344:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1340:1: note: declared here BUILDSTDERR: opit() BUILDSTDERR: ^~~~ BUILDSTDERR: object.c:1349:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1340:1: note: declared here BUILDSTDERR: opit() BUILDSTDERR: ^~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1376:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: obottomless() BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: object.c:1385:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: oelevator(dir) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: object.c: In function 'oelevator': BUILDSTDERR: object.c:1391:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1385:1: note: declared here BUILDSTDERR: oelevator(dir) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1417:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ostatue() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:1421:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: omirror() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:1424:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: obook() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c: In function 'obook': BUILDSTDERR: object.c:1435:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1424:1: note: declared here BUILDSTDERR: obook() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c:1440:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: readbook(iarg[playerx][playery]); BUILDSTDERR: ^ BUILDSTDERR: object.c:1440:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: readbook(iarg[playerx][playery]); BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1442:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1442:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1442:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1442:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1443:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1424:1: note: declared here BUILDSTDERR: obook() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c:1447:23: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (take(OBOOK,iarg[playerx][playery])==0) BUILDSTDERR: ^ BUILDSTDERR: object.c:1447:32: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (take(OBOOK,iarg[playerx][playery])==0) BUILDSTDERR: ^ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1448:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more book */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1448:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more book */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1448:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more book */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1448:5: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more book */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1449:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1424:1: note: declared here BUILDSTDERR: obook() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1456:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: readbook(arg) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: object.c:1478:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: In function 'ocookie': BUILDSTDERR: object.c:1489:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1478:1: note: declared here BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1493:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more cookie */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1493:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more cookie */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1493:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more cookie */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1493:4: note: in expansion of macro 'forget' BUILDSTDERR: forget(); /* no more cookie */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1494:23: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (c[BLINDCOUNT]) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1478:1: note: declared here BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:1495:45: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if ((p=fortune(fortfile))==(char *)NULL) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1478:1: note: declared here BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c:1498:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1478:1: note: declared here BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1502:28: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOOKIE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1502:28: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOOKIE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1502:28: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOOKIE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1502:28: note: in expansion of macro 'forget' BUILDSTDERR: if (take(OCOOKIE,0)==0) forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1503:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1478:1: note: declared here BUILDSTDERR: ocookie() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1509:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ogold(arg) BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c: In function 'ogold': BUILDSTDERR: object.c:1514:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:1514:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i = iarg[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:1523:6: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ BUILDSTDERR: ^ BUILDSTDERR: object.c:1523:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ BUILDSTDERR: ^ BUILDSTDERR: object.c:1523:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ BUILDSTDERR: ^ BUILDSTDERR: object.c:1523:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ BUILDSTDERR: ^ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1526:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ohome() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c: In function 'ohome': BUILDSTDERR: object.c:1616:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1526:1: note: declared here BUILDSTDERR: ohome() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c: At top level: BUILDSTDERR: object.c:1622:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: iopts() BUILDSTDERR: ^~~~~ BUILDSTDERR: object.c:1626:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ignore() BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1631:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: closedoor() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: object.c: In function 'closedoor': BUILDSTDERR: object.c:1636:20: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (c[TIMESTOP]) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1631:1: note: declared here BUILDSTDERR: closedoor() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: object.c:1642:8: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i=item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:1642:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i=item[playerx][playery]; BUILDSTDERR: ^ BUILDSTDERR: object.c:1645:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1631:1: note: declared here BUILDSTDERR: closedoor() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from object.c:2: BUILDSTDERR: header.h:174:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1648:2: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1648:2: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1648:2: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: header.h:174:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery] = know[playerx][playery] = 0; \ BUILDSTDERR: ^ BUILDSTDERR: object.c:1648:2: note: in expansion of macro 'forget' BUILDSTDERR: forget(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: object.c:1649:6: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OCLOSEDDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:1649:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: item[playerx][playery]=OCLOSEDDOOR; BUILDSTDERR: ^ BUILDSTDERR: object.c:1650:6: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: object.c:1650:15: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: iarg[playerx][playery]=0; BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'oteleport': BUILDSTDERR: object.c:850:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'adjusttime': BUILDSTDERR: object.c:1159:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'obottomless': BUILDSTDERR: object.c:1383:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'ostatue': BUILDSTDERR: object.c:1418:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: { } /* nothing happens when you move on a statue */ BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'omirror': BUILDSTDERR: object.c:1422:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: { } /* nothing happens when you move on a mirror */ BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'readbook': BUILDSTDERR: object.c:1476:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'ogold': BUILDSTDERR: object.c:1524:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'iopts': BUILDSTDERR: object.c:1625:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: object.c: In function 'ignore': BUILDSTDERR: object.c:1629:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c savelev.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from savelev.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: savelev.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: savelevel() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: savelev.c: In function 'savelevel': BUILDSTDERR: savelev.c:39:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: Saved_Level *storage = saved_levels[level]; BUILDSTDERR: ^ BUILDSTDERR: savelev.c:46:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: level_sums[level] = sum((unsigned char *)storage, sizeof(Saved_Level)); BUILDSTDERR: ^ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:53:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: getlevel() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: savelev.c: In function 'getlevel': BUILDSTDERR: savelev.c:57:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: Saved_Level *storage = saved_levels[level]; BUILDSTDERR: ^ BUILDSTDERR: savelev.c:65:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (level_sums[level] > 0) { BUILDSTDERR: ^ BUILDSTDERR: savelev.c:67:20: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: != level_sums[level]) { BUILDSTDERR: ^ BUILDSTDERR: savelev.c:70:24: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: i, level, level_sums[level]); BUILDSTDERR: ^ BUILDSTDERR: savelev.c:77:13: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: level_sums[level] = sum((unsigned char *)storage, BUILDSTDERR: ^ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: savegame(fname) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: savelev.c:204:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: restoregame(fname) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: savelev.c: In function 'restoregame': BUILDSTDERR: savelev.c:216:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: if (fd = (mkstemp(tempfilename)) == -1) { BUILDSTDERR: ^~ BUILDSTDERR: savelev.c:223:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:204:1: note: declared here BUILDSTDERR: restoregame(fname) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: savelev.c:235:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:204:1: note: declared here BUILDSTDERR: restoregame(fname) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: savelev.c:254:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:204:1: note: declared here BUILDSTDERR: restoregame(fname) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: savelev.c:274:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:204:1: note: declared here BUILDSTDERR: restoregame(fname) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: savelev.c:369:10: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery] == OCLOSEDDOOR) BUILDSTDERR: ^ BUILDSTDERR: savelev.c:369:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (item[playerx][playery] == OCLOSEDDOOR) BUILDSTDERR: ^ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: greedy() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: In function 'greedy': BUILDSTDERR: savelev.c:379:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:376:1: note: declared here BUILDSTDERR: greedy() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:388:2: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:376:1: note: declared here BUILDSTDERR: greedy() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:396:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fsorry() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: In function 'fsorry': BUILDSTDERR: savelev.c:399:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:396:1: note: declared here BUILDSTDERR: fsorry() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:411:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: fcheat() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: In function 'fcheat': BUILDSTDERR: savelev.c:414:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:411:1: note: declared here BUILDSTDERR: fcheat() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:416:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:411:1: note: declared here BUILDSTDERR: fcheat() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:425:2: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c:411:1: note: declared here BUILDSTDERR: fcheat() BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:429:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: init_cells() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: savelev.c:441:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bwrite(fd, buf, num) BUILDSTDERR: ^~~~~~ BUILDSTDERR: savelev.c: In function 'bwrite': BUILDSTDERR: savelev.c:463:38: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] BUILDSTDERR: fprintf(stderr, "wrote %d, wanted %d\n", nwrote, num); BUILDSTDERR: ~^ ~~~ BUILDSTDERR: %ld BUILDSTDERR: savelev.c: At top level: BUILDSTDERR: savelev.c:472:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: bread(fd, buf, num) BUILDSTDERR: ^~~~~ BUILDSTDERR: savelev.c: In function 'bread': BUILDSTDERR: savelev.c:493:38: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] BUILDSTDERR: fprintf(stderr, " Got %d, wanted %d bytes\n", nread, num); BUILDSTDERR: ~^ ~~~ BUILDSTDERR: %ld BUILDSTDERR: savelev.c: In function 'savelevel': BUILDSTDERR: savelev.c:47:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: savelev.c: In function 'getlevel': BUILDSTDERR: savelev.c:80:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: savelev.c: In function 'init_cells': BUILDSTDERR: savelev.c:438:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: savelev.c: In function 'bwrite': BUILDSTDERR: savelev.c:470:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: savelev.c: In function 'bread': BUILDSTDERR: savelev.c:500:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: savelev.c: In function 'savegame': BUILDSTDERR: savelev.c:187:7: warning: 'fp' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (pclose(fp) != 0) { /* if compress failed */ BUILDSTDERR: ^~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c scores.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from scores.c:36: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: scores.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: readboard() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: scores.c:145:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: writeboard() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: scores.c:187:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: makeboard() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: scores.c:212:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: hashewon() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c: In function 'paytaxes': BUILDSTDERR: scores.c:256:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (winr[i].score > 0) BUILDSTDERR: ^~ BUILDSTDERR: scores.c:258:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: if (x < amt) BUILDSTDERR: ^~ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:275:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: winshou() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: scores.c:324:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: shou(x) BUILDSTDERR: ^~~~ BUILDSTDERR: scores.c:397:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showscores() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: scores.c: In function 'showscores': BUILDSTDERR: scores.c:402:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:397:1: note: declared here BUILDSTDERR: showscores() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:420:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showallscores() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: scores.c: In function 'showallscores': BUILDSTDERR: scores.c:426:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:420:1: note: declared here BUILDSTDERR: showallscores() BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:453:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sortboard() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: scores.c:494:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c: In function 'newscore': BUILDSTDERR: scores.c:503:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* do the scoreboard */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:494:1: note: declared here BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c:521:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:494:1: note: declared here BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c:528:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:494:1: note: declared here BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c:535:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:494:1: note: declared here BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c:542:5: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:494:1: note: declared here BUILDSTDERR: newscore(score, whoo, whyded, winner) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:558:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: new1sub(score, i, whoo, taxes) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: scores.c:590:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: new2sub(score, i, whoo, whyded) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: scores.c:663:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: died(x) BUILDSTDERR: ^~~~ BUILDSTDERR: scores.c: In function 'died': BUILDSTDERR: scores.c:693:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* only case where died() returns */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: scores.c:663:1: note: declared here BUILDSTDERR: died(x) BUILDSTDERR: ^~~~ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:757:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: diedsub(x) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: scores.c: In function 'diedsub': BUILDSTDERR: scores.c:767:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] BUILDSTDERR: printf("Score: %ld Diff: %d ", c[GOLD], c[HARDGAME]); BUILDSTDERR: ~^ ~~~~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: scores.c:795:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: printf(" on %s\n", levelname[level]); BUILDSTDERR: ^ BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:802:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showscore3(index) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: scores.c: In function 'showscore3': BUILDSTDERR: scores.c:832:48: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: printf("\n%c) %s", index + 'a' , objectname[iven[index]]); BUILDSTDERR: ^ BUILDSTDERR: scores.c:834:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] BUILDSTDERR: printf(" + %d", (long)ivenarg[index]); BUILDSTDERR: ~^ ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: scores.c:836:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] BUILDSTDERR: printf(" %d", (long)ivenarg[index]); BUILDSTDERR: ~^ ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: scores.c: At top level: BUILDSTDERR: scores.c:846:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showscore1(idx, str2) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: scores.c: In function 'showscore1': BUILDSTDERR: scores.c:851:46: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: printf("\n%c) %s", idx + 'a' , objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: scores.c:853:46: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: printf("\n%c) %s", idx + 'a' , objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: scores.c:856:14: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: objectname[iven[idx]], str2[ivenarg[idx]]); BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c show.c BUILDSTDERR: scores.c: In function 'new1sub': BUILDSTDERR: scores.c:575:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'new2sub': BUILDSTDERR: scores.c:612:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'diedsub': BUILDSTDERR: scores.c:800:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'showscore3': BUILDSTDERR: scores.c:844:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'showscore1': BUILDSTDERR: scores.c:857:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from show.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: show.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showstr() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: show.c:23:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: qshowstr() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: show.c:49:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: t_setup (count) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: show.c:65:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: t_endup (count) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: show.c:79:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showwear() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: show.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showwield() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: show.c:187:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showread () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: show.c:218:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showeat () BUILDSTDERR: ^~~~~~~ BUILDSTDERR: show.c:247:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: showquaff () BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: show.c:273:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: show1 (idx, str2, known) BUILDSTDERR: ^~~~~ BUILDSTDERR: show.c: In function 'show1': BUILDSTDERR: show.c:281:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:283:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:286:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: idx+'a',objectname[iven[idx]],str2[ivenarg[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:290:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:292:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:294:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c:297:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: idx+'a',objectname[iven[idx]],str2[ivenarg[idx]]); BUILDSTDERR: ^ BUILDSTDERR: show.c: At top level: BUILDSTDERR: show.c:303:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: show3 (index) BUILDSTDERR: ^~~~~ BUILDSTDERR: show.c: In function 'show3': BUILDSTDERR: show.c:328:45: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("\n%c) %s",index+'a',objectname[iven[index]]); BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'paytaxes': BUILDSTDERR: scores.c:242:7: warning: 'amt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: long amt; BUILDSTDERR: ^~~ BUILDSTDERR: show.c: In function 'showstr': BUILDSTDERR: show.c:21:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'qshowstr': BUILDSTDERR: show.c:44:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 't_setup': BUILDSTDERR: show.c:60:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 't_endup': BUILDSTDERR: show.c:74:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'showwear': BUILDSTDERR: show.c:124:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'showwield': BUILDSTDERR: show.c:182:2: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'showread': BUILDSTDERR: show.c:213:2: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'showeat': BUILDSTDERR: show.c:242:2: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'showquaff': BUILDSTDERR: show.c:271:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'show1': BUILDSTDERR: show.c:301:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: show.c: In function 'show3': BUILDSTDERR: show.c:344:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: scores.c: In function 'sortboard': BUILDSTDERR: scores.c:468:16: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: sco[j].order = pos++; BUILDSTDERR: ~~~~~~~~~~~~~^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c signal.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c sphere.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from signal.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from sphere.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c store.c BUILDSTDERR: signal.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: s2choose() /* text to be displayed if ^C during intro screen */ BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from store.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: signal.c: In function 's2choose': BUILDSTDERR: signal.c:14:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: sphere.c:33:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: newsphere (x, y, dir, life) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dnd_2hed() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: sphere.c:136:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: rmsphere (x, y) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dnd_hed() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c:156:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dndstore() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c: In function 'dndstore': BUILDSTDERR: store.c:178:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:156:1: note: declared here BUILDSTDERR: dndstore() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: sphere.c:170:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sphboom (x, y) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: sphere.c: In function 'sphboom': BUILDSTDERR: sphere.c:183:6: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: sphere.c:170:1: note: declared here BUILDSTDERR: sphboom (x, y) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: sphere.c: At top level: BUILDSTDERR: sphere.c:205:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: movsphere() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: sphere.c: In function 'movsphere': BUILDSTDERR: sphere.c:223:7: warning: 'return' with no value, in function returning non-void BUILDSTDERR: else return; /* no spheres */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: sphere.c:205:1: note: declared here BUILDSTDERR: movsphere() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c:203:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:156:1: note: declared here BUILDSTDERR: dndstore() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c:225:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: itm[i].mem[itm[i].arg] = 1 ; BUILDSTDERR: ^ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:241:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: handsfull() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c:247:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: outofstock() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: store.c:253:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nogold() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: dnditem(i) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c: In function 'dnditem': BUILDSTDERR: store.c:273:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:266:1: note: declared here BUILDSTDERR: dnditem(i) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c:279:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:266:1: note: declared here BUILDSTDERR: dnditem(i) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c:284:27: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("%s",&potionname[itm[i].arg][1]); BUILDSTDERR: ^ BUILDSTDERR: store.c:288:27: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("%s",&scrollname[itm[i].arg][1]); BUILDSTDERR: ^ BUILDSTDERR: store.c:290:30: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: else lprintf("%s",objectname[itm[i].obj]); BUILDSTDERR: ^ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:305:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sch_hed() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: sphere.c: In function 'newsphere': BUILDSTDERR: sphere.c:127:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: sphere.c: In function 'rmsphere': BUILDSTDERR: sphere.c:162:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c:342:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: oschool() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c: In function 'oschool': BUILDSTDERR: store.c:368:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:342:1: note: declared here BUILDSTDERR: oschool() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:473:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: obank() BUILDSTDERR: ^~~~~ BUILDSTDERR: store.c:477:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: obank2() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:482:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: banktitle(str) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c: In function 'banktitle': BUILDSTDERR: store.c:506:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:482:1: note: declared here BUILDSTDERR: banktitle(str) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:520:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: ointerest() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c:540:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: obanksub() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c: In function 'obanksub': BUILDSTDERR: store.c:565:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: lprintf("%c) %s",i+'a',objectname[iven[i]]); BUILDSTDERR: ^ BUILDSTDERR: store.c:661:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:540:1: note: declared here BUILDSTDERR: obanksub() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:670:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: appraise(eye, order) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: store.c:706:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: otradhead() BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c:716:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: otradepost() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: store.c: In function 'otradepost': BUILDSTDERR: store.c:739:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:716:1: note: declared here BUILDSTDERR: otradepost() BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: store.c:757:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: if (!j) BUILDSTDERR: ^ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:813:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: cnsitm() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:821:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: olrs() BUILDSTDERR: ^~~~ BUILDSTDERR: store.c: In function 'olrs': BUILDSTDERR: store.c:841:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:821:1: note: declared here BUILDSTDERR: olrs() BUILDSTDERR: ^~~~ BUILDSTDERR: store.c:873:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:821:1: note: declared here BUILDSTDERR: olrs() BUILDSTDERR: ^~~~ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:891:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nomore() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:897:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nocash() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:911:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: pad_hd() BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:934:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: opad() BUILDSTDERR: ^~~~ BUILDSTDERR: store.c: In function 'opad': BUILDSTDERR: store.c:964:4: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: store.c:934:1: note: declared here BUILDSTDERR: opad() BUILDSTDERR: ^~~~ BUILDSTDERR: store.c: At top level: BUILDSTDERR: store.c:1054:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: snag(itm) BUILDSTDERR: ^~~~ BUILDSTDERR: store.c:1075:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: pick_char(foo) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: store.c: In function 'dnd_2hed': BUILDSTDERR: store.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'dnd_hed': BUILDSTDERR: store.c:154:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c tok.c BUILDSTDERR: store.c: In function 'handsfull': BUILDSTDERR: store.c:246:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'outofstock': BUILDSTDERR: store.c:252:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'nogold': BUILDSTDERR: store.c:258:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'sch_hed': BUILDSTDERR: store.c:340:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'obank': BUILDSTDERR: store.c:476:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'obank2': BUILDSTDERR: store.c:480:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'ointerest': BUILDSTDERR: store.c:535:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'appraise': BUILDSTDERR: store.c:701:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'otradhead': BUILDSTDERR: store.c:714:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'cnsitm': BUILDSTDERR: store.c:816:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'nomore': BUILDSTDERR: store.c:896:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'nocash': BUILDSTDERR: store.c:902:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'pad_hd': BUILDSTDERR: store.c:932:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: store.c: In function 'pick_char': BUILDSTDERR: store.c:1258:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } /* end pick_char */ BUILDSTDERR: ^ BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from tok.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: tok.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: yylex () BUILDSTDERR: ^~~~~ BUILDSTDERR: tok.c: In function 'yylex': BUILDSTDERR: tok.c:52:9: warning: implicit declaration of function 'wait'; did you mean 'quit'? [-Wimplicit-function-declaration] BUILDSTDERR: wait((int *)0); BUILDSTDERR: ^~~~ BUILDSTDERR: quit BUILDSTDERR: tok.c: At top level: BUILDSTDERR: tok.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: flushall() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: tok.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sethard (hard) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: tok.c: In function 'sethard': BUILDSTDERR: tok.c:165:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: if (k=c[HARDGAME]) BUILDSTDERR: ^ BUILDSTDERR: tok.c: At top level: BUILDSTDERR: tok.c:183:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: readopts () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: tok.c: In function 'readopts': BUILDSTDERR: tok.c:193:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: tok.c:183:1: note: declared here BUILDSTDERR: readopts () BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: tok.c:234:23: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: strcpy(usermonster[usermpoint],str); BUILDSTDERR: ^ BUILDSTDERR: In file included from header.h:28, BUILDSTDERR: from tok.c:2: BUILDSTDERR: tok.c:239:30: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: if (isalpha(j=usermonster[usermpoint][0])) { BUILDSTDERR: ^ BUILDSTDERR: tok.c:242:34: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: monster[k].name= &usermonster[usermpoint++][0]; BUILDSTDERR: ^ BUILDSTDERR: tok.c: In function 'yylex': BUILDSTDERR: tok.c:81:5: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: setuid(geteuid()); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: tok.c:82:5: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: setgid(getegid()); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: tok.c: In function 'flushall': BUILDSTDERR: tok.c:145:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tok.c: In function 'sethard': BUILDSTDERR: tok.c:178:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c nap.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from nap.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: nap.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: nap(x) BUILDSTDERR: ^~~ BUILDSTDERR: nap.c: In function 'nap': BUILDSTDERR: nap.c:13:3: warning: 'return' with no value, in function returning non-void BUILDSTDERR: return; /* eliminate chance for infinite loop */ BUILDSTDERR: ^~~~~~ BUILDSTDERR: nap.c:9:1: note: declared here BUILDSTDERR: nap(x) BUILDSTDERR: ^~~ BUILDSTDERR: nap.c:14:2: warning: implicit declaration of function 'lflush'; did you mean 'fflush'? [-Wimplicit-function-declaration] BUILDSTDERR: lflush(); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fflush BUILDSTDERR: nap.c:17:7: warning: implicit declaration of function 'napms'; did you mean 'nap'? [-Wimplicit-function-declaration] BUILDSTDERR: else napms(x); BUILDSTDERR: ^~~~~ BUILDSTDERR: nap BUILDSTDERR: nap.c: At top level: BUILDSTDERR: nap.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: napms(time) BUILDSTDERR: ^~~~~ BUILDSTDERR: nap.c: In function 'napms': BUILDSTDERR: nap.c:33:17: warning: 'return' with no value, in function returning non-void BUILDSTDERR: if (time <= 0) return; BUILDSTDERR: ^~~~~~ BUILDSTDERR: nap.c:26:1: note: declared here BUILDSTDERR: napms(time) BUILDSTDERR: ^~~~~ BUILDSTDERR: nap.c:42:2: warning: implicit declaration of function 'sigpause'; did you mean 'pause'? [-Wimplicit-function-declaration] BUILDSTDERR: sigpause(oldsig); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: pause gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c tty.c BUILDSTDERR: In file included from header.h:2, BUILDSTDERR: from tty.c:2: BUILDSTDERR: config.h:23:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef EUNICE /**/ BUILDSTDERR: BUILDSTDERR: config.h:24:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef VMS /**/ BUILDSTDERR: BUILDSTDERR: config.h:107:21: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef RANDOM /**/ BUILDSTDERR: BUILDSTDERR: config.h:113:27: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef DEF_COMPRESS /**/ BUILDSTDERR: BUILDSTDERR: config.h:145:22: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef BSDCOMPILE /**/ BUILDSTDERR: BUILDSTDERR: config.h:150:18: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /*#undef HPUX /**/ BUILDSTDERR: BUILDSTDERR: config.h:158:1: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* SYSERRLISTDEFINED BUILDSTDERR: BUILDSTDERR: tty.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: setctty() BUILDSTDERR: ^~~~~~~ BUILDSTDERR: tty.c:71:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: gettty() BUILDSTDERR: ^~~~~~ BUILDSTDERR: tty.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: settty() BUILDSTDERR: ^~~~~~ BUILDSTDERR: tty.c:101:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: setuptty() BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: tty.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: scbr () BUILDSTDERR: ^~~~ BUILDSTDERR: tty.c:136:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: sncbr () BUILDSTDERR: ^~~~~ BUILDSTDERR: tty.c:152:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: setupvt100 () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: tty.c:164:1: warning: return type defaults to 'int' [-Wimplicit-int] BUILDSTDERR: clearvt100 () BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: tty.c: In function 'setctty': BUILDSTDERR: tty.c:64:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'gettty': BUILDSTDERR: tty.c:88:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'settty': BUILDSTDERR: tty.c:99:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'setuptty': BUILDSTDERR: tty.c:114:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'scbr': BUILDSTDERR: tty.c:130:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'sncbr': BUILDSTDERR: tty.c:145:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'setupvt100': BUILDSTDERR: tty.c:157:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: tty.c: In function 'clearvt100': BUILDSTDERR: tty.c:168:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o Ularn action.o bill.o create.o data.o diag.o display.o fortune.o player.o help.o io.o main.o monster.o moreobj.o movem.o object.o regen.o savelev.o scores.o show.o signal.o sphere.o store.o tok.o nap.o tty.o -lcurses + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tuLVhE + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 + cd Ularn + rm -rf /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 if test ! -d /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn ; then mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn ; fi cp Umaps Ufortune Uhelp /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn chmod 644 /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn/Umaps /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn/Ufortune \ /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/ularn/Uhelp if test ! -d /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/bin ; then mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/bin ; fi cp Ularn /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64//var/games + touch /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64//var/games/Ularn-scoreboard + desktop-file-install --dir /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/applications /builddir/build/SOURCES/ularn.desktop /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/applications/ularn.desktop: error: (will be fatal in the future): value "ularn.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path + mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64//usr/share/icons/hicolor/32x32/apps/ + install -p -m 644 /builddir/build/SOURCES/ularn.png /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64//usr/share/icons/hicolor/32x32/apps/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.5p4-29.fc29 --unique-debug-suffix -1.5p4-29.fc29.riscv64 --unique-debug-src-base ularn-1.5p4-29.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/Ularn extracting debug info from /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/bin/Ularn /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 726 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: ularn-1.5p4-29.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.oPQFhd + umask 022 + cd /builddir/build/BUILD + cd Ularn + DOCDIR=/builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + cp -pr README /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + cp -pr README.spoilers /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + cp -pr GPL /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + cp -pr CHANGES.text /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + cp -pr Ularnopts /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64/usr/share/doc/ularn + exit 0 Provides: application() application(ularn.desktop) config(ularn) = 1.5p4-29.fc29 ularn = 1.5p4-29.fc29 ularn(riscv-64) = 1.5p4-29.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): coreutils Requires(postun): coreutils Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Processing files: ularn-debugsource-1.5p4-29.fc29.riscv64 Provides: ularn-debugsource = 1.5p4-29.fc29 ularn-debugsource(riscv-64) = 1.5p4-29.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: ularn-debuginfo-1.5p4-29.fc29.riscv64 Provides: debuginfo(build-id) = a3acbda045500029a0d200bed1a77e9e78a7d463 ularn-debuginfo = 1.5p4-29.fc29 ularn-debuginfo(riscv-64) = 1.5p4-29.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: ularn-debugsource(riscv-64) = 1.5p4-29.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 Wrote: /builddir/build/RPMS/ularn-1.5p4-29.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/ularn-debugsource-1.5p4-29.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/ularn-debuginfo-1.5p4-29.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.SFX6sE + umask 022 + cd /builddir/build/BUILD + cd Ularn + rm -rf /builddir/build/BUILDROOT/ularn-1.5p4-29.fc29.riscv64 + exit 0 Child return code was: 0