Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'], chrootPath='/var/lib/mock/f40-build-2331719-59102/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --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': 'C.UTF-8'} and shell False warning: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706313600 Wrote: /builddir/build/SRPMS/ularn-1.5p4-46.fc40.src.rpm RPM build warnings: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ularn.spec'], chrootPath='/var/lib/mock/f40-build-2331719-59102/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --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': 'C.UTF-8'} and shell False warning: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706313600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.aYQlDk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Ularn + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Ularn-1.5ishPL4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Ularn + rm -rf /builddir/build/BUILD/Ularn-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/Ularn-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e s#@bindir@#/usr/bin# -e s#@datadir@#/usr/share# -e s#@var@#/var# + chmod +x config.h.SH Patch #0 (ularn-build.patch): + echo 'Patch #0 (ularn-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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 -f -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 -f -p1 --fuzz=0 patching file config.h.SH patching file data.c patching file extern.h patching file header.h patching file main.c Patch #3 (ularn-drop-setgid.patch): + echo 'Patch #3 (ularn-drop-setgid.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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.e8qIvc + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + 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 Extracting config.h (with variable substitutions) +++ d_voidsig=define +++ libc=/usr/lib/libc.a +++ mansrc= +++ manext= +++ models=none +++ split= +++ small= +++ medium= +++ large= +++ huge= +++ ccflags= +++ ldflags= +++ cc=gcc +++ n=-n +++ c= +++ package=Ularn +++ spitshell=cat +++ shsharp=true +++ sharpbang='#!' +++ startsh='#!/bin/sh' +++ loclist=' expr sed echo cat rm tr grep ' +++ expr=/usr/bin/expr +++ sed=/bin/sed +++ echo=/bin/echo +++ cat=/bin/cat +++ rm=/bin/rm +++ mv= +++ cp= +++ tail= +++ tr=/usr/bin/tr +++ mkdir= +++ sort= +++ uniq= +++ grep=/bin/grep +++ trylist=' xmkmf imake compress uncompress test Mcc cpp ' +++ test=test +++ inews= +++ egrep= +++ more= +++ pg= +++ Mcc=Mcc +++ vi= +++ mailx= +++ mail= +++ cpp=/usr/bin/cpp +++ perl= +++ compress=/usr/bin/compress +++ uncompress=/usr/bin/uncompress +++ imake=/usr/bin/X11/imake +++ xmkmf=/usr/bin/X11/xmkmf +++ bindir=/usr/bin +++ d_drand48=define +++ d_havetlib=define +++ termlib=-lcurses +++ d_itimer=define +++ d_systime='' +++ d_random=undef +++ defcomp=undef +++ imaketmpl= +++ libdir=/usr/share/ularn +++ scoredir=/var/games +++ mycompress='/usr/bin/compress -c' +++ myuncompress='/usr/bin/uncompress -c' +++ CONFIG=true ++ test undef = define ++ echo 'Extracting config.h (with variable substitutions)' ++ 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 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon' + make -j64 gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c action.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c bill.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c create.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c data.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c diag.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c display.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c fortune.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c player.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c help.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c io.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c main.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c monster.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c moreobj.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c movem.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c object.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c regen.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c savelev.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c scores.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c show.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c signal.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c sphere.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c store.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c tok.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c nap.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fcommon -c tty.c In file included from header.h:2, from monster.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from bill.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from display.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from io.c:50: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from data.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from diag.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from fortune.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from movem.c:13: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | In file included from header.h:2, from action.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | 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:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | 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 /**/ | 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:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | In file included from header.h:2, from create.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | 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:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | 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:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | In file included from header.h:2, from main.c:3: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | 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:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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 /**/ | In file included from header.h:2, from nap.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ | config.h:145:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 /**/ | 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: 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 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:33: warning: "/*" within comment [-Wcomment] 145 | /*#undef BSDCOMPILE /**/ | config.h:150:33: warning: "/*" within comment [-Wcomment] 150 | /*#undef HPUX /**/ | config.h:158:1: warning: "/*" within comment [-Wcomment] 158 | /* SYSERRLISTDEFINED | nap.c:9:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 9 | nap(x) | ^~~ nap.c: In function ‘nap’: nap.c:13:17: 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) | ^~~ 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 () | ^~~~~ data.c:134:41: warning: "/*" within comment [-Wcomment] 134 | /*char mitem[MAXX][MAXY]; /* monster item array */ | action.c: In function ‘wield’: action.c:35:52: 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 () | ^~~~~ bill.c:10:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 10 | letter1() | ^~~~~~~ action.c:42:33: 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:61: 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 () | ^~~~~ 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’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ signal.c:7:9: note: in expansion of macro ‘cursor’ 7 | cursor(1,24); | ^~~~~~ regen.c:15:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 15 | regen() | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ signal.c:7:9: note: in expansion of macro ‘cursor’ 7 | cursor(1,24); | ^~~~~~ action.c:45:67: 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 () | ^~~~~ regen.c: In function ‘regen’: regen.c:24:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 24 | return; | ^~~~~~ regen.c:15:1: note: declared here 15 | regen() | ^~~~~ action.c:46:67: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 46 | else if (iven[i-'a']==OSCROLL) { ycwi(i); return; } | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:49:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 49 | return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ moreobj.c:22:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 22 | oaltar() | ^~~~~~ action.c:54:33: 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:74: warning: array subscript has type ‘char’ [-Wchar-subscripts] 58 | lprintf("\nYou wield %s", objectname[iven[i-'a']]); | ~~~~^~~~~~~ create.c:14:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 14 | makeplayer () | ^~~~~~~~~~ moreobj.c: In function ‘oaltar’: moreobj.c:43:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 43 | return; | ^~~~~~ moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ nap.c:14:9: warning: implicit declaration of function ‘lflush’; did you mean ‘fflush’? [-Wimplicit-function-declaration] 14 | lflush(); | ^~~~~~ | fflush header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ moreobj.c:46:33: note: in expansion of macro ‘cursor’ 46 | cursor(1,24); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ moreobj.c:46:33: note: in expansion of macro ‘cursor’ 46 | cursor(1,24); | ^~~~~~ object.c:16:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 16 | lookforobject() | ^~~~~~~~~~~~~ action.c:65:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 65 | return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ object.c: In function ‘lookforobject’: action.c: At top level: object.c:21:27: 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() | ^~~~~~~~~~~~~ action.c:74:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 74 | ydhi (x) | ^~~~ object.c:23:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] 23 | i=item[playerx][playery]; | ^ object.c:23:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] 23 | i=item[playerx][playery]; | ^ scores.c:112:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 112 | readboard() | ^~~~~~~~~ action.c: In function ‘ydhi’: object.c:24:19: 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() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:77:9: note: in expansion of macro ‘cursors’ 77 | cursors(); | ^~~~~~~ movem.c:29:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 29 | movemonst() | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:77:9: note: in expansion of macro ‘cursors’ 77 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ moreobj.c:48:33: note: in expansion of macro ‘cursor’ 48 | cursor(1,23); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ moreobj.c:48:33: note: in expansion of macro ‘cursor’ 48 | cursor(1,23); | ^~~~~~ io.c:64:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 64 | getcharacter () | ^~~~~~~~~~~~ movem.c: In function ‘movemonst’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:27:9: note: in expansion of macro ‘cursors’ 27 | cursors(); | ^~~~~~~ movem.c:34:17: 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() | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:27:9: note: in expansion of macro ‘cursors’ 27 | cursors(); | ^~~~~~~ io.c: In function ‘getcharacter’: action.c: At top level: io.c:68:41: warning: "/*" within comment [-Wcomment] 68 | /* byt=getchar(); /* get character from terminal */ | action.c:81:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 81 | ycwi (x) | ^~~~ create.c:52:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 52 | newcavelevel (x) | ^~~~~~~~~~~~ movem.c:36:43: 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() | ^~~~~~~~~ io.c: At top level: action.c: In function ‘ycwi’: create.c: In function ‘newcavelevel’: io.c:78:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 78 | newgame () | ^~~~~~~ create.c:57:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 57 | if (beenhere[level]) | ^ monster.c:91:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 91 | createmonster(mon) | ^~~~~~~~~~~~~ movem.c:40:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 40 | return; /* no action if monsters are held */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:84:9: note: in expansion of macro ‘cursors’ 84 | cursors(); | ^~~~~~~ movem.c:29:1: note: declared here 29 | movemonst() | ^~~~~~~~~ scores.c:145:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 145 | writeboard() | ^~~~~~~~~~ store.c:139:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 139 | dnd_2hed() | ^~~~~~~~ object.c:40:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] 40 | i = iarg[playerx][playery]; | ^ io.c: In function ‘newgame’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:84:9: note: in expansion of macro ‘cursors’ 84 | cursors(); | ^~~~~~~ io.c:84:9: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration] 84 | time(&initialtime); | ^~~~ object.c:40:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 40 | i = iarg[playerx][playery]; | ^ create.c:64:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 64 | return; | ^~~~~~ create.c:52:1: note: declared here 52 | newcavelevel (x) | ^~~~~~~~~~~~ io.c:52:1: note: ‘time’ is defined in header ‘’; did you forget to ‘#include ’? 51 | #include "extern.h" +++ |+#include 52 | header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:61:41: note: in expansion of macro ‘forget’ 61 | forget(); | ^~~~~~ action.c: At top level: store.c:146:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 146 | dnd_hed() | ^~~~~~~ action.c:91:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 91 | wear () | ^~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:61:41: note: in expansion of macro ‘forget’ 61 | forget(); | ^~~~~~ display.c:20:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 20 | bottomdo() | ^~~~~~~~ monster.c: In function ‘createmonster’: header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:61:41: note: in expansion of macro ‘forget’ 61 | forget(); | ^~~~~~ action.c: In function ‘wear’: monster.c:100:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 100 | return; | ^~~~~~ monster.c:91:1: note: declared here 91 | createmonster(mon) | ^~~~~~~~~~~~~ io.c: At top level: display.c: In function ‘bottomdo’: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:61:41: note: in expansion of macro ‘forget’ 61 | forget(); | ^~~~~~ action.c:96:51: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 96 | if ((i = whatitem("wear"))==ESC) return; | ^~~~~~ io.c:104:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 104 | lprintf(char *fmt, ...) | ^~~~~~~ display.c:25:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 25 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:86:25: note: in expansion of macro ‘cursors’ 86 | cursors(); | ^~~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ display.c:20:1: note: declared here 20 | bottomdo() | ^~~~~~~~ store.c: In function ‘dnd_hed’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:152:9: note: in expansion of macro ‘cursor’ 152 | cursor(50,18); | ^~~~~~ moreobj.c:64:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 64 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:86:25: note: in expansion of macro ‘cursors’ 86 | cursors(); | ^~~~~~~ moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:152:9: note: in expansion of macro ‘cursor’ 152 | cursor(50,18); | ^~~~~~ display.c: At top level: create.c: At top level: action.c:102:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 102 | return; | ^~~~~~ display.c:38:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 38 | bottomgold() { botsub(GOLD,72,19,"%-8d"); } | ^~~~~~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ create.c:90:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 90 | makemaze (lev) | ^~~~~~~~ io.c: In function ‘lprintf’: store.c: At top level: moreobj.c:68:71: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 68 | if (k < (c[GOLD]+k)/10 || k < rnd(50) && !wizard) { | ~~~~~~~~~~~~^~~~~~~~~~ store.c:156:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 156 | dndstore() | ^~~~~~~~ io.c:120:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 120 | return; | ^~~~~~ object.c:48:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] 48 | i = iarg[playerx][playery]; | ^ io.c:104:1: note: declared here 104 | lprintf(char *fmt, ...) | ^~~~~~~ create.c: In function ‘makemaze’: object.c:48:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 48 | i = iarg[playerx][playery]; | ^ create.c:99:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 99 | return; | ^~~~~~ action.c:114:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 114 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:92:25: note: in expansion of macro ‘cursors’ 92 | cursors(); | ^~~~~~~ scores.c:187:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 187 | makeboard() | ^~~~~~~~~ create.c:90:1: note: declared here 90 | makemaze (lev) | ^~~~~~~~ moreobj.c:72:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 72 | return; | ^~~~~~ movem.c:76:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] 76 | moved[lasthx][lasthy]=0; | ^ action.c:91:1: note: declared here 91 | wear () | ^~~~ moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ display.c: In function ‘bottomgold’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:92:25: note: in expansion of macro ‘cursors’ 92 | cursors(); | ^~~~~~~ movem.c:76:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 76 | moved[lasthx][lasthy]=0; | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:38:16: note: in expansion of macro ‘botsub’ 38 | bottomgold() { botsub(GOLD,72,19,"%-8d"); } | ^~~~~~ object.c:55:36: 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() | ^~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:38:16: note: in expansion of macro ‘botsub’ 38 | bottomgold() { botsub(GOLD,72,19,"%-8d"); } | ^~~~~~ player.c:39:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 39 | raiselevel () | ^~~~~~~~~~ action.c:118:88: warning: array subscript has type ‘char’ [-Wchar-subscripts] 118 | lprintf("\nYou put on your %s", objectname[iven[i-'a']]); | ~~~~^~~~~~~ nap.c:17:14: warning: implicit declaration of function ‘napms’; did you mean ‘nap’? [-Wimplicit-function-declaration] 17 | else napms(x); | ^~~~~ | nap create.c:114:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 114 | return; | ^~~~~~ scores.c:212:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 212 | hashewon() | ^~~~~~~~ create.c:90:1: note: declared here 90 | makemaze (lev) | ^~~~~~~~ object.c:71:36: 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() | ^~~~~~~~~~~~~ moreobj.c:90:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 90 | return; | ^~~~~~ nap.c: At top level: moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ nap.c:26:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 26 | napms(time) | ^~~~~ player.c:53:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 53 | loselevel () | ^~~~~~~~~ movem.c:96:18: 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 */ | ^ object.c:77:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 77 | if (nearbymonst()) return; | ^~~~~~ nap.c: In function ‘napms’: object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ nap.c:33:24: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 33 | if (time <= 0) return; | ^~~~~~ action.c:125:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 125 | return; | ^~~~~~ monster.c:121:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 121 | return; | ^~~~~~ movem.c:96:26: 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 */ | ^ nap.c:26:1: note: declared here 26 | napms(time) | ^~~~~ monster.c:91:1: note: declared here 91 | createmonster(mon) | ^~~~~~~~~~~~~ store.c: In function ‘dndstore’: action.c:91:1: note: declared here 91 | wear () | ^~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:169:17: note: in expansion of macro ‘cursors’ 169 | cursors(); | ^~~~~~~ player.c:67:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 67 | raiseexperience (x) | ^~~~~~~~~~~~~~~ movem.c:98:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 98 | if (moved[lasthx][lasthy]==0) /* if it has not already been moved */ | ^ monster.c: At top level: bill.c:37:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 37 | letter2 () | ^~~~~~~ object.c:88:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 88 | if (nearbymonst()) return; | ^~~~~~ action.c:130:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 130 | return; | ^~~~~~ display.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:169:17: note: in expansion of macro ‘cursors’ 169 | cursors(); | ^~~~~~~ monster.c:136:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 136 | cgood(x, y, itm, monst) | ^~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ movem.c:98:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 98 | if (moved[lasthx][lasthy]==0) /* if it has not already been moved */ | ^ display.c:41:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^~~~~~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ scores.c: In function ‘paytaxes’: header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:102:33: note: in expansion of macro ‘forget’ 102 | forget(); /*remember to destroy the altar*/ | ^~~~~~ scores.c:256:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 256 | if (winr[i].score > 0) | ^~ display.c: In function ‘bot_spellx’: action.c:135:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 135 | return; | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:102:33: note: in expansion of macro ‘forget’ 102 | forget(); /*remember to destroy the altar*/ | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ scores.c:258:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 258 | if (x < amt) | ^~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:41:16: note: in expansion of macro ‘botsub’ 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^~~~~~ store.c:178:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 178 | return; | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:102:33: note: in expansion of macro ‘forget’ 102 | forget(); /*remember to destroy the altar*/ | ^~~~~~ store.c:156:1: note: declared here 156 | dndstore() | ^~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:41:16: note: in expansion of macro ‘botsub’ 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^~~~~~ movem.c: At top level: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ moreobj.c:102:33: note: in expansion of macro ‘forget’ 102 | forget(); /*remember to destroy the altar*/ | ^~~~~~ movem.c:118:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 118 | movemt(i,j) | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:182:17: note: in expansion of macro ‘cursor’ 182 | cursor(59,18); | ^~~~~~ scores.c: At top level: bill.c:58:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 58 | letter3 () | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:182:17: note: in expansion of macro ‘cursor’ 182 | cursor(59,18); | ^~~~~~ scores.c:275:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 275 | winshou() | ^~~~~~~ savelev.c:37:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 37 | savelevel() | ^~~~~~~~~ display.c: At top level: moreobj.c:105:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 105 | return; | ^~~~~~ moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ display.c:43:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 43 | bot_linex() | ^~~~~~~~~ monster.c:159:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ savelev.c: In function ‘savelevel’: savelev.c:39:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 39 | Saved_Level *storage = saved_levels[level]; | ^ action.c:146:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 146 | return; | ^~~~~~ monster.c: In function ‘createitem’: action.c:91:1: note: declared here 91 | wear () | ^~~~ display.c: In function ‘bot_linex’: monster.c:165:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 165 | return; /* no such object */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:110:33: note: in expansion of macro ‘cursors’ 110 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:137:25: note: in expansion of macro ‘cursors’ 137 | cursors(); | ^~~~~~~ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ action.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:49:17: note: in expansion of macro ‘cursor’ 49 | cursor(1,18); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:49:17: note: in expansion of macro ‘cursor’ 49 | cursor(1,18); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:110:33: note: in expansion of macro ‘cursors’ 110 | cursors(); | ^~~~~~~ action.c:157:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 157 | dropobj () | ^~~~~~~ moreobj.c:116:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 116 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:137:25: note: in expansion of macro ‘cursors’ 137 | cursors(); | ^~~~~~~ moreobj.c:22:1: note: declared here 22 | oaltar() | ^~~~~~ bill.c:76:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 76 | letter4 () | ^~~~~~~ action.c: In function ‘dropobj’: savelev.c:46:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 46 | level_sums[level] = sum((unsigned char *)storage, sizeof(Saved_Level)); | ^ player.c: In function ‘raiseexperience’: action.c:163:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] 163 | p = &item[playerx][playery]; | ^ savelev.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:83:17: note: in expansion of macro ‘cursors’ 83 | cursors(); | ^~~~~~~ moreobj.c: At top level: store.c:203:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 203 | return; | ^~~~~~ create.c: At top level: action.c:163:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 163 | p = &item[playerx][playery]; | ^ store.c:156:1: note: declared here 156 | dndstore() | ^~~~~~~~ savelev.c:53:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 53 | getlevel() | ^~~~~~~~ moreobj.c:124:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 124 | ohear() | ^~~~~ diag.c:64:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 64 | diag() | ^~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:83:17: note: in expansion of macro ‘cursors’ 83 | cursors(); | ^~~~~~~ savelev.c: In function ‘getlevel’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:114:41: note: in expansion of macro ‘cursors’ 114 | cursors(); | ^~~~~~~ scores.c:324:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 324 | shou(x) | ^~~~ create.c:163:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 163 | eat (xx,yy) | ^~~ monster.c:178:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 178 | return; | ^~~~~~ savelev.c:57:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 57 | Saved_Level *storage = saved_levels[level]; | ^ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ action.c:166:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 166 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:114:41: note: in expansion of macro ‘cursors’ 114 | cursors(); | ^~~~~~~ diag.c: In function ‘diag’: action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ diag.c:69:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 69 | return; | ^~~~~~ bill.c:95:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 95 | letter5 () | ^~~~~~~ diag.c:64:1: note: declared here 64 | diag() | ^~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:62:17: note: in expansion of macro ‘cursor’ 62 | cursor(1,19); | ^~~~~~ moreobj.c:139:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 139 | othrone(arg) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:151:33: note: in expansion of macro ‘cursors’ 151 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:62:17: note: in expansion of macro ‘cursor’ 62 | cursor(1,19); | ^~~~~~ monster.c:186:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 186 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:151:33: note: in expansion of macro ‘cursors’ 151 | cursors(); | ^~~~~~~ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ action.c:175:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 175 | return; | ^~~~~~ object.c:124:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 124 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ store.c:225:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] 225 | itm[i].mem[itm[i].arg] = 1 ; | ~~~~~~^~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ moreobj.c: In function ‘othrone’: moreobj.c:154:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 154 | item[playerx][playery]=ODEADTHRONE; | ^ action.c:180:72: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 180 | if ((amt=readnum((long)c[GOLD])) <= 0) return; | ^~~~~~ player.c: At top level: savelev.c:65:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 65 | if (level_sums[level] > 0) { | ^ moreobj.c:154:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 154 | item[playerx][playery]=ODEADTHRONE; | ^ bill.c:116:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 116 | letter6 () | ^~~~~~~ io.c:163:48: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 163 | while (*outb++ = *tmpb++); | ^ player.c:135:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 135 | loseexperience (x) | ^~~~~~~~~~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ moreobj.c:155:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 155 | know[playerx][playery]=0; | ^ savelev.c:67:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 67 | != level_sums[level]) { | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:162:41: note: in expansion of macro ‘cursors’ 162 | cursors(); | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:136:49: note: in expansion of macro ‘forget’ 136 | forget(); | ^~~~~~ moreobj.c:155:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 155 | know[playerx][playery]=0; | ^ action.c:183:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 183 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:162:41: note: in expansion of macro ‘cursors’ 162 | cursors(); | ^~~~~~~ savelev.c:70:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] 70 | i, level, level_sums[level]); | ^ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:136:49: note: in expansion of macro ‘forget’ 136 | forget(); | ^~~~~~ moreobj.c:159:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 159 | item[playerx][playery]=OTHRONE2; | ^ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:136:49: note: in expansion of macro ‘forget’ 136 | forget(); | ^~~~~~ savelev.c:77:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 77 | level_sums[level] = sum((unsigned char *)storage, | ^ movem.c: In function ‘movemt’: moreobj.c:159:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 159 | item[playerx][playery]=OTHRONE2; | ^ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:136:49: note: in expansion of macro ‘forget’ 136 | forget(); | ^~~~~~ movem.c:133:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 133 | return; | ^~~~~~ savelev.c: At top level: moreobj.c:160:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 160 | know[playerx][playery]=0; | ^ movem.c:118:1: note: declared here 118 | movemt(i,j) | ^~~~~~ savelev.c:86:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 86 | savegame(fname) | ^~~~~~~~ player.c: In function ‘loseexperience’: scores.c:397:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 397 | showscores() | ^~~~~~~~~~ bill.c:146:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 146 | mailbill () | ^~~~~~~~ object.c:138:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 138 | return; | ^~~~~~ moreobj.c:160:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 160 | know[playerx][playery]=0; | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:170:25: note: in expansion of macro ‘cursors’ 170 | cursors(); | ^~~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ scores.c: In function ‘showscores’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:153:17: note: in expansion of macro ‘cursors’ 153 | cursors(); | ^~~~~~~ monster.c:193:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 193 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:170:25: note: in expansion of macro ‘cursors’ 170 | cursors(); | ^~~~~~~ create.c:228:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 228 | cannedlevel (lev) | ^~~~~~~~~~~ action.c:215:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] 215 | iarg[playerx][playery]=i; | ^ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ moreobj.c:163:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 163 | return; | ^~~~~~ scores.c:402:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 402 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:153:17: note: in expansion of macro ‘cursors’ 153 | cursors(); | ^~~~~~~ nap.c:42:9: warning: implicit declaration of function ‘sigpause’; did you mean ‘pause’? [-Wimplicit-function-declaration] 42 | sigpause(oldsig); | ^~~~~~~~ | pause header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:142:33: note: in expansion of macro ‘forget’ 142 | forget(); | ^~~~~~ moreobj.c:139:1: note: declared here 139 | othrone(arg) | ^~~~~~~ action.c:215:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] 215 | iarg[playerx][playery]=i; | ^ scores.c:397:1: note: declared here 397 | showscores() | ^~~~~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:142:33: note: in expansion of macro ‘forget’ 142 | forget(); | ^~~~~~ action.c:217:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 217 | know[playerx][playery]=0; | ^ regen.c:178:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 178 | if (item[playerx][playery]==0)/* if nothing there */ | ^ monster.c:200:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 200 | return; | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:142:33: note: in expansion of macro ‘forget’ 142 | forget(); | ^~~~~~ player.c: At top level: monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ player.c:170:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 170 | losehp (x) | ^~~~~~ action.c:217:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 217 | know[playerx][playery]=0; | ^ regen.c:178:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 178 | if (item[playerx][playery]==0)/* if nothing there */ | ^ scores.c: At top level: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:142:33: note: in expansion of macro ‘forget’ 142 | forget(); | ^~~~~~ moreobj.c:170:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 170 | item[playerx][playery]=OTHRONE2; | ^ scores.c:420:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 420 | showallscores() | ^~~~~~~~~~~~~ action.c:219:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 219 | return; | ^~~~~~ store.c: At top level: scores.c: In function ‘showallscores’: moreobj.c:170:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 170 | item[playerx][playery]=OTHRONE2; | ^ object.c:144:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 144 | return; | ^~~~~~ monster.c:207:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 207 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ store.c:241:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 241 | handsfull() | ^~~~~~~~~ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ moreobj.c:171:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 171 | know[playerx][playery]=0; | ^ scores.c:426:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 426 | return; | ^~~~~~ action.c:222:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 222 | return; | ^~~~~~ io.c:171:48: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 171 | while (*outb++ = *tmpb++) | ^ player.c:183:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 183 | losemhp (x) | ^~~~~~~ monster.c:210:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 210 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:182:25: note: in expansion of macro ‘cursors’ 182 | cursors(); | ^~~~~~~ moreobj.c:171:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 171 | know[playerx][playery]=0; | ^ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ store.c:247:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 247 | outofstock() | ^~~~~~~~~~ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ movem.c:166:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 166 | return; | ^~~~~~ scores.c:420:1: note: declared here 420 | showallscores() | ^~~~~~~~~~~~~ action.c: At top level: movem.c:118:1: note: declared here 118 | movemt(i,j) | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ regen.c:182:25: note: in expansion of macro ‘cursors’ 182 | cursors(); | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:149:33: note: in expansion of macro ‘forget’ 149 | forget(); | ^~~~~~ action.c:230:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 230 | readscr () | ^~~~~~~ store.c:253:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 253 | nogold() | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:149:33: note: in expansion of macro ‘forget’ 149 | forget(); | ^~~~~~ monster.c:219:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 219 | return; | ^~~~~~ action.c: In function ‘readscr’: player.c:203:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 203 | raisehp (x) | ^~~~~~~ moreobj.c:179:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 179 | return; | ^~~~~~ monster.c:159:1: note: declared here 159 | createitem(x, y, it, arg) | ^~~~~~~~~~ moreobj.c:139:1: note: declared here 139 | othrone(arg) | ^~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:149:33: note: in expansion of macro ‘forget’ 149 | forget(); | ^~~~~~ action.c:235:51: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 235 | if ((i = whatitem("read"))==ESC) return; | ^~~~~~ store.c:266:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 266 | dnditem(i) | ^~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:149:33: note: in expansion of macro ‘forget’ 149 | forget(); | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ scores.c: At top level: io.c: At top level: tty.c:58:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 58 | setctty() | ^~~~~~~ moreobj.c:184:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 184 | return; | ^~~~~~ store.c: In function ‘dnditem’: player.c:210:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 210 | raisemhp (x) | ^~~~~~~~ moreobj.c:139:1: note: declared here 139 | othrone(arg) | ^~~~~~~ monster.c: At top level: store.c:273:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 273 | return; | ^~~~~~ show.c:12:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 12 | showstr() | ^~~~~~~ store.c:266:1: note: declared here 266 | dnditem(i) | ^~~~~~~ moreobj.c: At top level: monster.c:233:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 233 | cast() | ^~~~ tty.c:71:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 71 | gettty() | ^~~~~~ moreobj.c:189:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 189 | odeadthrone() | ^~~~~~~~~~~ help.c:17:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 17 | help () | ^~~~ player.c:226:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 226 | raisespells (x) | ^~~~~~~~~~~ show.c:23:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 23 | qshowstr() | ^~~~~~~~ monster.c: In function ‘cast’: help.c: In function ‘help’: help.c:23:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 23 | return; /* open the help file and get # pages */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:276:9: note: in expansion of macro ‘cursor’ 276 | cursor(x, y); | ^~~~~~ help.c:17:1: note: declared here 17 | help () | ^~~~ player.c:233:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 233 | raisemspells (x) | ^~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:237:9: note: in expansion of macro ‘cursors’ 237 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:276:9: note: in expansion of macro ‘cursor’ 276 | cursor(x, y); | ^~~~~~ tty.c:91:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 91 | settty() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:237:9: note: in expansion of macro ‘cursors’ 237 | cursors(); | ^~~~~~~ player.c:249:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 249 | losespells (x) | ^~~~~~~~~~ moreobj.c: In function ‘odeadthrone’: moreobj.c:207:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 207 | return; | ^~~~~~ store.c:279:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 279 | return; | ^~~~~~ store.c:266:1: note: declared here 266 | dnditem(i) | ^~~~~~~ moreobj.c:189:1: note: declared here 189 | odeadthrone() | ^~~~~~~~~~~ player.c:256:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 256 | losemspells (x) | ^~~~~~~~~~~ monster.c:240:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 240 | return; | ^~~~~~ monster.c:233:1: note: declared here 233 | cast() | ^~~~ moreobj.c:212:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 212 | return; | ^~~~~~ moreobj.c:189:1: note: declared here 189 | odeadthrone() | ^~~~~~~~~~~ store.c:284:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] 284 | lprintf("%s",&potionname[itm[i].arg][1]); | ~~~~~~^~~~ player.c:271:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 271 | positionplayer () | ^~~~~~~~~~~~~~ moreobj.c: At top level: tty.c:101:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 101 | setuptty() | ^~~~~~~~ player.c: In function ‘positionplayer’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:246:25: note: in expansion of macro ‘cursors’ 246 | cursors(); | ^~~~~~~ moreobj.c:223:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 223 | ochest() | ^~~~~~ store.c:288:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] 288 | lprintf("%s",&scrollname[itm[i].arg][1]); | ~~~~~~^~~~ player.c:276:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ help.c:46:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 46 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:246:25: note: in expansion of macro ‘cursors’ 246 | cursors(); | ^~~~~~~ help.c:17:1: note: declared here 17 | help () | ^~~~ io.c:229:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 229 | lprint (x) | ^~~~~~ store.c:290:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 290 | else lprintf("%s",objectname[itm[i].obj]); | ~~~~~~^~~~ tty.c:121:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 121 | scbr () | ^~~~ player.c:276:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ create.c:310:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 310 | treasureroom(lv) | ^~~~~~~~~~~~ help.c: At top level: scores.c:453:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 453 | sortboard() | ^~~~~~~~~ help.c:58:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 58 | welcome () | ^~~~~~~ signal.c:14:1: warning: control reaches end of non-void function [-Wreturn-type] 14 | } | ^ action.c:243:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 243 | return; | ^~~~~~ player.c:276:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ help.c: In function ‘welcome’: tty.c:136:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 136 | sncbr () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:291:9: note: in expansion of macro ‘cursor’ 291 | cursor( j+31,k ); | ^~~~~~ help.c:64:17: 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 () | ^~~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ player.c:276:57: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:291:9: note: in expansion of macro ‘cursor’ 291 | cursor( j+31,k ); | ^~~~~~ io.c:250:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 250 | lwrite (buf, len) | ^~~~~~ tty.c:152:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 152 | setupvt100 () | ^~~~~~~~~~ help.c: At top level: action.c:248:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 248 | return; | ^~~~~~ help.c:77:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 77 | retcont () | ^~~~~~~ tty.c:164:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 164 | clearvt100 () | ^~~~~~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ help.c: In function ‘retcont’: player.c: At top level: main.c:43:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 43 | main (argc, argv) | ^~~~ store.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ help.c:79:9: note: in expansion of macro ‘cursor’ 79 | cursor(1,24); | ^~~~~~ store.c:305:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 305 | sch_hed() | ^~~~~~~ player.c:291:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 291 | recalc () | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ help.c:79:9: note: in expansion of macro ‘cursor’ 79 | cursor(1,24); | ^~~~~~ action.c:252:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 252 | return; | ^~~~~~ create.c:332:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 332 | troom(lv,xsize,ysize,tx,ty,glyph) | ^~~~~ scores.c:494:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ moreobj.c: In function ‘ochest’: scores.c: In function ‘newscore’: show.c:49:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 49 | t_setup (count) | ^~~~~~~ moreobj.c:263:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 263 | item[playerx][playery]=know[playerx][playery]=0; | ^ action.c:254:70: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 254 | lprcat("\nThere's nothing on it to read."); return; | ^~~~~~ help.c: At top level: help.c:91:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 91 | openhelp () | ^~~~~~~~ scores.c:503:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 503 | return; /* do the scoreboard */ | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ moreobj.c:263:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 263 | item[playerx][playery]=know[playerx][playery]=0; | ^ show.c: In function ‘t_setup’: action.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ show.c:54:17: note: in expansion of macro ‘cursor’ 54 | cursor(1,1); | ^~~~~~ scores.c:494:1: note: declared here 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ moreobj.c:263:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] 263 | item[playerx][playery]=know[playerx][playery]=0; | ^ action.c:263:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 263 | eatcookie () | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ show.c:54:17: note: in expansion of macro ‘cursor’ 54 | cursor(1,1); | ^~~~~~ moreobj.c:263:69: warning: array subscript has type ‘char’ [-Wchar-subscripts] 263 | item[playerx][playery]=know[playerx][playery]=0; | ^ action.c: In function ‘eatcookie’: show.c: At top level: show.c:65:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 65 | t_endup (count) | ^~~~~~~ action.c:270:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 270 | return; | ^~~~~~ io.c:338:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 338 | lrfill (adr, num) | ^~~~~~ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ show.c:79:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 79 | showwear() | ^~~~~~~~ moreobj.c:266:54: 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) | ^ diag.c:78:71: 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 tty.c: In function ‘setctty’: moreobj.c:266:63: 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) | ^ store.c: In function ‘sch_hed’: tty.c:64:1: warning: control reaches end of non-void function [-Wreturn-type] 64 | } | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:157:33: note: in expansion of macro ‘forget’ 157 | forget(); | ^~~~~~ display.c:68:32: 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 diag.c:78:94: 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 header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:338:9: note: in expansion of macro ‘cursor’ 338 | cursor(30,18); | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:157:33: note: in expansion of macro ‘forget’ 157 | forget(); | ^~~~~~ display.c:68:36: 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 action.c:284:21: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 284 | return; | ^~~~~~ tty.c: In function ‘gettty’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:338:9: note: in expansion of macro ‘cursor’ 338 | cursor(30,18); | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:157:33: note: in expansion of macro ‘forget’ 157 | forget(); | ^~~~~~ moreobj.c:268:73: warning: array subscript has type ‘char’ [-Wchar-subscripts] 268 | something(playerx, playery, iarg[playerx][playery]+2); | ^ show.c:129:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 129 | showwield() | ^~~~~~~~~ tty.c:88:1: warning: control reaches end of non-void function [-Wreturn-type] 88 | } | ^ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:157:33: note: in expansion of macro ‘forget’ 157 | forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:74:17: note: in expansion of macro ‘cursor’ 74 | cursor(31,19); | ^~~~~~ moreobj.c:268:82: warning: array subscript has type ‘char’ [-Wchar-subscripts] 268 | something(playerx, playery, iarg[playerx][playery]+2); | ^ store.c: At top level: tty.c: In function ‘settty’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:74:17: note: in expansion of macro ‘cursor’ 74 | cursor(31,19); | ^~~~~~ tty.c:99:1: warning: control reaches end of non-void function [-Wreturn-type] 99 | } | ^ store.c:342:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 342 | oschool() | ^~~~~~~ action.c:286:48: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 286 | if (iven[i-'a']==0) { ydhi(i); return; } | ^~~~~~ player.c:423:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 423 | quit () | ^~~~ object.c:160:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 160 | return; | ^~~~~~ store.c: In function ‘oschool’: action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ tty.c: In function ‘setuptty’: object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ create.c:391:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 391 | makeobject (j) | ^~~~~~~~~~ moreobj.c:271:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 271 | return; | ^~~~~~ tty.c:114:1: warning: control reaches end of non-void function [-Wreturn-type] 114 | } | ^ player.c: In function ‘quit’: moreobj.c:223:1: note: declared here 223 | ochest() | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:350:17: note: in expansion of macro ‘cursor’ 350 | cursor(57,18); | ^~~~~~ tty.c: In function ‘scbr’: object.c:163:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 163 | if (nearbymonst()) return; | ^~~~~~ tty.c:130:1: warning: control reaches end of non-void function [-Wreturn-type] 130 | } | ^ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ action.c:287:51: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 287 | lprcat("\nYou can't eat that!"); return; | ^~~~~~ create.c: In function ‘makeobject’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:82:17: note: in expansion of macro ‘cursor’ 82 | cursor(62,19); | ^~~~~~ show.c:187:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 187 | showread () | ^~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:350:17: note: in expansion of macro ‘cursor’ 350 | cursor(57,18); | ^~~~~~ movem.c:206:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 206 | screen[playerx][playery]=1; | ^ savelev.c:204:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 204 | restoregame(fname) | ^~~~~~~~~~~ movem.c:206:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] 206 | screen[playerx][playery]=1; | ^ savelev.c: In function ‘restoregame’: savelev.c:216:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 216 | if (fd = (mkstemp(tempfilename)) == -1) { | ^~ savelev.c:223:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 223 | return; | ^~~~~~ tty.c: In function ‘sncbr’: savelev.c:204:1: note: declared here 204 | restoregame(fname) | ^~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:427:9: note: in expansion of macro ‘cursors’ 427 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:82:17: note: in expansion of macro ‘cursor’ 82 | cursor(62,19); | ^~~~~~ tty.c:145:1: warning: control reaches end of non-void function [-Wreturn-type] 145 | } | ^ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ tty.c: In function ‘setupvt100’: action.c:271:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 271 | if (i != '.') | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:427:9: note: in expansion of macro ‘cursors’ 427 | cursors(); | ^~~~~~~ tty.c:157:1: warning: control reaches end of non-void function [-Wreturn-type] 157 | } | ^ action.c: At top level: bill.c: In function ‘mailbill’: tty.c: In function ‘clearvt100’: moreobj.c:275:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] 275 | if (take(OCHEST,iarg[playerx][playery])==0) | ^ tty.c:168:1: warning: control reaches end of non-void function [-Wreturn-type] 168 | } | ^ action.c:295:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 295 | quaff () | ^~~~~ savelev.c:235:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 235 | return; | ^~~~~~ create.c:405:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 405 | return; | ^~~~~~ bill.c:151:9: warning: implicit declaration of function ‘wait’ [-Wimplicit-function-declaration] 151 | wait((int *)0); | ^~~~ object.c:168:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 168 | if (nearbymonst()) return; | ^~~~~~ action.c: In function ‘quaff’: savelev.c:204:1: note: declared here 204 | restoregame(fname) | ^~~~~~~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ moreobj.c:275:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] 275 | if (take(OCHEST,iarg[playerx][playery])==0) | ^ create.c:391:1: note: declared here 391 | makeobject (j) | ^~~~~~~~~~ action.c:301:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 301 | return; | ^~~~~~ player.c:436:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 436 | return; | ^~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ moreobj.c:276:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | item[playerx][playery]=know[playerx][playery]=0; | ^ movem.c:234:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 234 | return; | ^~~~~~ player.c:423:1: note: declared here 423 | quit () | ^~~~ savelev.c:254:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 254 | return; | ^~~~~~ movem.c:118:1: note: declared here 118 | movemt(i,j) | ^~~~~~ object.c:193:36: 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() | ^~~~~~~~~~~~~ moreobj.c:276:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | item[playerx][playery]=know[playerx][playery]=0; | ^ savelev.c:204:1: note: declared here 204 | restoregame(fname) | ^~~~~~~~~~~ display.c:86:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 86 | lprintf("%2s", levelname[level]); | ^ moreobj.c:276:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | item[playerx][playery]=know[playerx][playery]=0; | ^ action.c:309:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 309 | return; | ^~~~~~ object.c:199:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 199 | if (nearbymonst()) return; | ^~~~~~ player.c:441:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 441 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ moreobj.c:276:69: warning: array subscript has type ‘char’ [-Wchar-subscripts] 276 | item[playerx][playery]=know[playerx][playery]=0; | ^ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:87:17: note: in expansion of macro ‘cursor’ 87 | cursor(64,19); | ^~~~~~ player.c:423:1: note: declared here 423 | quit () | ^~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:87:17: note: in expansion of macro ‘cursor’ 87 | cursor(64,19); | ^~~~~~ moreobj.c:277:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 277 | return; | ^~~~~~ savelev.c:274:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 274 | return; | ^~~~~~ object.c:210:32: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 210 | if (rnd(11)<6) return; | ^~~~~~ action.c:313:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 313 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ moreobj.c:223:1: note: declared here 223 | ochest() | ^~~~~~ savelev.c:204:1: note: declared here 204 | restoregame(fname) | ^~~~~~~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ object.c:211:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 211 | item[playerx][playery] = OTELEPORTER; | ^ moreobj.c:282:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 282 | return; | ^~~~~~ object.c:211:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 211 | item[playerx][playery] = OTELEPORTER; | ^ moreobj.c:223:1: note: declared here 223 | ochest() | ^~~~~~ action.c:316:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 316 | return; | ^~~~~~ display.c:96:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 96 | return; | ^~~~~~ display.c:43:1: note: declared here 43 | bot_linex() | ^~~~~~~~~ object.c:212:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 212 | know[playerx][playery] = 1; | ^ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ moreobj.c: At top level: player.c: At top level: action.c: At top level: object.c:212:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 212 | know[playerx][playery] = 1; | ^ moreobj.c:292:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 292 | ofountain() | ^~~~~~~~~ action.c:322:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 322 | qwhatitem () | ^~~~~~~~~ player.c:472:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 472 | more() | ^~~~ movem.c: At top level: moreobj.c: In function ‘ofountain’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:99:9: note: in expansion of macro ‘botsub’ 99 | botsub(SPELLS,8,18,"%3d"); | ^~~~~~ movem.c:297:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 297 | mmove(aa,bb,cc,dd) | ^~~~~ action.c: In function ‘qwhatitem’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:99:9: note: in expansion of macro ‘botsub’ 99 | botsub(SPELLS,8,18,"%3d"); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:296:9: note: in expansion of macro ‘cursors’ 296 | cursors(); | ^~~~~~~ object.c:222:36: 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() | ^~~~~~~~~~~~~ movem.c: In function ‘mmove’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:327:9: note: in expansion of macro ‘cursors’ 327 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:296:9: note: in expansion of macro ‘cursors’ 296 | cursors(); | ^~~~~~~ movem.c:308:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 308 | return; | ^~~~~~ player.c:487:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 487 | take (itm, arg) | ^~~~ bill.c: In function ‘letter1’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:327:9: note: in expansion of macro ‘cursors’ 327 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:101:17: note: in expansion of macro ‘botsub’ 101 | botsub(SPELLMAX,12,18,"%3d)"); | ^~~~~~ bill.c:14:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | write(1,"can't write 600 letter\n",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ movem.c:297:1: note: declared here 297 | mmove(aa,bb,cc,dd) | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:101:17: note: in expansion of macro ‘botsub’ 101 | botsub(SPELLMAX,12,18,"%3d)"); | ^~~~~~ object.c:234:36: 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() | ^~~~~~~~~~~~~ moreobj.c:308:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 308 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:104:17: note: in expansion of macro ‘botsub’ 104 | botsub(SPELLMAX,12,18,"%2d) "); | ^~~~~~ object.c:241:36: 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() | ^~~~~~~~~~~~~ moreobj.c:292:1: note: declared here 292 | ofountain() | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:104:17: note: in expansion of macro ‘botsub’ 104 | botsub(SPELLMAX,12,18,"%2d) "); | ^~~~~~ movem.c:335:25: 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) | ^~~~~ bill.c: In function ‘letter2’: bill.c:41:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 41 | write(1,"can't write 600 letter\n",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:106:9: note: in expansion of macro ‘botsub’ 106 | botsub(AC,21,18,"%-3d"); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:106:9: note: in expansion of macro ‘botsub’ 106 | botsub(AC,21,18,"%-3d"); | ^~~~~~ bill.c: In function ‘letter3’: object.c:262:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 262 | if (nearbymonst()) return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:319:25: note: in expansion of macro ‘cursors’ 319 | cursors(); | ^~~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ bill.c:62:17: 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: At top level: savelev.c:369:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] 369 | if (item[playerx][playery] == OCLOSEDDOOR) | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:107:9: note: in expansion of macro ‘botsub’ 107 | botsub(WCLASS,30,18,"%-3d"); | ^~~~~~ player.c: In function ‘take’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:319:25: note: in expansion of macro ‘cursors’ 319 | cursors(); | ^~~~~~~ action.c:350:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 350 | whatitem (str) | ^~~~~~~~ object.c:268:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 268 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:107:9: note: in expansion of macro ‘botsub’ 107 | botsub(WCLASS,30,18,"%-3d"); | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ savelev.c:369:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 369 | if (item[playerx][playery] == OCLOSEDDOOR) | ^ bill.c: In function ‘letter4’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ movem.c:355:33: note: in expansion of macro ‘cursors’ 355 | cursors(); | ^~~~~~~ action.c: In function ‘whatitem’: bill.c:80:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 80 | write(1,"can't write 600 letter\n",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:568:33: note: in expansion of macro ‘cursors’ 568 | cursors(); | ^~~~~~~ savelev.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ movem.c:355:33: note: in expansion of macro ‘cursors’ 355 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:108:9: note: in expansion of macro ‘botsub’ 108 | botsub(EXPERIENCE,49,18,"%-9d"); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:357:9: note: in expansion of macro ‘cursors’ 357 | cursors(); | ^~~~~~~ savelev.c:376:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 376 | greedy() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:108:9: note: in expansion of macro ‘botsub’ 108 | botsub(EXPERIENCE,49,18,"%-9d"); | ^~~~~~ bill.c: In function ‘letter5’: savelev.c: In function ‘greedy’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:568:33: note: in expansion of macro ‘cursors’ 568 | cursors(); | ^~~~~~~ bill.c:99:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 99 | write(1,"can't write 600 letter\n",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:357:9: note: in expansion of macro ‘cursors’ 357 | cursors(); | ^~~~~~~ object.c:291:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 291 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ savelev.c:379:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 379 | return; | ^~~~~~ monster.c:252:17: warning: statement with no effect [-Wunused-value] 252 | lflush; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:111:17: note: in expansion of macro ‘cursor’ 111 | cursor(59,18); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:111:17: note: in expansion of macro ‘cursor’ 111 | cursor(59,18); | ^~~~~~ moreobj.c:336:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 336 | item[playerx][playery]=ODEADFOUNTAIN; | ^ bill.c: In function ‘letter6’: savelev.c:376:1: note: declared here 376 | greedy() | ^~~~~~ player.c: At top level: bill.c:120:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 120 | write(1,"can't write 600 letter\n",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ moreobj.c:336:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 336 | item[playerx][playery]=ODEADFOUNTAIN; | ^ monster.c:256:17: warning: statement with no effect [-Wunused-value] 256 | lflush; | ^~~~~~ player.c:583:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 583 | drop_object (k) | ^~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:115:17: note: in expansion of macro ‘botsub’ 115 | botsub(LEVEL,40,18,"%3d"); | ^~~~~~ moreobj.c:337:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 337 | know[playerx][playery]=0; | ^ object.c:306:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 306 | switch(iarg[playerx][playery]) { | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:115:17: note: in expansion of macro ‘botsub’ 115 | botsub(LEVEL,40,18,"%3d"); | ^~~~~~ monster.c:260:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 260 | return; | ^~~~~~ bill.c: In function ‘mailbill’: player.c: In function ‘drop_object’: movem.c:402:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 402 | mitem[cc][dd].it[n].item = item[cc][dd]; | ^ monster.c:233:1: note: declared here 233 | cast() | ^~~~ savelev.c:388:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 388 | return; | ^~~~~~ object.c:306:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] 306 | switch(iarg[playerx][playery]) { | ^ savelev.c:376:1: note: declared here 376 | greedy() | ^~~~~~ savelev.c: At top level: io.c:436:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 436 | lcreat(str) | ^~~~~~ show.c:218:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 218 | showeat () | ^~~~~~~ main.c: In function ‘main’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:352:17: note: in expansion of macro ‘cursors’ 352 | cursors(); | ^~~~~~~ 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 diag.c:95:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] 95 | j, ivendef[iven[j]], iven[j] ); | ~~~~^~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:352:17: note: in expansion of macro ‘cursors’ 352 | cursors(); | ^~~~~~~ help.c: In function ‘retcont’: main.c:73:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 73 | if (pwe=getpwuid(geteuid())) | ^~~ help.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] 86 | } | ^ io.c:460:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 460 | lopen (str) | ^~~~~ show.c:247:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 247 | showquaff () | ^~~~~~~~~ diag.c:96:56: warning: array subscript has type ‘char’ [-Wchar-subscripts] 96 | fprintf (dfile, "\t%s", objectname[iven[j]] ); | ~~~~^~~ io.c:483:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 483 | lappend (str) | ^~~~~~~ store.c:368:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 368 | return; | ^~~~~~ store.c:342:1: note: declared here 342 | oschool() | ^~~~~~~ show.c:273:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 273 | show1 (idx, str2, known) | ^~~~~ scores.c:521:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 521 | return; | ^~~~~~ show.c: In function ‘show1’: io.c:506:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 506 | lrclose() | ^~~~~~~ show.c:281:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 281 | lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); | ~~~~^~~~~ scores.c:494:1: note: declared here 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ io.c:517:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 517 | lwclose () | ^~~~~~~ show.c:283:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 283 | lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); | ~~~~^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:386:41: note: in expansion of macro ‘cl_line’ 386 | cl_line(16,7); | ^~~~~~~ io.c:528:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 528 | lprcat (str) | ^~~~~~ tok.c:21:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 21 | yylex () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:386:41: note: in expansion of macro ‘cl_line’ 386 | cl_line(16,7); | ^~~~~~~ show.c:286:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] 286 | idx+'a',objectname[iven[idx]],str2[ivenarg[idx]]); | ~~~~^~~~~ scores.c:528:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 528 | return; | ^~~~~~ io.c: In function ‘lprcat’: scores.c:494:1: note: declared here 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ sphere.c:33:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 33 | newsphere (x, y, dir, life) | ^~~~~~~~~ diag.c:115:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 115 | levelname[level], level); | ^ show.c:290:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 290 | lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); | ~~~~^~~~~ moreobj.c:337:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 337 | know[playerx][playery]=0; | ^ io.c:536:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 536 | while (*str2++ = *str++) | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:386:41: note: in expansion of macro ‘cl_line’ 386 | cl_line(16,7); | ^~~~~~~ bill.c:160:33: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 160 | system(buf); | ^~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:386:41: note: in expansion of macro ‘cl_line’ 386 | cl_line(16,7); | ^~~~~~~ show.c:292:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 292 | lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); | ~~~~^~~~~ moreobj.c:339:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 339 | return; | ^~~~~~ scores.c:535:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 535 | return; | ^~~~~~ moreobj.c:292:1: note: declared here 292 | ofountain() | ^~~~~~~~~ bill.c:165:1: warning: control reaches end of non-void function [-Wreturn-type] 165 | } | ^ io.c: At top level: show.c:294:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 294 | lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); | ~~~~^~~~~ scores.c:494:1: note: declared here 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ moreobj.c:344:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 344 | return; | ^~~~~~ io.c:557:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 557 | init_term () | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:397:41: note: in expansion of macro ‘cl_line’ 397 | cl_line(16,8); | ^~~~~~~ show.c:297:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] 297 | idx+'a',objectname[iven[idx]],str2[ivenarg[idx]]); | ~~~~^~~~~ moreobj.c:292:1: note: declared here 292 | ofountain() | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:397:41: note: in expansion of macro ‘cl_line’ 397 | cl_line(16,8); | ^~~~~~~ scores.c:542:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 542 | return; | ^~~~~~ show.c: At top level: show.c:303:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 303 | show3 (index) | ^~~~~ scores.c:494:1: note: declared here 494 | newscore(score, whoo, whyded, winner) | ^~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:397:41: note: in expansion of macro ‘cl_line’ 397 | cl_line(16,8); | ^~~~~~~ scores.c: At top level: sphere.c: In function ‘newsphere’: show.c: In function ‘show3’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:397:41: note: in expansion of macro ‘cl_line’ 397 | cl_line(16,8); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:354:25: note: in expansion of macro ‘cursors’ 354 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:62:17: note: in expansion of macro ‘cursors’ 62 | cursors(); | ^~~~~~~ scores.c:558:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 558 | new1sub(score, i, whoo, taxes) | ^~~~~~~ movem.c:403:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 403 | mitem[cc][dd].it[n].itemarg = iarg[cc][dd]; | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:62:17: note: in expansion of macro ‘cursors’ 62 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:118:17: note: in expansion of macro ‘botsub’ 118 | botsub(LEVEL,40,18," %-2d"); | ^~~~~~ show.c:328:71: warning: array subscript has type ‘char’ [-Wchar-subscripts] 328 | lprintf("\n%c) %s",index+'a',objectname[iven[index]]); | ~~~~^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:591:9: note: in expansion of macro ‘cursors’ 591 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:354:25: note: in expansion of macro ‘cursors’ 354 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:118:17: note: in expansion of macro ‘botsub’ 118 | botsub(LEVEL,40,18," %-2d"); | ^~~~~~ savelev.c:396:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 396 | fsorry() | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:405:41: note: in expansion of macro ‘cl_line’ 405 | cl_line(16,9); | ^~~~~~~ savelev.c: In function ‘fsorry’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:73:17: note: in expansion of macro ‘cursors’ 73 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:405:41: note: in expansion of macro ‘cl_line’ 405 | cl_line(16,9); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:73:17: note: in expansion of macro ‘cursors’ 73 | cursors(); | ^~~~~~~ savelev.c:399:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 399 | return; | ^~~~~~ scores.c:590:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 590 | new2sub(score, i, whoo, whyded) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:123:9: note: in expansion of macro ‘botsub’ 123 | botsub(TMP,21,19,"%-2d"); | ^~~~~~ savelev.c:396:1: note: declared here 396 | fsorry() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:123:9: note: in expansion of macro ‘botsub’ 123 | botsub(TMP,21,19,"%-2d"); | ^~~~~~ diag.c: At top level: tok.c: In function ‘yylex’: diag.c:187:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 187 | diagdrawscreen() | ^~~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:84:17: note: in expansion of macro ‘cursors’ 84 | cursors(); | ^~~~~~~ monster.c: At top level: header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:337:33: note: in expansion of macro ‘forget’ 337 | forget(); | ^~~~~~ action.c: At top level: create.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:405:41: note: in expansion of macro ‘cl_line’ 405 | cl_line(16,9); | ^~~~~~~ moreobj.c:363:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 363 | return; | ^~~~~~ tok.c:52:33: warning: implicit declaration of function ‘wait’ [-Wimplicit-function-declaration] 52 | wait((int *)0); | ^~~~ action.c:476:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 476 | do_create() | ^~~~~~~~~ monster.c:284:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:337:33: note: in expansion of macro ‘forget’ 337 | forget(); | ^~~~~~ moreobj.c:292:1: note: declared here 292 | ofountain() | ^~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:405:41: note: in expansion of macro ‘cl_line’ 405 | cl_line(16,9); | ^~~~~~~ action.c: In function ‘do_create’: monster.c: In function ‘speldamage’: moreobj.c: At top level: header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:337:33: note: in expansion of macro ‘forget’ 337 | forget(); | ^~~~~~ monster.c:293:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 293 | return; /* no such spell */ | ^~~~~~ moreobj.c:371:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 371 | fntchange(how) | ^~~~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:481:9: note: in expansion of macro ‘cursors’ 481 | cursors(); | ^~~~~~~ savelev.c: At top level: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:337:33: note: in expansion of macro ‘forget’ 337 | forget(); | ^~~~~~ create.c:621:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 621 | fillmroom(n,what,arg) | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:416:41: note: in expansion of macro ‘cl_line’ 416 | cl_line(16,10); | ^~~~~~~ monster.c:297:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 297 | return; | ^~~~~~ savelev.c:411:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 411 | fcheat() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:481:9: note: in expansion of macro ‘cursors’ 481 | cursors(); | ^~~~~~~ object.c:338:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 338 | item[playerx][playery]=OOPENDOOR; | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ savelev.c: In function ‘fcheat’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:416:41: note: in expansion of macro ‘cl_line’ 416 | cl_line(16,10); | ^~~~~~~ object.c:338:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 338 | item[playerx][playery]=OOPENDOOR; | ^ create.c:630:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 630 | froom(n,itm,arg) | ^~~~~ savelev.c:414:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 414 | return; | ^~~~~~ monster.c:301:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 301 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:416:41: note: in expansion of macro ‘cl_line’ 416 | cl_line(16,10); | ^~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ action.c:487:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 487 | case ESC: return; | ^~~~~~ create.c:641:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 641 | fillroom (what,arg) | ^~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:416:41: note: in expansion of macro ‘cl_line’ 416 | cl_line(16,10); | ^~~~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ monster.c:306:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 306 | return; | ^~~~~~ object.c:358:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 358 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:490:17: note: in expansion of macro ‘cursors’ 490 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:423:41: note: in expansion of macro ‘cl_line’ 423 | cl_line(16,11); | ^~~~~~~ tok.c: At top level: savelev.c:411:1: note: declared here 411 | fcheat() | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:84:17: note: in expansion of macro ‘cursors’ 84 | cursors(); | ^~~~~~~ tok.c:124:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 124 | flushall() | ^~~~~~~~ diag.c: In function ‘diagdrawscreen’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:124:9: note: in expansion of macro ‘botsub’ 124 | botsub(INTELLIGENCE,28,19,"%-2d"); | ^~~~~~ monster.c:315:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 315 | return; | ^~~~~~ main.c: At top level: moreobj.c: In function ‘fntchange’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:423:41: note: in expansion of macro ‘cl_line’ 423 | cl_line(16,11); | ^~~~~~~ diag.c:194:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 194 | if (k = mitem[j][i].mon) | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:591:9: note: in expansion of macro ‘cursors’ 591 | cursors(); | ^~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ tok.c:151:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 151 | sethard (hard) | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:490:17: note: in expansion of macro ‘cursors’ 490 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:124:9: note: in expansion of macro ‘botsub’ 124 | botsub(INTELLIGENCE,28,19,"%-2d"); | ^~~~~~ main.c:307:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 307 | parse () | ^~~~~ object.c:377:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 377 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:440:9: note: in expansion of macro ‘cursors’ 440 | cursors(); | ^~~~~~~ create.c:668:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 668 | fillmonst (what) | ^~~~~~~~~ savelev.c:416:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 416 | return; | ^~~~~~ tok.c: In function ‘sethard’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:423:41: note: in expansion of macro ‘cl_line’ 423 | cl_line(16,11); | ^~~~~~~ diag.c:197:73: warning: array subscript has type ‘char’ [-Wchar-subscripts] 197 | fprintf(dfile, "%c", objnamelist[item[j][i]]); | ~~~~~~~^~~ main.c: In function ‘parse’: tok.c:165:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 165 | if (k=c[HARDGAME]) | ^ monster.c:322:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 322 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:125:9: note: in expansion of macro ‘botsub’ 125 | botsub(WISDOM,35,19,"%-2d"); | ^~~~~~ savelev.c:411:1: note: declared here 411 | fcheat() | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ main.c:319:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 319 | return; | ^~~~~~ player.c:596:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] 596 | if (item[playerx][playery] == OPIT) | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:423:41: note: in expansion of macro ‘cl_line’ 423 | cl_line(16,11); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:125:9: note: in expansion of macro ‘botsub’ 125 | botsub(WISDOM,35,19,"%-2d"); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ moreobj.c:440:9: note: in expansion of macro ‘cursors’ 440 | cursors(); | ^~~~~~~ movem.c:446:28: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 446 | if (c[BLINDCOUNT]) return; | ^~~~~~ action.c:497:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 497 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ movem.c:297:1: note: declared here 297 | mmove(aa,bb,cc,dd) | ^~~~~ moreobj.c: At top level: monster.c:328:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 328 | return; | ^~~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ main.c:321:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 321 | return; /* west */ | ^~~~~~ player.c:596:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 596 | if (item[playerx][playery] == OPIT) | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:126:9: note: in expansion of macro ‘botsub’ 126 | botsub(CONSTITUTION,42,19,"%-2d"); | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ create.c:693:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 693 | sethp (flg) | ^~~~~ moreobj.c:450:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 450 | fch(how,x) | ^~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ object.c:394:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 394 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:429:41: note: in expansion of macro ‘cl_line’ 429 | cl_line(16,12); | ^~~~~~~ tok.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:126:9: note: in expansion of macro ‘botsub’ 126 | botsub(CONSTITUTION,42,19,"%-2d"); | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:91:17: note: in expansion of macro ‘cursors’ 91 | cursors(); | ^~~~~~~ tok.c:183:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 183 | readopts () | ^~~~~~~~ savelev.c:425:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 425 | return; | ^~~~~~ player.c:598:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 598 | else if (item[playerx][playery]) { | ^ scores.c:663:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 663 | died(x) | ^~~~ io.c: In function ‘init_term’: show.c: In function ‘showstr’: show.c:21:1: warning: control reaches end of non-void function [-Wreturn-type] 21 | } | ^ scores.c: In function ‘died’: scores.c:693:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 693 | return; /* only case where died() returns */ | ^~~~~~ show.c: In function ‘qshowstr’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:91:17: note: in expansion of macro ‘cursors’ 91 | cursors(); | ^~~~~~~ show.c:44:1: warning: control reaches end of non-void function [-Wreturn-type] 44 | } | ^ main.c:323:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 323 | return; /* west */ | ^~~~~~ scores.c:663:1: note: declared here 663 | died(x) | ^~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ movem.c:452:25: note: in expansion of macro ‘cursors’ 452 | cursors(); | ^~~~~~~ monster.c:335:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 335 | return; | ^~~~~~ io.c:563:17: warning: implicit declaration of function ‘tgetent’; did you mean ‘getenv’? [-Wimplicit-function-declaration] 563 | switch (tgetent(termbuf, term = getenv("TERM"))) { | ^~~~~~~ | getenv main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:429:41: note: in expansion of macro ‘cl_line’ 429 | cl_line(16,12); | ^~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ savelev.c:411:1: note: declared here 411 | fcheat() | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:127:9: note: in expansion of macro ‘botsub’ 127 | botsub(DEXTERITY,49,19,"%-2d"); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ movem.c:452:25: note: in expansion of macro ‘cursors’ 452 | cursors(); | ^~~~~~~ main.c:325:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 325 | return; /* east */ | ^~~~~~ tok.c: In function ‘readopts’: show.c: In function ‘t_setup’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:102:17: note: in expansion of macro ‘cursors’ 102 | cursors(); | ^~~~~~~ create.c: In function ‘sethp’: show.c:60:1: warning: control reaches end of non-void function [-Wreturn-type] 60 | } | ^ savelev.c: At top level: monster.c:339:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 339 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:127:9: note: in expansion of macro ‘botsub’ 127 | botsub(DEXTERITY,49,19,"%-2d"); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:102:17: note: in expansion of macro ‘cursors’ 102 | cursors(); | ^~~~~~~ tok.c:193:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 193 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ tok.c:183:1: note: declared here 183 | readopts () | ^~~~~~~~ savelev.c:429:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 429 | init_cells() | ^~~~~~~~~~ player.c:598:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] 598 | else if (item[playerx][playery]) { | ^ show.c: In function ‘t_endup’: show.c:74:1: warning: control reaches end of non-void function [-Wreturn-type] 74 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:500:17: note: in expansion of macro ‘cursors’ 500 | cursors(); | ^~~~~~~ main.c:327:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 327 | return; /* east */ | ^~~~~~ object.c:413:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 413 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:429:41: note: in expansion of macro ‘cl_line’ 429 | cl_line(16,12); | ^~~~~~~ create.c:704:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 704 | return; | ^~~~~~ io.c:583:42: warning: "/*" within comment [-Wcomment] 583 | /* if (pc = tgetstr("pc", &capptr)) /* padding character */ | main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c:344:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 344 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:128:9: note: in expansion of macro ‘botsub’ 128 | botsub(CHARISMA,56,19,"%-2d"); | ^~~~~~ io.c:585:1: warning: "/*" within comment [-Wcomment] 585 | /* | monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:128:9: note: in expansion of macro ‘botsub’ 128 | botsub(CHARISMA,56,19,"%-2d"); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:429:41: note: in expansion of macro ‘cl_line’ 429 | cl_line(16,12); | ^~~~~~~ main.c:329:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 329 | return; /* south */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:500:17: note: in expansion of macro ‘cursors’ 500 | cursors(); | ^~~~~~~ savelev.c:441:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 441 | bwrite(fd, buf, num) | ^~~~~~ movem.c:476:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 476 | return; | ^~~~~~ create.c:693:1: note: declared here 693 | sethp (flg) | ^~~~~ sphere.c: At top level: main.c:307:1: note: declared here 307 | parse () | ^~~~~ sphere.c:136:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 136 | rmsphere (x, y) | ^~~~~~~~ movem.c:297:1: note: declared here 297 | mmove(aa,bb,cc,dd) | ^~~~~ show.c: In function ‘showwear’: show.c:124:1: warning: control reaches end of non-void function [-Wreturn-type] 124 | } | ^ main.c:331:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 331 | return; /* south */ | ^~~~~~ monster.c:356:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 356 | return; | ^~~~~~ object.c:429:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 429 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:135:17: note: in expansion of macro ‘cursor’ 135 | cursor(62,19); | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c:607:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 607 | item[playerx][playery] = itm; | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:435:41: note: in expansion of macro ‘cl_line’ 435 | cl_line(16,13); | ^~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ action.c:507:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 507 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:135:17: note: in expansion of macro ‘cursor’ 135 | cursor(62,19); | ^~~~~~ movem.c: At top level: scores.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:435:41: note: in expansion of macro ‘cl_line’ 435 | cl_line(16,13); | ^~~~~~~ main.c:333:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 333 | return; /* north */ | ^~~~~~ sphere.c:170:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 170 | sphboom (x, y) | ^~~~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ object.c:432:33: 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() | ^~~~~~~~~~~~~ moreobj.c: In function ‘ohear’: player.c:607:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 607 | item[playerx][playery] = itm; | ^ display.c:139:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 139 | lprintf("%2s", levelname[level]); | ^ moreobj.c:131:1: warning: control reaches end of non-void function [-Wreturn-type] 131 | } | ^ player.c:608:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 608 | iarg[playerx][playery] = ivenarg[k]; | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:141:9: note: in expansion of macro ‘botsub’ 141 | botsub(GOLD,72,19,"%-8d"); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:16:17: note: in expansion of macro ‘cursor’ 16 | cursor((x),(y)); \ | ^~~~~~ display.c:141:9: note: in expansion of macro ‘botsub’ 141 | botsub(GOLD,72,19,"%-8d"); | ^~~~~~ player.c:608:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 608 | iarg[playerx][playery] = ivenarg[k]; | ^ display.c: At top level: display.c:150:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 150 | bot_hpx() | ^~~~~~~ player.c:624:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 624 | know[playerx][playery] = 0; | ^ 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() | ^~~~~~~ player.c:624:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 624 | know[playerx][playery] = 0; | ^ player.c: At top level: display.c: In function ‘botside’: player.c:634:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 634 | enchantarmor (how) | ^~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:195:41: note: in expansion of macro ‘cursor’ 195 | cursor(70,i+1); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:195:41: note: in expansion of macro ‘cursor’ 195 | cursor(70,i+1); | ^~~~~~ player.c: In function ‘enchantarmor’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:201:41: note: in expansion of macro ‘cursor’ 201 | cursor(70,i+1); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:644:17: note: in expansion of macro ‘cursors’ 644 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:201:41: note: in expansion of macro ‘cursor’ 201 | cursor(70,i+1); | ^~~~~~ display.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:644:17: note: in expansion of macro ‘cursors’ 644 | cursors(); | ^~~~~~~ display.c:211:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 211 | bothp() | ^~~~~ display.c: In function ‘bothp’: display.c:216:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 216 | return; | ^~~~~~ display.c:211:1: note: declared here 211 | bothp() | ^~~~~ player.c:647:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 647 | return; | ^~~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ display.c:219:24: 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 movem.c:484:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 484 | teleportmonst (xx, yy, monst) | ^~~~~~~~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ show.c: In function ‘showwield’: diag.c:200:1: warning: control reaches end of non-void function [-Wreturn-type] 200 | } | ^ display.c:219:28: 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 show.c:182:9: warning: control reaches end of non-void function [-Wreturn-type] 182 | } | ^ scores.c:757:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 757 | diedsub(x) | ^~~~~~~ main.c:335:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 335 | return; /* north */ | ^~~~~~ player.c:664:76: warning: array subscript has type ‘char’ [-Wchar-subscripts] 664 | lprintf("\nYour %s glows briefly.", objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:220:9: note: in expansion of macro ‘cursor’ 220 | cursor(5, 19); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:220:9: note: in expansion of macro ‘cursor’ 220 | cursor(5, 19); | ^~~~~~ tok.c:234:51: warning: array subscript has type ‘char’ [-Wchar-subscripts] 234 | strcpy(usermonster[usermpoint],str); | ^ savelev.c: In function ‘bwrite’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:435:41: note: in expansion of macro ‘cl_line’ 435 | cl_line(16,13); | ^~~~~~~ main.c:337:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 337 | return; /* northeast */ | ^~~~~~ show.c: In function ‘showread’: create.c: At top level: player.c:665:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 665 | return; | ^~~~~~ object.c:433:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 433 | item[playerx][playery] = OTRAPARROW; | ^ movem.c: In function ‘teleportmonst’: main.c:307:1: note: declared here 307 | parse () | ^~~~~ show.c:213:9: warning: control reaches end of non-void function [-Wreturn-type] 213 | } | ^ scores.c: In function ‘diedsub’: display.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:435:41: note: in expansion of macro ‘cl_line’ 435 | cl_line(16,13); | ^~~~~~~ display.c:233:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 233 | draws(xmin,xmax,ymin,ymax) | ^~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ create.c:747:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 747 | checkgen () | ^~~~~~~~ movem.c:514:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 514 | return; | ^~~~~~ main.c:339:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 339 | return; /* northeast */ | ^~~~~~ object.c:433:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 433 | item[playerx][playery] = OTRAPARROW; | ^ create.c: In function ‘checkgen’: savelev.c:463:52: 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 main.c:307:1: note: declared here 307 | parse () | ^~~~~ show.c: In function ‘showeat’: movem.c:484:1: note: declared here 484 | teleportmonst (xx, yy, monst) | ^~~~~~~~~~~~~ display.c: In function ‘draws’: object.c:434:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 434 | know[playerx][playery] = 0; | ^ show.c:242:9: warning: control reaches end of non-void function [-Wreturn-type] 242 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:441:41: note: in expansion of macro ‘cl_line’ 441 | cl_line(16,14); | ^~~~~~~ main.c:341:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 341 | return; /* northwest */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ display.c:244:33: note: in expansion of macro ‘cl_line’ 244 | cl_line(1,i+1); | ^~~~~~~ scores.c:767:36: 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 header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:668:25: note: in expansion of macro ‘cursors’ 668 | cursors(); | ^~~~~~~ create.c:753:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 753 | if ((monster[mitem[x][y].mon].flags&FL_GENOCIDED) != 0) | ~~~~~~~~~~~^~~~ savelev.c: At top level: object.c:434:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 434 | know[playerx][playery] = 0; | ^ main.c:307:1: note: declared here 307 | parse () | ^~~~~ moreobj.c: In function ‘fntchange’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:441:41: note: in expansion of macro ‘cl_line’ 441 | cl_line(16,14); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ display.c:244:33: note: in expansion of macro ‘cl_line’ 244 | cl_line(1,i+1); | ^~~~~~~ savelev.c:472:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 472 | bread(fd, buf, num) | ^~~~~ moreobj.c:441:1: warning: control reaches end of non-void function [-Wreturn-type] 441 | } | ^ show.c: In function ‘showquaff’: main.c:343:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 343 | return; /* northwest */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:668:25: note: in expansion of macro ‘cursors’ 668 | cursors(); | ^~~~~~~ show.c:271:1: warning: control reaches end of non-void function [-Wreturn-type] 271 | } | ^ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:441:41: note: in expansion of macro ‘cl_line’ 441 | cl_line(16,14); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ display.c:244:33: note: in expansion of macro ‘cl_line’ 244 | cl_line(1,i+1); | ^~~~~~~ object.c:441:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 441 | return; | ^~~~~~ moreobj.c: In function ‘fch’: object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ display.c:244:33: note: in expansion of macro ‘cl_line’ 244 | cl_line(1,i+1); | ^~~~~~~ main.c:345:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 345 | return; /* southeast */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:441:41: note: in expansion of macro ‘cl_line’ 441 | cl_line(16,14); | ^~~~~~~ moreobj.c:466:1: warning: control reaches end of non-void function [-Wreturn-type] 466 | } | ^ player.c:670:56: warning: array subscript has type ‘char’ [-Wchar-subscripts] 670 | objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ scores.c:795:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] 795 | printf(" on %s\n", levelname[level]); | ^ savelev.c: In function ‘bread’: object.c:445:25: 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() | ^~~~~~~~~~~~~ scores.c: At top level: scores.c:802:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 802 | showscore3(index) | ^~~~~~~~~~ store.c: At top level: monster.c:369:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 369 | return; | ^~~~~~ sphere.c: In function ‘sphboom’: io.c:592:30: warning: implicit declaration of function ‘tgetflag’ [-Wimplicit-function-declaration] 592 | if (!tgetflag("bs")) { | ^~~~~~~~ main.c:347:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 347 | return; /* southeast */ | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ sphere.c:183:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 183 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:259:33: note: in expansion of macro ‘cursor’ 259 | cursor(70,i+1); | ^~~~~~ player.c:674:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 674 | return; | ^~~~~~ sphere.c:170:1: note: declared here 170 | sphboom (x, y) | ^~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:259:33: note: in expansion of macro ‘cursor’ 259 | cursor(70,i+1); | ^~~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ main.c:349:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 349 | return; /* southwest */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:185:33: note: in expansion of macro ‘cursors’ 185 | cursors(); | ^~~~~~~ display.c: At top level: monster.c:373:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 373 | return; | ^~~~~~ display.c:275:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 275 | drawscreen() | ^~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ sphere.c:185:33: note: in expansion of macro ‘cursors’ 185 | cursors(); | ^~~~~~~ player.c:678:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] 678 | lprintf("\nYour %s glows for a moment.", objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ main.c:351:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 351 | return; /* southwest */ | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ display.c: In function ‘drawscreen’: io.c:560:15: warning: unused variable ‘pc’ [-Wunused-variable] 560 | char *pc, *capptr = cap+10; | ^~ monster.c:377:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 377 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:286:17: note: in expansion of macro ‘cursor’ 286 | cursor(1,1); | ^~~~~~ io.c: At top level: player.c:638:13: warning: unused variable ‘tmp’ [-Wunused-variable] 638 | int tmp; | ^~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ main.c:355:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 355 | return; /* do nothing, stay here */ | ^~~~~~ sphere.c: At top level: player.c: At top level: main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:286:17: note: in expansion of macro ‘cursor’ 286 | cursor(1,1); | ^~~~~~ io.c:631:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 631 | cl_up (x,y) | ^~~~~ sphere.c:205:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 205 | movsphere() | ^~~~~~~~~ player.c:685:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 685 | enchweapon (how) | ^~~~~~~~~~ main.c:359:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 359 | return; | ^~~~~~ io.c: In function ‘cl_up’: monster.c:384:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 384 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c: In function ‘enchweapon’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ display.c:296:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 296 | if (k=mitem[j][i].mon) { | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ io.c:636:9: note: in expansion of macro ‘cursor’ 636 | cursor(1,1); | ^~~~~~ sphere.c: In function ‘movsphere’: main.c:363:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 363 | return; /* wield a weapon */ | ^~~~~~ monster.c:388:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 388 | return; | ^~~~~~ sphere.c:223:14: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 223 | else return; /* no spheres */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:691:17: note: in expansion of macro ‘cursors’ 691 | cursors(); | ^~~~~~~ sphere.c:205:1: note: declared here 205 | movsphere() | ^~~~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ display.c:300:59: warning: array subscript has type ‘char’ [-Wchar-subscripts] 300 | screen[j][i]=monstnamelist[mimicmonst]; | ^ show.c: In function ‘show1’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ io.c:636:9: note: in expansion of macro ‘cursor’ 636 | cursor(1,1); | ^~~~~~ object.c:446:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 446 | item[playerx][playery] = ODARTRAP; | ^ main.c:367:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 367 | return; /* wear armor */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:510:17: note: in expansion of macro ‘cursors’ 510 | cursors(); | ^~~~~~~ savelev.c:493:52: 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 main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:691:17: note: in expansion of macro ‘cursors’ 691 | cursors(); | ^~~~~~~ display.c:302:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] 302 | screen[j][i]=objnamelist[item[j][i]]; | ~~~~~~~^~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:510:17: note: in expansion of macro ‘cursors’ 510 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ io.c:641:9: note: in expansion of macro ‘cursor’ 641 | cursor(x,y); | ^~~~~~ display.c:305:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] 305 | screen[j][i] = objnamelist[item[j][i]]; | ~~~~~~~^~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:371:49: note: in expansion of macro ‘cursors’ 371 | cursors(); | ^~~~~~~ player.c:694:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 694 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:371:49: note: in expansion of macro ‘cursors’ 371 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ io.c:641:9: note: in expansion of macro ‘cursor’ 641 | cursor(x,y); | ^~~~~~ player.c:685:1: note: declared here 685 | enchweapon (how) | ^~~~~~~~~~ object.c:446:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 446 | item[playerx][playery] = ODARTRAP; | ^ io.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:327:33: note: in expansion of macro ‘cursor’ 327 | cursor(j+1, i+1); | ^~~~~~ io.c:647:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 647 | cl_dn (x,y) | ^~~~~ action.c:520:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 520 | return; | ^~~~~~ main.c:375:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 375 | return; /* to read a scroll */ | ^~~~~~ io.c: In function ‘cl_dn’: object.c:447:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 447 | know[playerx][playery] = 0; | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:327:33: note: in expansion of macro ‘cursor’ 327 | cursor(j+1, i+1); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ io.c:652:9: note: in expansion of macro ‘cursor’ 652 | cursor(1,y); | ^~~~~~ main.c:380:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 380 | return; /* quaff a potion */ | ^~~~~~ object.c:447:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 447 | know[playerx][playery] = 0; | ^ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:523:17: note: in expansion of macro ‘cursors’ 523 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ io.c:652:9: note: in expansion of macro ‘cursor’ 652 | cursor(1,y); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:711:33: note: in expansion of macro ‘cursors’ 711 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:339:41: note: in expansion of macro ‘cursor’ 339 | cursor(j+1,i+1); | ^~~~~~ show.c:301:1: warning: control reaches end of non-void function [-Wreturn-type] 301 | } | ^ main.c:385:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 385 | return; /* to drop an object */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:339:41: note: in expansion of macro ‘cursor’ 339 | cursor(j+1,i+1); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:711:33: note: in expansion of macro ‘cursors’ 711 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ action.c:523:17: note: in expansion of macro ‘cursors’ 523 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ io.c:660:17: note: in expansion of macro ‘cursor’ 660 | cursor(x,y); | ^~~~~~ main.c:389:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 389 | return; /* cast a spell */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ show.c: In function ‘show3’: show.c:344:1: warning: control reaches end of non-void function [-Wreturn-type] 344 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ io.c:660:17: note: in expansion of macro ‘cursor’ 660 | cursor(x,y); | ^~~~~~ main.c:393:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 393 | return; | ^~~~~~ player.c: At top level: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:356:49: note: in expansion of macro ‘cursor’ 356 | cursor(lastx=j+1,lasty=i+1); | ^~~~~~ action.c:531:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 531 | return; | ^~~~~~ savelev.c: In function ‘savelevel’: main.c:307:1: note: declared here 307 | parse () | ^~~~~ savelev.c:47:1: warning: control reaches end of non-void function [-Wreturn-type] 47 | } | ^ player.c:733:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 733 | pocketfull () | ^~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:356:49: note: in expansion of macro ‘cursor’ 356 | cursor(lastx=j+1,lasty=i+1); | ^~~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ main.c:398:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 398 | return; /* status */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ io.c:664:9: note: in expansion of macro ‘cursor’ 664 | cursor(x,y); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ main.c:403:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 403 | return; /* to eat a fortune cookie */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ io.c:664:9: note: in expansion of macro ‘cursor’ 664 | cursor(x,y); | ^~~~~~ display.c: At top level: main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c:747:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 747 | nearbymonst () | ^~~~~~~~~~~ savelev.c: In function ‘getlevel’: io.c: At top level: display.c:385:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 385 | showcell(x,y) | ^~~~~~~~ savelev.c:80:1: warning: control reaches end of non-void function [-Wreturn-type] 80 | } | ^ display.c: In function ‘showcell’: display.c:391:25: warning: "/*" within comment [-Wcomment] 391 | return; /* see nothing if blind */ | main.c:408:41: 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 () | ^~~~~ io.c:670:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 670 | standout (str) | ^~~~~~~~ main.c:413:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 413 | return; /*give the help screen*/ | ^~~~~~ io.c: In function ‘standout’: player.c:762:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 762 | stealsomething (x,y) | ^~~~~~~~~~~~~~ object.c:455:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 455 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ io.c:675:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 675 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:423:33: note: in expansion of macro ‘cursor’ 423 | cursor(m+1,j+1); | ^~~~~~ object.c:459:25: 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() | ^~~~~~~~~~~~~ player.c: In function ‘stealsomething’: io.c:670:1: note: declared here 670 | standout (str) | ^~~~~~~~ sphere.c: In function ‘newsphere’: sphere.c:127:1: warning: control reaches end of non-void function [-Wreturn-type] 127 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:423:33: note: in expansion of macro ‘cursor’ 423 | cursor(m+1,j+1); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:434:41: note: in expansion of macro ‘cursors’ 434 | cursors(); | ^~~~~~~ io.c: At top level: object.c:460:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 460 | item[playerx][playery] = OTRAPDOOR; | ^ player.c:782:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] 782 | beenhere[level]++; | ^ action.c: In function ‘run’: io.c:686:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 686 | set_score_output() { | ^~~~~~~~~~~~~~~~ action.c:25:1: warning: control reaches end of non-void function [-Wreturn-type] 25 | } | ^ player.c: At top level: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:434:41: note: in expansion of macro ‘cursors’ 434 | cursors(); | ^~~~~~~ monster.c:395:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 395 | return; | ^~~~~~ object.c:460:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 460 | item[playerx][playery] = OTRAPDOOR; | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c:792:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 792 | emptyhanded () | ^~~~~~~~~~~ io.c:699:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 699 | lflush () | ^~~~~~ sphere.c: In function ‘rmsphere’: sphere.c:162:1: warning: control reaches end of non-void function [-Wreturn-type] 162 | } | ^ display.c:434:59: 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));} | ^~ object.c:461:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 461 | know[playerx][playery] = 1; | ^ main.c:439:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 439 | return; | ^~~~~~ io.c: In function ‘lflush’: main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c:404:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 404 | return; | ^~~~~~ display.c:434:59: 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));} | ^~ object.c:461:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 461 | know[playerx][playery] = 1; | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ io.c:713:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 713 | return; | ^~~~~~ player.c:806:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 806 | creategem () | ^~~~~~~~~ main.c:447:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 447 | return; | ^~~~~~ io.c:699:1: note: declared here 699 | lflush () | ^~~~~~ display.c:436:65: 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));} | ^~ monster.c:410:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 410 | return; /* fireball */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ object.c:467:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 467 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ main.c:451:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 451 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c:415:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 415 | return; | ^~~~~~ action.c: In function ‘ydhi’: player.c:835:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ action.c:79:1: warning: control reaches end of non-void function [-Wreturn-type] 79 | } | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ display.c:436:65: 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));} | ^~ monster.c:419:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 419 | return; | ^~~~~~ action.c: In function ‘ycwi’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c: In function ‘adjustcvalues’: In file included from header.h:28: tok.c:239:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] 239 | if (isalpha(j=usermonster[usermpoint][0])) { | ^ store.c:473:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 473 | obank() | ^~~~~ create.c: In function ‘makeplayer’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:453:41: note: in expansion of macro ‘cursors’ 453 | cursors(); | ^~~~~~~ create.c:40:1: warning: control reaches end of non-void function [-Wreturn-type] 40 | } | ^ action.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] 86 | } | ^ object.c:484:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 484 | return; | ^~~~~~ monster.c:423:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 423 | return; | ^~~~~~ store.c:477:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 477 | obank2() | ^~~~~~ display.c: At top level: tok.c:242:73: warning: array subscript has type ‘char’ [-Wchar-subscripts] 242 | monster[k].name= &usermonster[usermpoint++][0]; | ~~~~~~~~~~^~ player.c:877:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 877 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:453:41: note: in expansion of macro ‘cursors’ 453 | cursors(); | ^~~~~~~ scores.c: In function ‘showscore3’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ io.c:722:33: warning: implicit declaration of function ‘tputs’; did you mean ‘puts’? [-Wimplicit-function-declaration] 722 | tputs (CL, 0, putcharacter); | ^~~~~ | puts display.c:471:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 471 | show1cell(x,y) | ^~~~~~~~~ store.c:482:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 482 | banktitle(str) | ^~~~~~~~~ display.c: In function ‘show1cell’: player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ main.c:455:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 455 | return; /* teleport yourself */ | ^~~~~~ scores.c:832:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] 832 | printf("\n%c) %s", index + 'a' , objectname[iven[index]]); | ~~~~^~~~~~~ display.c:475:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 475 | return; /* see nothing if blind */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ display.c:471:1: note: declared here 471 | show1cell(x,y) | ^~~~~~~~~ player.c:880:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 880 | return; | ^~~~~~ store.c: In function ‘banktitle’: monster.c:427:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 427 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:459:41: note: in expansion of macro ‘cursors’ 459 | cursors(); | ^~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:495:17: note: in expansion of macro ‘cursors’ 495 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:476:9: note: in expansion of macro ‘cursor’ 476 | cursor(x+1,y+1); | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:459:41: note: in expansion of macro ‘cursors’ 459 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:495:17: note: in expansion of macro ‘cursors’ 495 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:476:9: note: in expansion of macro ‘cursor’ 476 | cursor(x+1,y+1); | ^~~~~~ scores.c:834:37: 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 player.c:883:17: 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) | ^~~~~~~~~~~~~ monster.c:431:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 431 | return; | ^~~~~~ store.c:506:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 506 | return; | ^~~~~~ display.c:482:43: 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));} | ^~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ store.c:482:1: note: declared here 482 | banktitle(str) | ^~~~~~~~~ player.c:886:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 886 | return; | ^~~~~~ display.c:482:43: 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));} | ^~ main.c:475:75: warning: array subscript has type ‘char’ [-Wchar-subscripts] 475 | lprcat(objectname[item[i][j]]); | ~~~~~~~^~~ store.c: At top level: scores.c:836:35: 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 store.c:520:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 520 | ointerest() | ^~~~~~~~~ create.c: In function ‘eat’: player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ create.c:206:1: warning: control reaches end of non-void function [-Wreturn-type] 206 | } | ^ display.c:484:49: 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));} | ^~ main.c:482:39: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 482 | return; | ^~~~~~ savelev.c: In function ‘init_cells’: main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c:889:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 889 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ savelev.c:438:1: warning: control reaches end of non-void function [-Wreturn-type] 438 | } | ^ display.c:484:49: 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));} | ^~ scores.c: At top level: player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ object.c:487:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 487 | if (nearbymonst()) return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:486:33: note: in expansion of macro ‘cursors’ 486 | cursors(); | ^~~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ scores.c:846:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 846 | showscore1(idx, str2) | ^~~~~~~~~~ store.c:540:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 540 | obanksub() | ^~~~~~~~ io.c:745:40: warning: implicit declaration of function ‘tgoto’ [-Wimplicit-function-declaration] 745 | tputs (tgoto (CM, curx, cury), 0, putcharacter); | ^~~~~ scores.c: In function ‘showscore1’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:486:33: note: in expansion of macro ‘cursors’ 486 | cursors(); | ^~~~~~~ savelev.c: In function ‘bwrite’: savelev.c:470:1: warning: control reaches end of non-void function [-Wreturn-type] 470 | } | ^ display.c: At top level: scores.c:851:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] 851 | printf("\n%c) %s", idx + 'a' , objectname[iven[idx]]); | ~~~~^~~~~ display.c:515:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 515 | showplayer() | ^~~~~~~~~~ object.c:494:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 494 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ main.c:491:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 491 | return; | ^~~~~~ display.c: In function ‘showplayer’: monster.c:481:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 481 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ store.c: In function ‘obanksub’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:892:17: note: in expansion of macro ‘cursors’ 892 | cursors(); | ^~~~~~~ object.c:497:36: 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() | ^~~~~~~~~~~~~ savelev.c: In function ‘bread’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:518:9: note: in expansion of macro ‘cursor’ 518 | cursor(playerx+1,playery+1); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:564:25: note: in expansion of macro ‘cursor’ 564 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ scores.c:853:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] 853 | printf("\n%c) %s", idx + 'a' , objectname[iven[idx]]); | ~~~~^~~~~ savelev.c:500:1: warning: control reaches end of non-void function [-Wreturn-type] 500 | } | ^ monster.c:486:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 486 | return; | ^~~~~~ main.c:498:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 498 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:518:9: note: in expansion of macro ‘cursor’ 518 | cursor(playerx+1,playery+1); | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ create.c: In function ‘treasureroom’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:564:25: note: in expansion of macro ‘cursor’ 564 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:892:17: note: in expansion of macro ‘cursors’ 892 | cursors(); | ^~~~~~~ create.c:325:1: warning: control reaches end of non-void function [-Wreturn-type] 325 | } | ^ scores.c:856:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] 856 | objectname[iven[idx]], str2[ivenarg[idx]]); | ~~~~^~~~~ object.c:506:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 506 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ monster.c:491:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 491 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:521:17: note: in expansion of macro ‘cursor’ 521 | cursor(playerx+1,playery+1); | ^~~~~~ store.c:565:63: warning: array subscript has type ‘char’ [-Wchar-subscripts] 565 | lprintf("%c) %s",i+'a',objectname[iven[i]]); | ~~~~^~~ main.c:505:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 505 | return; | ^~~~~~ object.c:508:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 508 | if (nearbymonst()) return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:897:17: note: in expansion of macro ‘cursors’ 897 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:521:17: note: in expansion of macro ‘cursor’ 521 | cursor(playerx+1,playery+1); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:566:25: note: in expansion of macro ‘cursor’ 566 | cursor( (k%2)*40+33 , (k>>1)+4 ); | ^~~~~~ monster.c:497:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 497 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:510:33: note: in expansion of macro ‘cursors’ 510 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:566:25: note: in expansion of macro ‘cursor’ 566 | cursor( (k%2)*40+33 , (k>>1)+4 ); | ^~~~~~ object.c:517:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 517 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ player.c:897:17: note: in expansion of macro ‘cursors’ 897 | cursors(); | ^~~~~~~ monster.c:504:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 504 | return; | ^~~~~~ create.c: In function ‘troom’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:510:33: note: in expansion of macro ‘cursors’ 510 | cursors(); | ^~~~~~~ display.c: At top level: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ create.c:383:1: warning: control reaches end of non-void function [-Wreturn-type] 383 | } | ^ display.c:540:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 540 | moveplayer(dir) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:573:9: note: in expansion of macro ‘cursor’ 573 | cursor(31,17); | ^~~~~~ monster.c:509:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 509 | return; | ^~~~~~ display.c: In function ‘moveplayer’: main.c:515:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 515 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c:900:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 900 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:573:9: note: in expansion of macro ‘cursor’ 573 | cursor(31,17); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:549:9: note: in expansion of macro ‘cursor’ 549 | cursor(playerx+1,playery+1); | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ monster.c:517:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 517 | return; | ^~~~~~ tok.c: In function ‘yylex’: main.c:522:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 522 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ tok.c:81:33: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 81 | setuid(geteuid()); | ^~~~~~~~~~~~~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ io.c: At top level: create.c: In function ‘fillmroom’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:549:9: note: in expansion of macro ‘cursor’ 549 | cursor(playerx+1,playery+1); | ^~~~~~ tok.c:82:33: warning: ignoring return value of ‘setgid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 82 | setgid(getegid()); | ^~~~~~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:576:9: note: in expansion of macro ‘cursor’ 576 | cursor(40,18); | ^~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:540:25: note: in expansion of macro ‘forget’ 540 | forget(); | ^~~~~~ player.c:903:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 903 | return; | ^~~~~~ monster.c:524:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 524 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:526:33: note: in expansion of macro ‘cursors’ 526 | cursors(); | ^~~~~~~ io.c:795:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 795 | putcharacter(c) | ^~~~~~~~~~~~ create.c:628:1: warning: control reaches end of non-void function [-Wreturn-type] 628 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:576:9: note: in expansion of macro ‘cursor’ 576 | cursor(40,18); | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ scores.c: In function ‘new1sub’: header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:540:25: note: in expansion of macro ‘forget’ 540 | forget(); | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ scores.c:575:1: warning: control reaches end of non-void function [-Wreturn-type] 575 | } | ^ create.c: In function ‘froom’: io.c:806:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 806 | flush_buf() | ^~~~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:540:25: note: in expansion of macro ‘forget’ 540 | forget(); | ^~~~~~ create.c:635:1: warning: control reaches end of non-void function [-Wreturn-type] 635 | } | ^ monster.c:537:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 537 | return; | ^~~~~~ player.c: At top level: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ tok.c: In function ‘flushall’: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:540:25: note: in expansion of macro ‘forget’ 540 | forget(); | ^~~~~~ io.c:824:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 824 | tmcapcnv(sd,ss) | ^~~~~~~~ display.c: At top level: scores.c: In function ‘new2sub’: create.c: In function ‘fillroom’: player.c:919:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 919 | gettokstr (str) | ^~~~~~~~~ tok.c:145:1: warning: control reaches end of non-void function [-Wreturn-type] 145 | } | ^ monster.c:541:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 541 | return; | ^~~~~~ scores.c:612:1: warning: control reaches end of non-void function [-Wreturn-type] 612 | } | ^ display.c:609:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 609 | seemagic(arg) | ^~~~~~~~ create.c:662:1: warning: control reaches end of non-void function [-Wreturn-type] 662 | } | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:545:48: note: in expansion of macro ‘forget’ 545 | if (take(OSPEED,0)==0) forget(); | ^~~~~~ display.c: In function ‘seemagic’: tok.c: In function ‘sethard’: monster.c:545:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 545 | return; /* time stop */ | ^~~~~~ tok.c:178:1: warning: control reaches end of non-void function [-Wreturn-type] 178 | } | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:545:48: note: in expansion of macro ‘forget’ 545 | if (take(OSPEED,0)==0) forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:619:17: note: in expansion of macro ‘cursor’ 619 | cursor(1,1); | ^~~~~~ player.c:946:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 946 | getpassword () | ^~~~~~~~~~~ monster.c:549:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 549 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:545:48: note: in expansion of macro ‘forget’ 545 | if (take(OSPEED,0)==0) forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:619:17: note: in expansion of macro ‘cursor’ 619 | cursor(1,1); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:640:49: note: in expansion of macro ‘cursor’ 640 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:545:48: note: in expansion of macro ‘forget’ 545 | if (take(OSPEED,0)==0) forget(); | ^~~~~~ monster.c:553:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 553 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c:971:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 971 | getyn () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:640:49: note: in expansion of macro ‘cursor’ 640 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ display.c:629:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 629 | return; | ^~~~~~ monster.c:558:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 558 | return; | ^~~~~~ scores.c: In function ‘diedsub’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ display.c:609:1: note: declared here 609 | seemagic(arg) | ^~~~~~~~ scores.c:800:1: warning: control reaches end of non-void function [-Wreturn-type] 800 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:526:33: note: in expansion of macro ‘cursors’ 526 | cursors(); | ^~~~~~~ create.c: In function ‘checkgen’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:656:33: note: in expansion of macro ‘cursor’ 656 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:564:25: note: in expansion of macro ‘forget’ 564 | forget(); | ^~~~~~ monster.c:567:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 567 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c:987:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 987 | packweight () | ^~~~~~~~~~ main.c:530:49: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 530 | return; | ^~~~~~ create.c:755:1: warning: control reaches end of non-void function [-Wreturn-type] 755 | } | ^ scores.c: In function ‘showscore3’: main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:656:33: note: in expansion of macro ‘cursor’ 656 | cursor( (k%2)*40+1 , (k>>1)+4 ); | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:564:25: note: in expansion of macro ‘forget’ 564 | forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ display.c:636:17: note: in expansion of macro ‘cursor’ 636 | cursor(1,1); | ^~~~~~ scores.c:844:1: warning: control reaches end of non-void function [-Wreturn-type] 844 | } | ^ monster.c:574:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 574 | return; | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:564:25: note: in expansion of macro ‘forget’ 564 | forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ display.c:636:17: note: in expansion of macro ‘cursor’ 636 | cursor(1,1); | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ store.c:661:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 661 | return; | ^~~~~~ scores.c: In function ‘showscore1’: store.c:540:1: note: declared here 540 | obanksub() | ^~~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:564:25: note: in expansion of macro ‘forget’ 564 | forget(); | ^~~~~~ scores.c:857:1: warning: control reaches end of non-void function [-Wreturn-type] 857 | } | ^ monster.c:580:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 580 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:663:17: note: in expansion of macro ‘cursor’ 663 | cursor(40,17); | ^~~~~~ display.c:655:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 655 | return; | ^~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:569:50: note: in expansion of macro ‘forget’ 569 | if (take(OSHROOMS,0)==0) forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:663:17: note: in expansion of macro ‘cursor’ 663 | cursor(40,17); | ^~~~~~ monster.c:585:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 585 | return; | ^~~~~~ display.c:609:1: note: declared here 609 | seemagic(arg) | ^~~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:569:50: note: in expansion of macro ‘forget’ 569 | if (take(OSHROOMS,0)==0) forget(); | ^~~~~~ io.c: In function ‘newgame’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:665:17: note: in expansion of macro ‘cursor’ 665 | cursor(49,18); | ^~~~~~ io.c:87:1: warning: control reaches end of non-void function [-Wreturn-type] 87 | } | ^ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:569:50: note: in expansion of macro ‘forget’ 569 | if (take(OSHROOMS,0)==0) forget(); | ^~~~~~ main.c:586:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 586 | return; | ^~~~~~ monster.c:589:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 589 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:665:17: note: in expansion of macro ‘cursor’ 665 | cursor(49,18); | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:569:50: note: in expansion of macro ‘forget’ 569 | if (take(OSHROOMS,0)==0) forget(); | ^~~~~~ display.c: At top level: player.c: In function ‘raiselevel’: player.c:43:1: warning: control reaches end of non-void function [-Wreturn-type] 43 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:589:41: note: in expansion of macro ‘cursors’ 589 | cursors(); | ^~~~~~~ display.c:699:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 699 | seepage() | ^~~~~~~ monster.c:596:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 596 | return; | ^~~~~~ store.c: At top level: player.c: In function ‘loselevel’: player.c:57:1: warning: control reaches end of non-void function [-Wreturn-type] 57 | } | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ store.c:670:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 670 | appraise(eye, order) | ^~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:589:41: note: in expansion of macro ‘cursors’ 589 | cursors(); | ^~~~~~~ monster.c:600:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 600 | return; | ^~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ object.c:594:87: warning: array subscript has type ‘char’ [-Wchar-subscripts] 594 | hitp[k][j]=monster[mitem[k][j].mon].hitpoints; | ~~~~~~~~~~~^~~~ store.c: In function ‘appraise’: main.c:601:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 601 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c: In function ‘raiseexperience’: player.c:125:1: warning: control reaches end of non-void function [-Wreturn-type] 125 | } | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:596:25: note: in expansion of macro ‘forget’ 596 | forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:694:25: note: in expansion of macro ‘cursor’ 694 | cursor( (order%2)*40+1 , (order>>1)+4 ); | ^~~~~~ io.c: In function ‘lprint’: io.c:238:1: warning: control reaches end of non-void function [-Wreturn-type] 238 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:603:41: note: in expansion of macro ‘cursors’ 603 | case 'g': cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:694:25: note: in expansion of macro ‘cursor’ 694 | cursor( (order%2)*40+1 , (order>>1)+4 ); | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:596:25: note: in expansion of macro ‘forget’ 596 | forget(); | ^~~~~~ io.c: In function ‘lwrite’: io.c:262:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 262 | write(lfd,buf,len); | ^~~~~~~~~~~~~~~~~~ player.c: In function ‘loseexperience’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:603:41: note: in expansion of macro ‘cursors’ 603 | case 'g': cursors(); | ^~~~~~~ store.c: At top level: header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:596:25: note: in expansion of macro ‘forget’ 596 | forget(); | ^~~~~~ player.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] 158 | } | ^ store.c:706:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 706 | otradhead() | ^~~~~~~~~ io.c:278:1: warning: control reaches end of non-void function [-Wreturn-type] 278 | } | ^ player.c: In function ‘losehp’: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:596:25: note: in expansion of macro ‘forget’ 596 | forget(); | ^~~~~~ player.c:181:1: warning: control reaches end of non-void function [-Wreturn-type] 181 | } | ^ main.c:608:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 608 | return; | ^~~~~~ 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"); } | ^ main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c: In function ‘losemhp’: store.c:716:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 716 | otradepost() | ^~~~~~~~~~ player.c:192:1: warning: control reaches end of non-void function [-Wreturn-type] 192 | } | ^ player.c: In function ‘raisehp’: header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:601:47: note: in expansion of macro ‘forget’ 601 | if (take(OACID,0)==0) forget(); | ^~~~~~ player.c:208:1: warning: control reaches end of non-void function [-Wreturn-type] 208 | } | ^ display.c: In function ‘bot_spellx’: player.c: In function ‘raisemhp’: display.c:41:43: warning: control reaches end of non-void function [-Wreturn-type] 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:611:41: note: in expansion of macro ‘cursors’ 611 | cursors(); | ^~~~~~~ player.c:215:1: warning: control reaches end of non-void function [-Wreturn-type] 215 | } | ^ store.c: In function ‘otradepost’: player.c: In function ‘raisespells’: monster.c:671:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 671 | return; | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:601:47: note: in expansion of macro ‘forget’ 601 | if (take(OACID,0)==0) forget(); | ^~~~~~ player.c:231:1: warning: control reaches end of non-void function [-Wreturn-type] 231 | } | ^ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:611:41: note: in expansion of macro ‘cursors’ 611 | cursors(); | ^~~~~~~ player.c: In function ‘raisemspells’: store.c:739:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 739 | return; | ^~~~~~ player.c:238:1: warning: control reaches end of non-void function [-Wreturn-type] 238 | } | ^ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:601:47: note: in expansion of macro ‘forget’ 601 | if (take(OACID,0)==0) forget(); | ^~~~~~ player.c: In function ‘losespells’: player.c:254:1: warning: control reaches end of non-void function [-Wreturn-type] 254 | } | ^ monster.c:678:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 678 | return; | ^~~~~~ store.c:716:1: note: declared here 716 | otradepost() | ^~~~~~~~~~ monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c: In function ‘losemspells’: player.c:263:1: warning: control reaches end of non-void function [-Wreturn-type] 263 | } | ^ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:601:47: note: in expansion of macro ‘forget’ 601 | if (take(OACID,0)==0) forget(); | ^~~~~~ main.c:618:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 618 | return; | ^~~~~~ monster.c:683:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 683 | return; | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ player.c: In function ‘positionplayer’: io.c: In function ‘lrfill’: monster.c:284:1: note: declared here 284 | speldamage(x) | ^~~~~~~~~~ player.c:286:1: warning: control reaches end of non-void function [-Wreturn-type] 286 | } | ^ io.c:371:1: warning: control reaches end of non-void function [-Wreturn-type] 371 | } | ^ main.c:623:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 623 | return; /* quit */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ monster.c: At top level: monster.c:692:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 692 | loseint() | ^~~~~~~ main.c:630:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 630 | return; /* look */ | ^~~~~~ main.c:307:1: note: declared here 307 | parse () | ^~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:624:25: note: in expansion of macro ‘forget’ 624 | forget(); | ^~~~~~ monster.c:704:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 704 | isconfuse() | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:632:41: note: in expansion of macro ‘cursors’ 632 | case 'P': cursors(); | ^~~~~~~ player.c: In function ‘recalc’: header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:624:25: note: in expansion of macro ‘forget’ 624 | forget(); | ^~~~~~ monster.c:721:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 721 | nospell(x, monst) | ^~~~~~~ player.c:415:1: warning: control reaches end of non-void function [-Wreturn-type] 415 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ main.c:632:41: note: in expansion of macro ‘cursors’ 632 | case 'P': cursors(); | ^~~~~~~ monster.c: In function ‘nospell’: io.c: In function ‘lrclose’: player.c: In function ‘more’: header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:624:25: note: in expansion of macro ‘forget’ 624 | forget(); | ^~~~~~ store.c:757:20: 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() | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:624:25: note: in expansion of macro ‘forget’ 624 | forget(); | ^~~~~~ main.c:638:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 638 | return; | ^~~~~~ store.c:821:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 821 | olrs() | ^~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:732:9: note: in expansion of macro ‘cursors’ 732 | cursors(); | ^~~~~~~ io.c:510:1: warning: control reaches end of non-void function [-Wreturn-type] 510 | } | ^ main.c:307:1: note: declared here 307 | parse () | ^~~~~ store.c: In function ‘olrs’: io.c: In function ‘lwclose’: header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:629:47: note: in expansion of macro ‘forget’ 629 | if (take(OHASH,0)==0) forget(); | ^~~~~~ io.c:522:1: warning: control reaches end of non-void function [-Wreturn-type] 522 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:732:9: note: in expansion of macro ‘cursors’ 732 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:829:9: note: in expansion of macro ‘cursor’ 829 | cursor(1,4); | ^~~~~~ io.c: In function ‘lprcat’: main.c: At top level: header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:629:47: note: in expansion of macro ‘forget’ 629 | if (take(OHASH,0)==0) forget(); | ^~~~~~ monster.c: At top level: io.c:539:1: warning: control reaches end of non-void function [-Wreturn-type] 539 | } | ^ main.c:643:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 643 | parse2 () | ^~~~~~ monster.c:745:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 745 | fullhit(xx) | ^~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:629:47: note: in expansion of macro ‘forget’ 629 | if (take(OHASH,0)==0) forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:829:9: note: in expansion of macro ‘cursor’ 829 | cursor(1,4); | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:629:47: note: in expansion of macro ‘forget’ 629 | if (take(OHASH,0)==0) forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:834:25: note: in expansion of macro ‘cursors’ 834 | cursors(); | ^~~~~~~ monster.c:768:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 768 | direct(spnum, dam, str, arg) | ^~~~~~ io.c: In function ‘init_term’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:834:25: note: in expansion of macro ‘cursors’ 834 | cursors(); | ^~~~~~~ monster.c: In function ‘direct’: io.c:626:1: warning: control reaches end of non-void function [-Wreturn-type] 626 | } | ^ monster.c:776:17: 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) | ^~~~~~ store.c:841:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 841 | return; | ^~~~~~ io.c: In function ‘cl_up’: io.c:642:1: warning: control reaches end of non-void function [-Wreturn-type] 642 | } | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:651:25: note: in expansion of macro ‘forget’ 651 | forget(); | ^~~~~~ store.c:821:1: note: declared here 821 | olrs() | ^~~~ monster.c:778:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 778 | return; | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:651:25: note: in expansion of macro ‘forget’ 651 | forget(); | ^~~~~~ monster.c:768:1: note: declared here 768 | direct(spnum, dam, str, arg) | ^~~~~~ io.c: In function ‘cl_dn’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:849:17: note: in expansion of macro ‘cursor’ 849 | cursor(1, 20); | ^~~~~~ player.c:481:1: warning: control reaches end of non-void function [-Wreturn-type] 481 | } | ^ io.c:665:1: warning: control reaches end of non-void function [-Wreturn-type] 665 | } | ^ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:651:25: note: in expansion of macro ‘forget’ 651 | forget(); | ^~~~~~ display.c: In function ‘bot_hpx’: In file included from /usr/include/stdio.h:980, from header.h:32: In function ‘fprintf’, inlined from ‘yylex’ at tok.c:100:5: /usr/include/bits/stdio2.h:79:10: warning: ‘sh’ may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tok.c: In function ‘yylex’: tok.c:24:15: note: ‘sh’ was declared here 24 | char *sh, *getenv(); | ^~ io.c: In function ‘set_score_output’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:849:17: note: in expansion of macro ‘cursor’ 849 | cursor(1, 20); | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:651:25: note: in expansion of macro ‘forget’ 651 | forget(); | ^~~~~~ monster.c:791:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 791 | return; | ^~~~~~ io.c:688:1: warning: control reaches end of non-void function [-Wreturn-type] 688 | } | ^ monster.c:768:1: note: declared here 768 | direct(spnum, dam, str, arg) | ^~~~~~ display.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] 158 | } | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:656:47: note: in expansion of macro ‘forget’ 656 | if (take(OCOKE,0)==0) forget(); | ^~~~~~ monster.c:803:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 803 | return; | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:656:47: note: in expansion of macro ‘forget’ 656 | if (take(OCOKE,0)==0) forget(); | ^~~~~~ monster.c:768:1: note: declared here 768 | direct(spnum, dam, str, arg) | ^~~~~~ store.c:873:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 873 | return; | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:656:47: note: in expansion of macro ‘forget’ 656 | if (take(OCOKE,0)==0) forget(); | ^~~~~~ io.c: In function ‘putcharacter’: store.c:821:1: note: declared here 821 | olrs() | ^~~~ monster.c:808:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 808 | return; | ^~~~~~ io.c:801:1: warning: control reaches end of non-void function [-Wreturn-type] 801 | } | ^ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:656:47: note: in expansion of macro ‘forget’ 656 | if (take(OCOKE,0)==0) forget(); | ^~~~~~ io.c: In function ‘flush_buf’: monster.c:768:1: note: declared here 768 | direct(spnum, dam, str, arg) | ^~~~~~ io.c:809:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 809 | write(lfd, outbuf, ind); | ^~~~~~~~~~~~~~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:877:17: note: in expansion of macro ‘cursor’ 877 | cursor(1,6); | ^~~~~~ monster.c:814:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 814 | return; | ^~~~~~ object.c:669:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 669 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ io.c:811:1: warning: control reaches end of non-void function [-Wreturn-type] 811 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:877:17: note: in expansion of macro ‘cursor’ 877 | cursor(1,6); | ^~~~~~ monster.c:768:1: note: declared here 768 | direct(spnum, dam, str, arg) | ^~~~~~ display.c: In function ‘botside’: monster.c: At top level: object.c:673:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 673 | return; | ^~~~~~ object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ display.c:209:1: warning: control reaches end of non-void function [-Wreturn-type] 209 | } | ^ monster.c:830:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 830 | godirect(spnum, dam, str, delay, cshow) | ^~~~~~~~ io.c: In function ‘tmcapcnv’: object.c:676:36: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 676 | if (nearbymonst()) return; | ^~~~~~ monster.c: In function ‘godirect’: object.c:16:1: note: declared here 16 | lookforobject() | ^~~~~~~~~~~~~ io.c:886:1: warning: control reaches end of non-void function [-Wreturn-type] 886 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:882:17: note: in expansion of macro ‘cursor’ 882 | cursor(1,8); | ^~~~~~ monster.c:839:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 839 | return; /* bad args */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:882:17: note: in expansion of macro ‘cursor’ 882 | cursor(1,8); | ^~~~~~ monster.c:830:1: note: declared here 830 | godirect(spnum, dam, str, delay, cshow) | ^~~~~~~~ display.c: In function ‘draws’: store.c: At top level: display.c:265:1: warning: control reaches end of non-void function [-Wreturn-type] 265 | } | ^ monster.c:842:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 842 | return; | ^~~~~~ store.c:891:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 891 | nomore() | ^~~~~~ object.c: At top level: monster.c:830:1: note: declared here 830 | godirect(spnum, dam, str, delay, cshow) | ^~~~~~~~ object.c:694:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 694 | finditem(itm) | ^~~~~~~~ store.c:897:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 897 | nocash() | ^~~~~~ object.c: In function ‘finditem’: object.c:699:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] 699 | tmp=iarg[playerx][playery]; | ^ store.c:911:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 911 | pad_hd() | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:861:25: note: in expansion of macro ‘cursors’ 861 | cursors(); | ^~~~~~~ object.c:699:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 699 | tmp=iarg[playerx][playery]; | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:861:25: note: in expansion of macro ‘cursors’ 861 | cursors(); | ^~~~~~~ monster.c:866:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 866 | return; | ^~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:728:25: note: in expansion of macro ‘forget’ 728 | forget(); | ^~~~~~ display.c: In function ‘drawscreen’: main.c: In function ‘parse2’: monster.c:830:1: note: declared here 830 | godirect(spnum, dam, str, delay, cshow) | ^~~~~~~~ display.c:378:1: warning: control reaches end of non-void function [-Wreturn-type] 378 | } | ^ main.c:650:1: warning: control reaches end of non-void function [-Wreturn-type] 650 | } | ^ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:728:25: note: in expansion of macro ‘forget’ 728 | forget(); | ^~~~~~ store.c: In function ‘pad_hd’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ monster.c:870:25: note: in expansion of macro ‘cursor’ 870 | cursor(x + 1, y + 1); | ^~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:728:25: note: in expansion of macro ‘forget’ 728 | forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:930:9: note: in expansion of macro ‘cursor’ 930 | cursor(30,18); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ monster.c:870:25: note: in expansion of macro ‘cursor’ 870 | cursor(x + 1, y + 1); | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:728:25: note: in expansion of macro ‘forget’ 728 | forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:930:9: note: in expansion of macro ‘cursor’ 930 | cursor(30,18); | ^~~~~~ player.c: In function ‘creategem’: store.c: At top level: player.c:829:1: warning: control reaches end of non-void function [-Wreturn-type] 829 | } | ^ object.c:729:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 729 | return; | ^~~~~~ store.c:934:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 934 | opad() | ^~~~ object.c:694:1: note: declared here 694 | finditem(itm) | ^~~~~~~~ store.c: In function ‘opad’: display.c: In function ‘showcell’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:882:33: note: in expansion of macro ‘cursors’ 882 | cursors(); | ^~~~~~~ object.c: At top level: display.c:464:1: warning: control reaches end of non-void function [-Wreturn-type] 464 | } | ^ object.c:743:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 743 | ostairs(dir) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ store.c:943:17: note: in expansion of macro ‘cursor’ 943 | cursor(57,18); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:882:33: note: in expansion of macro ‘cursors’ 882 | cursors(); | ^~~~~~~ object.c: In function ‘ostairs’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ store.c:943:17: note: in expansion of macro ‘cursor’ 943 | cursor(57,18); | ^~~~~~ object.c:760:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 760 | return; | ^~~~~~ player.c: In function ‘gettokstr’: monster.c:890:41: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 890 | return; | ^~~~~~ object.c:743:1: note: declared here 743 | ostairs(dir) | ^~~~~~~ player.c:939:1: warning: control reaches end of non-void function [-Wreturn-type] 939 | } | ^ monster.c:830:1: note: declared here 830 | godirect(spnum, dam, str, delay, cshow) | ^~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:946:17: note: in expansion of macro ‘cursors’ 946 | cursors(); | ^~~~~~~ player.c: In function ‘getpassword’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:892:33: note: in expansion of macro ‘cursors’ 892 | cursors(); | ^~~~~~~ player.c:955:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 955 | fgets(gpwbuf,BUFSIZ-1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:946:17: note: in expansion of macro ‘cursors’ 946 | cursors(); | ^~~~~~~ display.c: In function ‘showplayer’: display.c:525:1: warning: control reaches end of non-void function [-Wreturn-type] 525 | } | ^ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:892:33: note: in expansion of macro ‘cursors’ 892 | cursors(); | ^~~~~~~ object.c:782:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 782 | return; | ^~~~~~ object.c:743:1: note: declared here 743 | ostairs(dir) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:904:33: note: in expansion of macro ‘cursors’ 904 | cursors(); | ^~~~~~~ store.c:964:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 964 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:904:33: note: in expansion of macro ‘cursors’ 904 | cursors(); | ^~~~~~~ store.c:934:1: note: declared here 934 | opad() | ^~~~ object.c:805:25: 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: display.c: In function ‘seepage’: object.c:817:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 817 | oteleport(err) | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:924:33: note: in expansion of macro ‘cursors’ 924 | cursors(); | ^~~~~~~ display.c:711:1: warning: control reaches end of non-void function [-Wreturn-type] 711 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1009:33: note: in expansion of macro ‘cl_line’ 1009 | cl_line(16,7); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:924:33: note: in expansion of macro ‘cursors’ 924 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1009:33: note: in expansion of macro ‘cl_line’ 1009 | cl_line(16,7); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:934:33: note: in expansion of macro ‘cursors’ 934 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1009:33: note: in expansion of macro ‘cl_line’ 1009 | cl_line(16,7); | ^~~~~~~ object.c:866:1: warning: "/*" within comment [-Wcomment] 866 | /* | header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:934:33: note: in expansion of macro ‘cursors’ 934 | cursors(); | ^~~~~~~ object.c:873:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 873 | opotion(pot) | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1009:33: note: in expansion of macro ‘cl_line’ 1009 | cl_line(16,7); | ^~~~~~~ object.c: In function ‘opotion’: object.c:883:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 883 | return; | ^~~~~~ object.c:873:1: note: declared here 873 | opotion(pot) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1017:33: note: in expansion of macro ‘cl_line’ 1017 | cl_line(16,8); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:948:33: note: in expansion of macro ‘cursors’ 948 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:948:33: note: in expansion of macro ‘cursors’ 948 | cursors(); | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:887:17: note: in expansion of macro ‘forget’ 887 | forget(); /* destroy potion */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1017:33: note: in expansion of macro ‘cl_line’ 1017 | cl_line(16,8); | ^~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:887:17: note: in expansion of macro ‘forget’ 887 | forget(); /* destroy potion */ | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1017:33: note: in expansion of macro ‘cl_line’ 1017 | cl_line(16,8); | ^~~~~~~ monster.c: At top level: monster.c:975:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 975 | ifblind(x, y) | ^~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:887:17: note: in expansion of macro ‘forget’ 887 | forget(); /* destroy potion */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1017:33: note: in expansion of macro ‘cl_line’ 1017 | cl_line(16,8); | ^~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:887:17: note: in expansion of macro ‘forget’ 887 | forget(); /* destroy potion */ | ^~~~~~ monster.c:997:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 997 | tdirect(spnum) | ^~~~~~~ monster.c: In function ‘tdirect’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1025:33: note: in expansion of macro ‘cl_line’ 1025 | cl_line(16,9); | ^~~~~~~ object.c:889:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 889 | return; | ^~~~~~ monster.c:1004:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1004 | return; /* bad args */ | ^~~~~~ object.c:873:1: note: declared here 873 | opotion(pot) | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1025:33: note: in expansion of macro ‘cl_line’ 1025 | cl_line(16,9); | ^~~~~~~ monster.c:997:1: note: declared here 997 | tdirect(spnum) | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:893:44: note: in expansion of macro ‘forget’ 893 | if (take(OPOTION,pot)==0) forget(); | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1025:33: note: in expansion of macro ‘cl_line’ 1025 | cl_line(16,9); | ^~~~~~~ monster.c:1006:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1006 | return; | ^~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:893:44: note: in expansion of macro ‘forget’ 893 | if (take(OPOTION,pot)==0) forget(); | ^~~~~~ monster.c:997:1: note: declared here 997 | tdirect(spnum) | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1025:33: note: in expansion of macro ‘cl_line’ 1025 | cl_line(16,9); | ^~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:893:44: note: in expansion of macro ‘forget’ 893 | if (take(OPOTION,pot)==0) forget(); | ^~~~~~ monster.c:1010:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1010 | return; | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:893:44: note: in expansion of macro ‘forget’ 893 | if (take(OPOTION,pot)==0) forget(); | ^~~~~~ monster.c:997:1: note: declared here 997 | tdirect(spnum) | ^~~~~~~ object.c:894:17: 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: savelev.c: In function ‘savegame’: scores.c: In function ‘paytaxes’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1033:33: note: in expansion of macro ‘cl_line’ 1033 | cl_line(16,10); | ^~~~~~~ object.c:901:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c:1016:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1016 | return; | ^~~~~~ savelev.c:187:21: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized] 187 | if (pclose(fp) != 0) { /* if compress failed */ | ^~~~~~~~~~ scores.c:258:36: warning: ‘amt’ may be used uninitialized [-Wmaybe-uninitialized] 258 | if (x < amt) | ^ savelev.c:95:15: note: ‘fp’ was declared here 95 | FILE *fp, *popen(); | ^~ scores.c:242:17: note: ‘amt’ was declared here 242 | long amt; | ^~~ monster.c:997:1: note: declared here 997 | tdirect(spnum) | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1033:33: note: in expansion of macro ‘cl_line’ 1033 | cl_line(16,10); | ^~~~~~~ monster.c: At top level: object.c: In function ‘quaffpotion’: monster.c:1022:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1022 | makewall(spnum) | ^~~~~~~~ monster.c: In function ‘makewall’: header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1033:33: note: in expansion of macro ‘cl_line’ 1033 | cl_line(16,10); | ^~~~~~~ object.c:908:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 908 | return; /* check for within bounds */ | ^~~~~~ monster.c:1028:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1028 | return; /* bad args */ | ^~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1033:33: note: in expansion of macro ‘cl_line’ 1033 | cl_line(16,10); | ^~~~~~~ monster.c:1022:1: note: declared here 1022 | makewall(spnum) | ^~~~~~~~ monster.c:1030:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1030 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1041:33: note: in expansion of macro ‘cl_line’ 1041 | cl_line(16,11); | ^~~~~~~ monster.c:1022:1: note: declared here 1022 | makewall(spnum) | ^~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:928:17: note: in expansion of macro ‘cursors’ 928 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:27: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1041:33: note: in expansion of macro ‘cl_line’ 1041 | cl_line(16,11); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:928:17: note: in expansion of macro ‘cursors’ 928 | cursors(); | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1041:33: note: in expansion of macro ‘cl_line’ 1041 | cl_line(16,11); | ^~~~~~~ monster.c:1033:12: 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: object.c:930:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 930 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:133:61: note: in expansion of macro ‘cursor’ 133 | #define cl_line(x,y) do { cursor(1,(y)); *lpnt++ = CL_LINE; cursor((x),(y)); } while (0) | ^~~~~~ store.c:1041:33: note: in expansion of macro ‘cl_line’ 1041 | cl_line(16,11); | ^~~~~~~ monster.c:1062:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1062 | omnidirect(spnum, dam, str) | ^~~~~~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c: In function ‘omnidirect’: store.c: At top level: monster.c:1069:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1069 | return; /* bad args */ | ^~~~~~ store.c:1054:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1054 | snag(itm) | ^~~~ monster.c:1062:1: note: declared here 1062 | omnidirect(spnum, dam, str) | ^~~~~~~~~~ object.c:944:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 944 | return; | ^~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ store.c:1075:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1075 | pick_char(foo) | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1075:41: note: in expansion of macro ‘cursors’ 1075 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1075:41: note: in expansion of macro ‘cursors’ 1075 | cursors(); | ^~~~~~~ store.c: In function ‘pick_char’: monster.c:1072:28: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1072 | if ((m = mitem[x][y].mon) != 0) | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:1105:17: note: in expansion of macro ‘cursors’ 1105 | cursors(); | ^~~~~~~ monster.c: At top level: monster.c:1095:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1095 | dirsub(x, y) | ^~~~~~ object.c:987:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 987 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ store.c:1105:17: note: in expansion of macro ‘cursors’ 1105 | cursors(); | ^~~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c:1138:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1138 | verifyxy(x, y) | ^~~~~~~~ object.c:995:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 995 | return; | ^~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c:1170:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1170 | dirpoly(spnum) | ^~~~~~~ monster.c: In function ‘dirpoly’: monster.c:1176:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1176 | return; /* bad args */ | ^~~~~~ object.c:1004:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1004 | return; | ^~~~~~ monster.c:1170:1: note: declared here 1170 | dirpoly(spnum) | ^~~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ object.c:1007:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1007 | return; | ^~~~~~ monster.c:1178:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1178 | return; /* if he is confused, he can't aim his magic */ | ^~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c:1170:1: note: declared here 1170 | dirpoly(spnum) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ object.c:1013:17: note: in expansion of macro ‘cursor’ 1013 | cursor(playerx+1,playery+1); | ^~~~~~ store.c: In function ‘dnd_2hed’: store.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] 144 | } | ^ monster.c:1182:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1182 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ object.c:1013:17: note: in expansion of macro ‘cursor’ 1013 | cursor(playerx+1,playery+1); | ^~~~~~ store.c: In function ‘dnd_hed’: store.c:154:1: warning: control reaches end of non-void function [-Wreturn-type] 154 | } | ^ monster.c:1170:1: note: declared here 1170 | dirpoly(spnum) | ^~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ object.c:1015:17: note: in expansion of macro ‘cursor’ 1015 | cursor(playerx+1,playery+1); | ^~~~~~ monster.c:1188:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1188 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ object.c:1015:17: note: in expansion of macro ‘cursor’ 1015 | cursor(playerx+1,playery+1); | ^~~~~~ monster.c:1170:1: note: declared here 1170 | dirpoly(spnum) | ^~~~~~~ object.c:1016:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1016 | return; | ^~~~~~ monster.c: At top level: object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ store.c: In function ‘handsfull’: store.c:246:1: warning: control reaches end of non-void function [-Wreturn-type] 246 | } | ^ monster.c:1204:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1204 | hitmonster(x, y) | ^~~~~~~~~~ store.c: In function ‘outofstock’: monster.c: In function ‘hitmonster’: 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 | } | ^ object.c:1021:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1021 | return; | ^~~~~~ monster.c:1210:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1210 | return; /* not if time stopped */ | ^~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ monster.c:1204:1: note: declared here 1204 | hitmonster(x, y) | ^~~~~~~~~~ monster.c:1215:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1215 | return; | ^~~~~~ store.c: In function ‘sch_hed’: store.c:340:1: warning: control reaches end of non-void function [-Wreturn-type] 340 | } | ^ object.c:1059:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1059 | return; | ^~~~~~ monster.c:1204:1: note: declared here 1204 | hitmonster(x, y) | ^~~~~~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ object.c:1068:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1068 | return; | ^~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1222:9: note: in expansion of macro ‘cursors’ 1222 | cursors(); | ^~~~~~~ object.c:901:1: note: declared here 901 | quaffpotion(pot) | ^~~~~~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1222:9: note: in expansion of macro ‘cursors’ 1222 | cursors(); | ^~~~~~~ object.c:1073:17: 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:17: 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:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1083 | return; | ^~~~~~ monster.c:1240:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1240 | if (flag && (monst==RUSTMONSTER || monst==DISENCHANTRESS || monst==CUBE) | ^ 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) | ^~~~~~~ store.c: In function ‘obank’: store.c:476:1: warning: control reaches end of non-void function [-Wreturn-type] 476 | } | ^ object.c: In function ‘oscroll’: store.c: In function ‘obank2’: store.c:480:1: warning: control reaches end of non-void function [-Wreturn-type] 480 | } | ^ monster.c: At top level: object.c:1105:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1105 | return; | ^~~~~~ monster.c:1290:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1290 | hitm(x, y, amt) | ^~~~ object.c:1093:1: note: declared here 1093 | oscroll(typ) | ^~~~~~~ store.c: In function ‘ointerest’: store.c:535:1: warning: control reaches end of non-void function [-Wreturn-type] 535 | } | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1110:17: 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:17: 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:17: note: in expansion of macro ‘forget’ 1110 | forget(); | ^~~~~~ monster.c: In function ‘hitm’: header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1110:17: note: in expansion of macro ‘forget’ 1110 | forget(); | ^~~~~~ monster.c:1357:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1357 | beenhere[level] -= mitem[x][y].n; | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:1113:25: note: in expansion of macro ‘cursors’ 1113 | cursors(); | ^~~~~~~ monster.c:1358:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1358 | if (beenhere[level] < 1) beenhere[level]=1; | ^ store.c: In function ‘appraise’: header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:1113:25: note: in expansion of macro ‘cursors’ 1113 | cursors(); | ^~~~~~~ store.c:701:1: warning: control reaches end of non-void function [-Wreturn-type] 701 | } | ^ monster.c:1358:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1358 | if (beenhere[level] < 1) beenhere[level]=1; | ^ store.c: In function ‘otradhead’: store.c:714:1: warning: control reaches end of non-void function [-Wreturn-type] 714 | } | ^ object.c:1117:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1117 | return; | ^~~~~~ object.c:1093:1: note: declared here 1093 | oscroll(typ) | ^~~~~~~ monster.c: At top level: monster.c:1385:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1385 | hitplayer (x, y) | ^~~~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1122:25: note: in expansion of macro ‘forget’ 1122 | forget(); /* destroy it */ | ^~~~~~ monster.c: In function ‘hitplayer’: header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1122:25: note: in expansion of macro ‘forget’ 1122 | forget(); /* destroy it */ | ^~~~~~ store.c: In function ‘cnsitm’: tok.c: In function ‘readopts’: store.c:816:1: warning: control reaches end of non-void function [-Wreturn-type] 816 | } | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1402:9: note: in expansion of macro ‘cursors’ 1402 | cursors(); | ^~~~~~~ header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1122:25: note: in expansion of macro ‘forget’ 1122 | forget(); /* destroy it */ | ^~~~~~ tok.c:205:17: warning: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 205 | strncpy (str, s2buf, strlen(s2buf)-1); | ^ tok.c:205:38: note: length computed here 205 | strncpy (str, s2buf, strlen(s2buf)-1); | ^~~~~~~~~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1122:25: note: in expansion of macro ‘forget’ 1122 | forget(); /* destroy it */ | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1402:9: note: in expansion of macro ‘cursors’ 1402 | cursors(); | ^~~~~~~ object.c:1123:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1123 | return; | ^~~~~~ store.c: In function ‘nomore’: monster.c:1406:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1406 | return; | ^~~~~~ object.c:1093:1: note: declared here 1093 | oscroll(typ) | ^~~~~~~ store.c:896:1: warning: control reaches end of non-void function [-Wreturn-type] 896 | } | ^ store.c: In function ‘nocash’: monster.c:1385:1: note: declared here 1385 | hitplayer (x, y) | ^~~~~~~~~ store.c:902:1: warning: control reaches end of non-void function [-Wreturn-type] 902 | } | ^ 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’: store.c: In function ‘pad_hd’: monster.c:1411:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1411 | return; | ^~~~~~ store.c:932:1: warning: control reaches end of non-void function [-Wreturn-type] 932 | } | ^ object.c:1152:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1152 | if (c[time_change[j]]) { | ~~~~~~~~~~~^~~ monster.c:1385:1: note: declared here 1385 | hitplayer (x, y) | ^~~~~~~~~ object.c:1153:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1153 | if (c[time_change[j]] < tim+1) | ~~~~~~~~~~~^~~ object.c:1154:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1154 | c[time_change[j]] = 1; | ~~~~~~~~~~~^~~ monster.c:1418:33: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1418 | return; | ^~~~~~ object.c:1156:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1156 | c[time_change[j]] -= tim; | ~~~~~~~~~~~^~~ object.c: At top level: monster.c:1385:1: note: declared here 1385 | hitplayer (x, y) | ^~~~~~~~~ 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:17: 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:17: 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) | ^~~~~~~~~~~ store.c: In function ‘pick_char’: object.c:1181:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1181 | return; | ^~~~~~ store.c:1258:1: warning: control reaches end of non-void function [-Wreturn-type] 1258 | } /* end pick_char */ | ^ object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c:1447:33: 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) | ^~~~~~~~~ object.c:1194:17: 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) | ^~~~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1451:25: note: in expansion of macro ‘cursors’ 1451 | cursors(); | ^~~~~~~ object.c:1197:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1197 | return; | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1451:25: note: in expansion of macro ‘cursors’ 1451 | cursors(); | ^~~~~~~ object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ object.c:1201:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1201 | return; | ^~~~~~ monster.c: At top level: object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c:1481:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1481 | dropsomething (x,y,monst) | ^~~~~~~~~~~~~ object.c:1205:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1205 | return; | ^~~~~~ monster.c: In function ‘dropsomething’: object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c:1497:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1497 | return; | ^~~~~~ object.c:1209:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1209 | return; | ^~~~~~ monster.c:1481:1: note: declared here 1481 | dropsomething (x,y,monst) | ^~~~~~~~~~~~~ object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c:1502:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1502 | return; | ^~~~~~ object.c:1228:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1228 | return; | ^~~~~~ monster.c:1481:1: note: declared here 1481 | dropsomething (x,y,monst) | ^~~~~~~~~~~~~ object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c: At top level: monster.c:1511:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1511 | dropgold(amount) | ^~~~~~~~ object.c:1232:17: 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) | ^~~~~~~~~~~ monster.c:1528:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1528 | something(x,y,lev) | ^~~~~~~~~ monster.c: In function ‘something’: object.c:1236:17: 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) | ^~~~~~~~~~~ monster.c:1534:17: 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) | ^~~~~~~~~ object.c:1241:17: 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) | ^~~~~~~~~~~ monster.c: At top level: object.c:1247:73: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1247 | hitp[j][i] = monster[mitem[j][i].mon].hitpoints; | ~~~~~~~~~~~^~~~ monster.c:1560:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1560 | newobject(lev, i) | ^~~~~~~~~ object.c:1249:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1249 | return; | ^~~~~~ scores.c: In function ‘sortboard’: object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ scores.c:468:30: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized] 468 | sco[j].order = pos++; | ~~~~~~~~~~~~~^~~~~~~ scores.c:455:20: note: ‘j’ was declared here 455 | int i, j, pos; | ^ object.c:1254:17: 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:17: 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) | ^~~~~~~~~~~ monster.c:1687:42: warning: missing braces around initializer [-Wmissing-braces] 1687 | static short rustarm[ARMORTYPES][2] = { | ^ object.c:1264:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1264 | return; | ^~~~~~ monster.c:1698:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1698 | spattack(x, xx, yy) | ^~~~~~~~ object.c:1164:1: note: declared here 1164 | read_scroll(typ) | ^~~~~~~~~~~ monster.c: In function ‘spattack’: object.c:1273:17: 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) | ^~~~~~~~~~~ monster.c:1709:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1709 | if (c[CANCELLATION]) | ^ object.c:1278:17: 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:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1298 | c[exten[i]] <<= 1; | ~~~~~^~~ object.c: In function ‘removecurse’: object.c:1337:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1337 | if (c[curse[i]]) c[curse[i]] = 1; | ~~~~~^~~ object.c:1337:41: 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:17: 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:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1349 | return; | ^~~~~~ object.c:1340:1: note: declared here 1340 | opit() | ^~~~ monster.c: At top level: object.c: At top level: object.c:1376:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1376 | obottomless() | ^~~~~~~~~~~ monster.c:1937:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1937 | checkloss(x) | ^~~~~~~~~ object.c:1385:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1385 | oelevator(dir) | ^~~~~~~~~ object.c: In function ‘oelevator’: monster.c:1953:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1953 | annihilate() | ^~~~~~~~~~ monster.c: In function ‘annihilate’: object.c:1391:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1391 | return; | ^~~~~~ object.c:1385:1: note: declared here 1385 | oelevator(dir) | ^~~~~~~~~ monster.c:1964:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1964 | k += monster[*p].experience; | ^~ object.c: At top level: object.c:1417:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1417 | ostatue() | ^~~~~~~ monster.c:1968:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1968 | monster[*p].name); | ^~ 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() | ^~~~~ monster.c:1962:24: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1962 | if (*(p = &mitem[i][j].mon)) /* if a monster there */ | ^ object.c: In function ‘obook’: object.c:1435:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1435 | return; | ^~~~~~ monster.c: At top level: object.c:1424:1: note: declared here 1424 | obook() | ^~~~~ monster.c:1983:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1983 | genmonst() | ^~~~~~~~ monster.c: In function ‘genmonst’: object.c:1440:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1440 | readbook(iarg[playerx][playery]); | ^ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1987:9: note: in expansion of macro ‘cursors’ 1987 | cursors(); | ^~~~~~~ object.c:1440:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1440 | readbook(iarg[playerx][playery]); | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1442:25: note: in expansion of macro ‘forget’ 1442 | forget(); | ^~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ monster.c:1987:9: note: in expansion of macro ‘cursors’ 1987 | cursors(); | ^~~~~~~ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1442:25: 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:25: note: in expansion of macro ‘forget’ 1442 | forget(); | ^~~~~~ monster.c:2001:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2001 | return; | ^~~~~~ header.h:174:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1442:25: note: in expansion of macro ‘forget’ 1442 | forget(); | ^~~~~~ monster.c:1983:1: note: declared here 1983 | genmonst() | ^~~~~~~~ object.c:1443:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1443 | return; | ^~~~~~ monster.c: At top level: object.c:1424:1: note: declared here 1424 | obook() | ^~~~~ monster.c:2012:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2012 | makemonst(lev) | ^~~~~~~~~ object.c:1447:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1447 | if (take(OBOOK,iarg[playerx][playery])==0) | ^ object.c:1447:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1447 | if (take(OBOOK,iarg[playerx][playery])==0) | ^ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1448:33: 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:33: note: in expansion of macro ‘forget’ 1448 | forget(); /* no more book */ | ^~~~~~ monster.c:2044:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2044 | randmonst () | ^~~~~~~~~ monster.c: In function ‘randmonst’: header.h:174:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1448:33: 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:33: note: in expansion of macro ‘forget’ 1448 | forget(); /* no more book */ | ^~~~~~ monster.c:2047:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2047 | return; | ^~~~~~ monster.c:2044:1: note: declared here 2044 | randmonst () | ^~~~~~~~~ object.c:1449:25: 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:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1489 | return; | ^~~~~~ object.c:1478:1: note: declared here 1478 | ocookie() | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1493:25: 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:25: 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:25: 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:25: note: in expansion of macro ‘forget’ 1493 | forget(); /* no more cookie */ | ^~~~~~ object.c:1494:44: 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:66: 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:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1498 | return; | ^~~~~~ object.c:1478:1: note: declared here 1478 | ocookie() | ^~~~~~~ header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1502:49: 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:49: 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:49: 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:49: note: in expansion of macro ‘forget’ 1502 | if (take(OCOOKIE,0)==0) forget(); | ^~~~~~ object.c:1503:25: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1503 | return; | ^~~~~~ monster.c: In function ‘loseint’: monster.c:696:1: warning: control reaches end of non-void function [-Wreturn-type] 696 | } | ^ 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:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1514 | i = iarg[playerx][playery]; | ^ object.c:1514:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1514 | i = iarg[playerx][playery]; | ^ monster.c: In function ‘ifblind’: object.c:1523:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1523 | item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ | ^ monster.c:989:1: warning: control reaches end of non-void function [-Wreturn-type] 989 | } | ^ object.c:1523:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1523 | item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ | ^ object.c:1523:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1523 | item[playerx][playery] = know[playerx][playery] = 0;/*destroy gold*/ | ^ object.c:1523:47: 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:25: 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() | ^~~~~~ monster.c: In function ‘dropgold’: object.c:1631:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1631 | closedoor() | ^~~~~~~~~ object.c: In function ‘closedoor’: monster.c:1518:1: warning: control reaches end of non-void function [-Wreturn-type] 1518 | } | ^ object.c:1636:27: 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() | ^~~~~~~~~ header.h:113:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 113 | do { if (lpnt >= lpend) \ | ^~ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:1639:9: note: in expansion of macro ‘cursors’ 1639 | cursors(); | ^~~~~~~ header.h:115:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 115 | *lpnt++ = CURSOR; \ | ^ header.h:148:30: note: in expansion of macro ‘cursor’ 148 | #define cursors() do { cursor(1,24); } while (0) | ^~~~~~ object.c:1639:9: note: in expansion of macro ‘cursors’ 1639 | cursors(); | ^~~~~~~ object.c:1642:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1642 | i=item[playerx][playery]; | ^ object.c:1642:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1642 | i=item[playerx][playery]; | ^ monster.c: In function ‘checkloss’: object.c:1645:17: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1645 | return; | ^~~~~~ monster.c:1944:1: warning: control reaches end of non-void function [-Wreturn-type] 1944 | } | ^ object.c:1631:1: note: declared here 1631 | closedoor() | ^~~~~~~~~ monster.c: In function ‘annihilate’: header.h:174:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1648:9: note: in expansion of macro ‘forget’ 1648 | forget(); | ^~~~~~ monster.c:1976:1: warning: control reaches end of non-void function [-Wreturn-type] 1976 | } | ^ header.h:174:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 174 | item[playerx][playery] = know[playerx][playery] = 0; \ | ^ object.c:1648:9: 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:9: 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:9: note: in expansion of macro ‘forget’ 1648 | forget(); | ^~~~~~ object.c:1649:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1649 | item[playerx][playery]=OCLOSEDDOOR; | ^ object.c:1649:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1649 | item[playerx][playery]=OCLOSEDDOOR; | ^ object.c:1650:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1650 | iarg[playerx][playery]=0; | ^ object.c:1650:22: 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 | } | ^ player.c: In function ‘enchantarmor’: player.c:673:43: 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:62: warning: array subscript -1 is below array bounds of ‘short int[]’ [-Warray-bounds=] 673 | adjustcvalues(iven[c[which]], ivenarg[c[which]]); /* Surely not? */ | ~~~~~~~^~~~~~~~~~ extern.h:741:32: note: while referencing ‘ivenarg’ 741 | extern short hitp[MAXX][MAXY], ivenarg[], screen[MAXX][MAXY]; | ^~~~~~~ display.c: In function ‘seemagic’: display.c:654:17: warning: ‘number’ may be used uninitialized [-Wmaybe-uninitialized] 654 | draws(0,MAXX,0,number); | ^~~~~~~~~~~~~~~~~~~~~~ display.c:612:15: note: ‘number’ was declared here 612 | int i,number; | ^~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -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 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.BCD3ni + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Ularn + make install DESTDIR=/builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 if test ! -d /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn ; then mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn ; fi cp Umaps Ufortune Uhelp /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn chmod 644 /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn/Umaps /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn/Ufortune \ /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/ularn/Uhelp if test ! -d /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/bin ; then mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/bin ; fi cp Ularn /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64//var/games + touch /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64//var/games/Ularn-scoreboard + desktop-file-install --dir /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/applications /builddir/build/SOURCES/ularn.desktop /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.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-46.fc40.riscv64//usr/share/icons/hicolor/32x32/apps/ + install -p -m 644 /builddir/build/SOURCES/ularn.png /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64//usr/share/icons/hicolor/32x32/apps/ + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 1.5p4-46.fc40 --unique-debug-suffix -1.5p4-46.fc40.riscv64 --unique-debug-src-base ularn-1.5p4-46.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/Ularn find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/ularn-1.5p4-46.fc40.riscv64 726 blocks find-debuginfo: done + /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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j64 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: ularn-1.5p4-46.fc40.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.pCORsX + umask 022 + cd /builddir/build/BUILD + cd Ularn + DOCDIR=/builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + cp -pr /builddir/build/BUILD/Ularn/README /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + cp -pr /builddir/build/BUILD/Ularn/README.spoilers /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + cp -pr /builddir/build/BUILD/Ularn/CHANGES.text /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + cp -pr /builddir/build/BUILD/Ularn/Ularnopts /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/doc/ularn + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.jbFmcm + umask 022 + cd /builddir/build/BUILD + cd Ularn + LICENSEDIR=/builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/licenses/ularn + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/licenses/ularn + cp -pr /builddir/build/BUILD/Ularn/GPL /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64/usr/share/licenses/ularn + RPM_EC=0 ++ jobs -p + exit 0 Provides: application() application(ularn.desktop) config(ularn) = 1.5p4-46.fc40 ularn = 1.5p4-46.fc40 ularn(riscv-64) = 1.5p4-46.fc40 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) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Recommends: group(games) Processing files: ularn-debugsource-1.5p4-46.fc40.riscv64 Provides: ularn-debugsource = 1.5p4-46.fc40 ularn-debugsource(riscv-64) = 1.5p4-46.fc40 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-46.fc40.riscv64 Provides: debuginfo(build-id) = ef72526d1f8e1e971c4a7d5c7b800ace95602c81 ularn-debuginfo = 1.5p4-46.fc40 ularn-debuginfo(riscv-64) = 1.5p4-46.fc40 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-46.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ularn-1.5p4-46.fc40.riscv64 Wrote: /builddir/build/RPMS/ularn-1.5p4-46.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/ularn-debugsource-1.5p4-46.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/ularn-debuginfo-1.5p4-46.fc40.riscv64.rpm RPM build warnings: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Child return code was: 0