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