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