<86>Dec 14 06:48:02 userdel[3910633]: delete user 'rooter' <86>Dec 14 06:48:02 userdel[3910633]: removed group 'rooter' owned by 'rooter' <86>Dec 14 06:48:02 groupadd[3910651]: group added to /etc/group: name=rooter, GID=1253 <86>Dec 14 06:48:02 groupadd[3910651]: group added to /etc/gshadow: name=rooter <86>Dec 14 06:48:02 groupadd[3910651]: new group: name=rooter, GID=1253 <86>Dec 14 06:48:02 useradd[3910665]: new user: name=rooter, UID=1253, GID=1253, home=/root, shell=/bin/bash, from=none <86>Dec 14 06:48:02 userdel[3910702]: delete user 'builder' <86>Dec 14 06:48:02 groupadd[3910739]: group added to /etc/group: name=builder, GID=1254 <86>Dec 14 06:48:02 groupadd[3910739]: group added to /etc/gshadow: name=builder <86>Dec 14 06:48:02 groupadd[3910739]: new group: name=builder, GID=1254 <86>Dec 14 06:48:02 useradd[3910767]: new user: name=builder, UID=1254, GID=1254, home=/usr/src, shell=/bin/bash, from=none <13>Dec 14 06:48:07 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncurses++6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncurses++w6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncurses++-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncursesw-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libncurses++w-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: libtic-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:48:07 rpmi: desktop-file-utils-0.26-alt6 sisyphus+331944.100.1.3 1697550035 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/ularn-1.5p4-alt2_45.nosrc.rpm (w1.gzdio) Installing ularn-1.5p4-alt2_45.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.92139 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf Ularn + echo 'Source #0 (Ularn-1.5ishPL4.tar.gz):' Source #0 (Ularn-1.5ishPL4.tar.gz): + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/Ularn-1.5ishPL4.tar.gz + /bin/tar -xf - + cd Ularn + /bin/chmod -c -Rf u+rwX,go-w . + sed -e s#@bindir@#/usr/bin# -e s#@datadir@#/usr/share# -e s#@var@#/var# + chmod +x config.h.SH + echo 'Patch #0 (ularn-build.patch):' Patch #0 (ularn-build.patch): + /usr/bin/patch -p1 patching file extern.h patching file fortune.c patching file header.h patching file io.c patching file main.c patching file Makefile.u.SH patching file savelev.c patching file tok.c + echo 'Patch #1 (ularn-euid.patch):' Patch #1 (ularn-euid.patch): + /usr/bin/patch -p1 patching file main.c + echo 'Patch #2 (ularn-datadir.patch):' Patch #2 (ularn-datadir.patch): + /usr/bin/patch -p1 patching file config.h.SH patching file data.c patching file extern.h patching file header.h patching file main.c + echo 'Patch #3 (ularn-drop-setgid.patch):' Patch #3 (ularn-drop-setgid.patch): + /usr/bin/patch -p1 patching file data.c patching file extern.h patching file header.h patching file main.c patching file scores.c + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.92139 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd Ularn ++ pwd + builddir=/usr/src/RPM/BUILD/Ularn + . ./config.h.SH ++ case $CONFIG in ++ test '!' -f config.sh ++ . ./config.sh +++ hpux=undef +++ linux=define +++ bsd=undef +++ cygwin=undef +++ syserr=define +++ bsdlibs= +++ d_eunice=undef +++ eunicefix=: +++ define=define +++ contains=grep +++ cppstdin=/usr/bin/cpp +++ cppminus= +++ d_ftime=define +++ d_getopt=define +++ d_index=define +++ d_termio=define +++ d_voidsig=define +++ libc=/usr/lib/libc.a +++ mansrc= +++ manext= +++ models=none +++ split= +++ small= +++ medium= +++ large= +++ huge= +++ ccflags= +++ ldflags= +++ cc=gcc +++ n=-n +++ c= +++ package=Ularn +++ spitshell=cat +++ shsharp=true +++ sharpbang='#!' +++ startsh='#!/bin/sh' +++ loclist=' expr sed echo cat rm tr grep ' +++ expr=/usr/bin/expr +++ sed=/bin/sed +++ echo=/bin/echo +++ cat=/bin/cat +++ rm=/bin/rm +++ mv= +++ cp= +++ tail= +++ tr=/usr/bin/tr +++ mkdir= +++ sort= +++ uniq= +++ grep=/bin/grep +++ trylist=' xmkmf imake compress uncompress test Mcc cpp ' +++ test=test +++ inews= +++ egrep= +++ more= +++ pg= +++ Mcc=Mcc +++ vi= +++ mailx= +++ mail= +++ cpp=/usr/bin/cpp +++ perl= +++ compress=/usr/bin/compress +++ uncompress=/usr/bin/uncompress +++ imake=/usr/bin/X11/imake +++ xmkmf=/usr/bin/X11/xmkmf +++ bindir=/usr/bin +++ d_drand48=define +++ d_havetlib=define +++ termlib=-lcurses +++ d_itimer=define +++ d_systime='' +++ d_random=undef +++ defcomp=undef +++ imaketmpl= +++ libdir=/usr/share/ularn +++ scoredir=/var/games +++ mycompress='/usr/bin/compress -c' +++ myuncompress='/usr/bin/uncompress -c' +++ CONFIG=true ++ test undef = define ++ echo 'Extracting config.h (with variable substitutions)' Extracting config.h (with variable substitutions) ++ sed -e 's!^#undef!/\*#undef!' + /usr/src/RPM/BUILD/Ularn/Makefile.u.SH Extracting Makefile.u (with variable substitutions) + cd /usr/src/RPM/BUILD/Ularn + mv Makefile.u Makefile + CC='gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon' + make -j8 make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c bill.c In file included from header.h:2, from bill.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 bill.c:10:1: error: return type defaults to 'int' [-Wimplicit-int] 10 | letter1() | ^~~~~~~ bill.c:37:1: error: return type defaults to 'int' [-Wimplicit-int] 37 | letter2 () | ^~~~~~~ bill.c:58:1: error: return type defaults to 'int' [-Wimplicit-int] 58 | letter3 () | ^~~~~~~ bill.c:76:1: error: return type defaults to 'int' [-Wimplicit-int] 76 | letter4 () | ^~~~~~~ bill.c:95:1: error: return type defaults to 'int' [-Wimplicit-int] 95 | letter5 () | ^~~~~~~ bill.c:116:1: error: return type defaults to 'int' [-Wimplicit-int] 116 | letter6 () | ^~~~~~~ bill.c:146:1: error: return type defaults to 'int' [-Wimplicit-int] 146 | mailbill () | ^~~~~~~~ bill.c: In function 'mailbill': bill.c:151:9: error: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 151 | wait((int *)0); | ^~~~ bill.c: In function 'letter1': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bill.c: In function 'letter3': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bill.c: In function 'letter4': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bill.c: In function 'letter5': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bill.c: In function 'letter6': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bill.c: In function 'mailbill': bill.c:160:33: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 160 | system(buf); | ^~~~~~~~~~~ bill.c:165:1: warning: control reaches end of non-void function [-Wreturn-type] 165 | } | ^ make: *** [Makefile:62: bill.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: *** Waiting for unfinished jobs.... make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c diag.c In file included from header.h:2, from diag.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 diag.c:64:1: error: return type defaults to 'int' [-Wimplicit-int] 64 | diag() | ^~~~ diag.c: In function 'diag': diag.c:69:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 69 | return; | ^~~~~~ diag.c:64:1: note: declared here 64 | diag() | ^~~~ 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 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 diag.c:95:32: warning: array subscript has type 'char' [-Wchar-subscripts] 95 | j, ivendef[iven[j]], iven[j] ); | ~~~~^~~ diag.c:96:56: warning: array subscript has type 'char' [-Wchar-subscripts] 96 | fprintf (dfile, "\t%s", objectname[iven[j]] ); | ~~~~^~~ diag.c:115:26: warning: array subscript has type 'char' [-Wchar-subscripts] 115 | levelname[level], level); | ^ diag.c: At top level: diag.c:187:1: error: return type defaults to 'int' [-Wimplicit-int] 187 | diagdrawscreen() | ^~~~~~~~~~~~~~ diag.c: In function 'diagdrawscreen': diag.c:194:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 194 | if (k = mitem[j][i].mon) | ^ diag.c:197:73: warning: array subscript has type 'char' [-Wchar-subscripts] 197 | fprintf(dfile, "%c", objnamelist[item[j][i]]); | ~~~~~~~^~~ diag.c:200:1: warning: control reaches end of non-void function [-Wreturn-type] 200 | } | ^ make: *** [Makefile:62: diag.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c create.c In file included from header.h:2, from create.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 create.c:14:1: error: return type defaults to 'int' [-Wimplicit-int] 14 | makeplayer () | ^~~~~~~~~~ create.c:52:1: error: return type defaults to 'int' [-Wimplicit-int] 52 | newcavelevel (x) | ^~~~~~~~~~~~ create.c: In function 'newcavelevel': create.c:57:21: warning: array subscript has type 'char' [-Wchar-subscripts] 57 | if (beenhere[level]) | ^ create.c:64:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 64 | return; | ^~~~~~ create.c:52:1: note: declared here 52 | newcavelevel (x) | ^~~~~~~~~~~~ create.c: At top level: create.c:90:1: error: return type defaults to 'int' [-Wimplicit-int] 90 | makemaze (lev) | ^~~~~~~~ create.c: In function 'makemaze': create.c:99:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 99 | return; | ^~~~~~ create.c:90:1: note: declared here 90 | makemaze (lev) | ^~~~~~~~ create.c:114:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 114 | return; | ^~~~~~ create.c:90:1: note: declared here 90 | makemaze (lev) | ^~~~~~~~ create.c: At top level: create.c:163:1: error: return type defaults to 'int' [-Wimplicit-int] 163 | eat (xx,yy) | ^~~ create.c:228:1: error: return type defaults to 'int' [-Wimplicit-int] 228 | cannedlevel (lev) | ^~~~~~~~~~~ create.c:310:1: error: return type defaults to 'int' [-Wimplicit-int] 310 | treasureroom(lv) | ^~~~~~~~~~~~ create.c:332:1: error: return type defaults to 'int' [-Wimplicit-int] 332 | troom(lv,xsize,ysize,tx,ty,glyph) | ^~~~~ create.c:391:1: error: return type defaults to 'int' [-Wimplicit-int] 391 | makeobject (j) | ^~~~~~~~~~ create.c: In function 'makeobject': create.c:405:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 405 | return; | ^~~~~~ create.c:391:1: note: declared here 391 | makeobject (j) | ^~~~~~~~~~ create.c: At top level: create.c:621:1: error: return type defaults to 'int' [-Wimplicit-int] 621 | fillmroom(n,what,arg) | ^~~~~~~~~ create.c:630:1: error: return type defaults to 'int' [-Wimplicit-int] 630 | froom(n,itm,arg) | ^~~~~ create.c:641:1: error: return type defaults to 'int' [-Wimplicit-int] 641 | fillroom (what,arg) | ^~~~~~~~ create.c:668:1: error: return type defaults to 'int' [-Wimplicit-int] 668 | fillmonst (what) | ^~~~~~~~~ create.c:693:1: error: return type defaults to 'int' [-Wimplicit-int] 693 | sethp (flg) | ^~~~~ create.c: In function 'sethp': create.c:704:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 704 | return; | ^~~~~~ create.c:693:1: note: declared here 693 | sethp (flg) | ^~~~~ create.c: At top level: create.c:747:1: error: return type defaults to 'int' [-Wimplicit-int] 747 | checkgen () | ^~~~~~~~ create.c: In function 'checkgen': create.c:753:49: warning: array subscript has type 'char' [-Wchar-subscripts] 753 | if ((monster[mitem[x][y].mon].flags&FL_GENOCIDED) != 0) | ~~~~~~~~~~~^~~~ create.c: In function 'makeplayer': create.c:40:1: warning: control reaches end of non-void function [-Wreturn-type] 40 | } | ^ create.c: In function 'eat': create.c:206:1: warning: control reaches end of non-void function [-Wreturn-type] 206 | } | ^ create.c: In function 'treasureroom': create.c:325:1: warning: control reaches end of non-void function [-Wreturn-type] 325 | } | ^ create.c: In function 'troom': create.c:383:1: warning: control reaches end of non-void function [-Wreturn-type] 383 | } | ^ create.c: In function 'fillmroom': create.c:628:1: warning: control reaches end of non-void function [-Wreturn-type] 628 | } | ^ create.c: In function 'froom': create.c:635:1: warning: control reaches end of non-void function [-Wreturn-type] 635 | } | ^ create.c: In function 'fillroom': create.c:662:1: warning: control reaches end of non-void function [-Wreturn-type] 662 | } | ^ create.c: In function 'checkgen': create.c:755:1: warning: control reaches end of non-void function [-Wreturn-type] 755 | } | ^ make: *** [Makefile:62: create.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c display.c In file included from header.h:2, from display.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 display.c:20:1: error: return type defaults to 'int' [-Wimplicit-int] 20 | bottomdo() | ^~~~~~~~ display.c: In function 'bottomdo': display.c:25:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 25 | return; | ^~~~~~ display.c:20:1: note: declared here 20 | bottomdo() | ^~~~~~~~ display.c: At top level: display.c:38:1: error: return type defaults to 'int' [-Wimplicit-int] 38 | bottomgold() { botsub(GOLD,72,19,"%-8d"); } | ^~~~~~~~~~ display.c: In function 'bottomgold': 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"); } | ^~~~~~ 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"); } | ^~~~~~ display.c: At top level: display.c:41:1: error: return type defaults to 'int' [-Wimplicit-int] 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^~~~~~~~~~ display.c: In function 'bot_spellx': 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"); } | ^~~~~~ 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"); } | ^~~~~~ display.c: At top level: display.c:43:1: error: return type defaults to 'int' [-Wimplicit-int] 43 | bot_linex() | ^~~~~~~~~ display.c: In function 'bot_linex': 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: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); | ^~~~~~ 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); | ^~~~~~ 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 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 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); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ display.c:86:49: warning: array subscript has type 'char' [-Wchar-subscripts] 86 | lprintf("%2s", levelname[level]); | ^ 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); | ^~~~~~ 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); | ^~~~~~ display.c:96:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 96 | return; | ^~~~~~ display.c:43:1: note: declared here 43 | bot_linex() | ^~~~~~~~~ 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"); | ^~~~~~ 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) \ | ^~ 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)"); | ^~~~~~ 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)"); | ^~~~~~ 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) "); | ^~~~~~ 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) "); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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: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"); | ^~~~~~ 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); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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"); | ^~~~~~ 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: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"); | ^~~~~~ 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"); | ^~~~~~ 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; \ | ^ 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: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"); | ^~~~~~ 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: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); | ^~~~~~ 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); | ^~~~~~ display.c:139:49: warning: array subscript has type 'char' [-Wchar-subscripts] 139 | lprintf("%2s", levelname[level]); | ^ 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"); | ^~~~~~ display.c: At top level: display.c:150:1: error: return type defaults to 'int' [-Wimplicit-int] 150 | bot_hpx() | ^~~~~~~ display.c:166:16: warning: missing braces around initializer [-Wmissing-braces] 166 | } bot_data[] = { | ^ display.c:186:1: error: return type defaults to 'int' [-Wimplicit-int] 186 | botside() | ^~~~~~~ display.c: In function 'botside': 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); | ^~~~~~ 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: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: display.c:211:1: error: return type defaults to 'int' [-Wimplicit-int] 211 | bothp() | ^~~~~ display.c: In function 'bothp': display.c:216:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 216 | return; | ^~~~~~ display.c:211:1: note: declared here 211 | bothp() | ^~~~~ 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 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 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); | ^~~~~~ 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); | ^~~~~~ display.c: At top level: display.c:233:1: error: return type defaults to 'int' [-Wimplicit-int] 233 | draws(xmin,xmax,ymin,ymax) | ^~~~~ display.c: In function 'draws': 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); | ^~~~~~~ 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); | ^~~~~~~ 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); | ^~~~~~~ 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); | ^~~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ display.c: At top level: display.c:275:1: error: return type defaults to 'int' [-Wimplicit-int] 275 | drawscreen() | ^~~~~~~~~~ display.c: In function 'drawscreen': 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); | ^~~~~~ 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); | ^~~~~~ display.c:296:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 296 | if (k=mitem[j][i].mon) { | ^ display.c:300:59: warning: array subscript has type 'char' [-Wchar-subscripts] 300 | screen[j][i]=monstnamelist[mimicmonst]; | ^ display.c:302:65: warning: array subscript has type 'char' [-Wchar-subscripts] 302 | screen[j][i]=objnamelist[item[j][i]]; | ~~~~~~~^~~ 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) \ | ^~ display.c:327:33: note: in expansion of macro 'cursor' 327 | cursor(j+1, 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:327:33: note: in expansion of macro 'cursor' 327 | cursor(j+1, i+1); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ display.c: At top level: display.c:385:1: error: return type defaults to 'int' [-Wimplicit-int] 385 | showcell(x,y) | ^~~~~~~~ display.c: In function 'showcell': display.c:391:25: warning: "/*" within comment [-Wcomment] 391 | return; /* see nothing if blind */ 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); | ^~~~~~ 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); | ^~~~~~ 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));} | ^~ 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));} | ^~ 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));} | ^~ 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));} | ^~ display.c: At top level: display.c:471:1: error: return type defaults to 'int' [-Wimplicit-int] 471 | show1cell(x,y) | ^~~~~~~~~ display.c: In function 'show1cell': display.c:475:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 475 | return; /* see nothing if blind */ | ^~~~~~ display.c:471:1: note: declared here 471 | show1cell(x,y) | ^~~~~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ 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));} | ^~ 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));} | ^~ 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));} | ^~ 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));} | ^~ display.c: At top level: display.c:515:1: error: return type defaults to 'int' [-Wimplicit-int] 515 | showplayer() | ^~~~~~~~~~ display.c: In function 'showplayer': 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: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); | ^~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ display.c: At top level: display.c:540:1: error: return type defaults to 'int' [-Wimplicit-int] 540 | moveplayer(dir) | ^~~~~~~~~~ display.c: In function 'moveplayer': 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); | ^~~~~~ 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); | ^~~~~~ display.c: At top level: display.c:609:1: error: return type defaults to 'int' [-Wimplicit-int] 609 | seemagic(arg) | ^~~~~~~~ display.c: In function 'seemagic': 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); | ^~~~~~ 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); | ^~~~~~ display.c:629:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 629 | return; | ^~~~~~ display.c:609:1: note: declared here 609 | seemagic(arg) | ^~~~~~~~ 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); | ^~~~~~ 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); | ^~~~~~ display.c:655:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 655 | return; | ^~~~~~ display.c:609:1: note: declared here 609 | seemagic(arg) | ^~~~~~~~ display.c: At top level: display.c:699:1: error: return type defaults to 'int' [-Wimplicit-int] 699 | seepage() | ^~~~~~~ display.c: In function 'bottomgold': display.c:38:43: warning: control reaches end of non-void function [-Wreturn-type] 38 | bottomgold() { botsub(GOLD,72,19,"%-8d"); } | ^ display.c: In function 'bot_spellx': display.c:41:43: warning: control reaches end of non-void function [-Wreturn-type] 41 | bot_spellx() { botsub(SPELLS,9,18,"%2d"); } | ^ display.c: In function 'bot_hpx': display.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] 158 | } | ^ display.c: In function 'botside': display.c:209:1: warning: control reaches end of non-void function [-Wreturn-type] 209 | } | ^ display.c: In function 'draws': display.c:265:1: warning: control reaches end of non-void function [-Wreturn-type] 265 | } | ^ display.c: In function 'drawscreen': display.c:378:1: warning: control reaches end of non-void function [-Wreturn-type] 378 | } | ^ display.c: In function 'showcell': display.c:464:1: warning: control reaches end of non-void function [-Wreturn-type] 464 | } | ^ display.c: In function 'showplayer': display.c:525:1: warning: control reaches end of non-void function [-Wreturn-type] 525 | } | ^ display.c: In function 'seepage': display.c:711:1: warning: control reaches end of non-void function [-Wreturn-type] 711 | } | ^ make: *** [Makefile:62: display.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c data.c In file included from header.h:2, from data.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 data.c:134:41: warning: "/*" within comment [-Wcomment] 134 | /*char mitem[MAXX][MAXY]; /* monster item array */ make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c action.c In file included from header.h:2, from action.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 action.c:7:1: error: return type defaults to 'int' [-Wimplicit-int] 7 | run (dir) | ^~~ action.c:30:1: error: return type defaults to 'int' [-Wimplicit-int] 30 | wield () | ^~~~~ action.c: In function 'wield': action.c:35:52: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 35 | if ((i = whatitem("wield"))==ESC) return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:42:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 42 | return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:44:61: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 44 | else if (iven[i-'a']==0) { ydhi(i); return; } | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:45:67: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 45 | else if (iven[i-'a']==OPOTION) { ycwi(i); return; } | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:46:67: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 46 | else if (iven[i-'a']==OSCROLL) { ycwi(i); return; } | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:49:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 49 | return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c:54:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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']]); | ~~~~^~~~~~~ action.c:65:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 65 | return; | ^~~~~~ action.c:30:1: note: declared here 30 | wield () | ^~~~~ action.c: At top level: action.c:74:1: error: return type defaults to 'int' [-Wimplicit-int] 74 | ydhi (x) | ^~~~ action.c: In function 'ydhi': 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(); | ^~~~~~~ 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(); | ^~~~~~~ action.c: At top level: action.c:81:1: error: return type defaults to 'int' [-Wimplicit-int] 81 | ycwi (x) | ^~~~ action.c: In function 'ycwi': 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(); | ^~~~~~~ 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(); | ^~~~~~~ action.c: At top level: action.c:91:1: error: return type defaults to 'int' [-Wimplicit-int] 91 | wear () | ^~~~ action.c: In function 'wear': action.c:96:51: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 96 | if ((i = whatitem("wear"))==ESC) return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:102:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 102 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:114:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 114 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:118:88: warning: array subscript has type 'char' [-Wchar-subscripts] 118 | lprintf("\nYou put on your %s", objectname[iven[i-'a']]); | ~~~~^~~~~~~ action.c:125:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 125 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:130:49: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 130 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:135:49: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 135 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c:146:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 146 | return; | ^~~~~~ action.c:91:1: note: declared here 91 | wear () | ^~~~ action.c: At top level: action.c:157:1: error: return type defaults to 'int' [-Wimplicit-int] 157 | dropobj () | ^~~~~~~ action.c: In function 'dropobj': action.c:163:18: warning: array subscript has type 'char' [-Wchar-subscripts] 163 | p = &item[playerx][playery]; | ^ action.c:163:27: warning: array subscript has type 'char' [-Wchar-subscripts] 163 | p = &item[playerx][playery]; | ^ action.c:166:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 166 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c:175:49: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 175 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c:180:72: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 180 | if ((amt=readnum((long)c[GOLD])) <= 0) return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c:183:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 183 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c:215:45: warning: array subscript has type 'char' [-Wchar-subscripts] 215 | iarg[playerx][playery]=i; | ^ action.c:215:54: warning: array subscript has type 'char' [-Wchar-subscripts] 215 | iarg[playerx][playery]=i; | ^ action.c:217:37: warning: array subscript has type 'char' [-Wchar-subscripts] 217 | know[playerx][playery]=0; | ^ action.c:217:46: warning: array subscript has type 'char' [-Wchar-subscripts] 217 | know[playerx][playery]=0; | ^ action.c:219:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 219 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c:222:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 222 | return; | ^~~~~~ action.c:157:1: note: declared here 157 | dropobj () | ^~~~~~~ action.c: At top level: action.c:230:1: error: return type defaults to 'int' [-Wimplicit-int] 230 | readscr () | ^~~~~~~ action.c: In function 'readscr': action.c:235:51: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 235 | if ((i = whatitem("read"))==ESC) return; | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ action.c:243:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 243 | return; | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ action.c:248:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 248 | return; | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ action.c:252:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 252 | return; | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ action.c:254:70: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 254 | lprcat("\nThere's nothing on it to read."); return; | ^~~~~~ action.c:230:1: note: declared here 230 | readscr () | ^~~~~~~ action.c: At top level: action.c:263:1: error: return type defaults to 'int' [-Wimplicit-int] 263 | eatcookie () | ^~~~~~~~~ action.c: In function 'eatcookie': action.c:270:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 270 | return; | ^~~~~~ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ action.c:284:21: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 284 | return; | ^~~~~~ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ action.c:286:48: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 286 | if (iven[i-'a']==0) { ydhi(i); return; } | ^~~~~~ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ action.c:287:51: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 287 | lprcat("\nYou can't eat that!"); return; | ^~~~~~ action.c:263:1: note: declared here 263 | eatcookie () | ^~~~~~~~~ action.c:271:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 271 | if (i != '.') | ^ action.c: At top level: action.c:295:1: error: return type defaults to 'int' [-Wimplicit-int] 295 | quaff () | ^~~~~ action.c: In function 'quaff': action.c:301:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 301 | return; | ^~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ action.c:309:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 309 | return; | ^~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ action.c:313:41: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 313 | return; | ^~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ action.c:316:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 316 | return; | ^~~~~~ action.c:295:1: note: declared here 295 | quaff () | ^~~~~ action.c: At top level: action.c:322:1: error: return type defaults to 'int' [-Wimplicit-int] 322 | qwhatitem () | ^~~~~~~~~ action.c: In function 'qwhatitem': 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) | ^~~~~~ action.c:327:9: note: in expansion of macro 'cursors' 327 | cursors(); | ^~~~~~~ action.c: At top level: action.c:350:1: error: return type defaults to 'int' [-Wimplicit-int] 350 | whatitem (str) | ^~~~~~~~ action.c: In function 'whatitem': 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(); | ^~~~~~~ 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(); | ^~~~~~~ action.c: At top level: action.c:476:1: error: return type defaults to 'int' [-Wimplicit-int] 476 | do_create() | ^~~~~~~~~ action.c: In function 'do_create': 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(); | ^~~~~~~ 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(); | ^~~~~~~ action.c:487:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 487 | case ESC: return; | ^~~~~~ 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) \ | ^~ 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; \ | ^ 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(); | ^~~~~~~ action.c:497:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 497 | return; | ^~~~~~ 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) \ | ^~ 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(); | ^~~~~~~ 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(); | ^~~~~~~ action.c:507:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 507 | return; | ^~~~~~ 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) \ | ^~ 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: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(); | ^~~~~~~ action.c:520:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 520 | return; | ^~~~~~ 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) \ | ^~ 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; \ | ^ 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(); | ^~~~~~~ action.c:531:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 531 | return; | ^~~~~~ action.c:476:1: note: declared here 476 | do_create() | ^~~~~~~~~ action.c: In function 'run': action.c:25:1: warning: control reaches end of non-void function [-Wreturn-type] 25 | } | ^ action.c: In function 'ydhi': action.c:79:1: warning: control reaches end of non-void function [-Wreturn-type] 79 | } | ^ action.c: In function 'ycwi': action.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] 86 | } | ^ make: *** [Makefile:62: action.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c fortune.c In file included from header.h:2, from fortune.c:2: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' make: Entering directory '/usr/src/RPM/BUILD/Ularn' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fcommon -c player.c In file included from header.h:2, from player.c:23: config.h:23:21: warning: "/*" within comment [-Wcomment] 23 | /*#undef EUNICE /**/ config.h:24:18: warning: "/*" within comment [-Wcomment] 24 | /*#undef VMS /**/ config.h:107:21: warning: "/*" within comment [-Wcomment] 107 | /*#undef RANDOM /**/ config.h:113:27: warning: "/*" within comment [-Wcomment] 113 | /*#undef DEF_COMPRESS /**/ config.h:145: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 player.c:39:1: error: return type defaults to 'int' [-Wimplicit-int] 39 | raiselevel () | ^~~~~~~~~~ player.c:53:1: error: return type defaults to 'int' [-Wimplicit-int] 53 | loselevel () | ^~~~~~~~~ player.c:67:1: error: return type defaults to 'int' [-Wimplicit-int] 67 | raiseexperience (x) | ^~~~~~~~~~~~~~~ player.c: In function 'raiseexperience': 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(); | ^~~~~~~ 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(); | ^~~~~~~ player.c: At top level: player.c:135:1: error: return type defaults to 'int' [-Wimplicit-int] 135 | loseexperience (x) | ^~~~~~~~~~~~~~ player.c: In function 'loseexperience': 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(); | ^~~~~~~ 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(); | ^~~~~~~ player.c: At top level: player.c:170:1: error: return type defaults to 'int' [-Wimplicit-int] 170 | losehp (x) | ^~~~~~ player.c:183:1: error: return type defaults to 'int' [-Wimplicit-int] 183 | losemhp (x) | ^~~~~~~ player.c:203:1: error: return type defaults to 'int' [-Wimplicit-int] 203 | raisehp (x) | ^~~~~~~ player.c:210:1: error: return type defaults to 'int' [-Wimplicit-int] 210 | raisemhp (x) | ^~~~~~~~ player.c:226:1: error: return type defaults to 'int' [-Wimplicit-int] 226 | raisespells (x) | ^~~~~~~~~~~ player.c:233:1: error: return type defaults to 'int' [-Wimplicit-int] 233 | raisemspells (x) | ^~~~~~~~~~~~ player.c:249:1: error: return type defaults to 'int' [-Wimplicit-int] 249 | losespells (x) | ^~~~~~~~~~ player.c:256:1: error: return type defaults to 'int' [-Wimplicit-int] 256 | losemspells (x) | ^~~~~~~~~~~ player.c:271:1: error: return type defaults to 'int' [-Wimplicit-int] 271 | positionplayer () | ^~~~~~~~~~~~~~ player.c: In function 'positionplayer': player.c:276:21: warning: array subscript has type 'char' [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ player.c:276:30: warning: array subscript has type 'char' [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ player.c:276:48: warning: array subscript has type 'char' [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ player.c:276:57: warning: array subscript has type 'char' [-Wchar-subscripts] 276 | while ((item[playerx][playery] || mitem[playerx][playery].mon) && (try)) | ^ player.c: At top level: player.c:291:1: error: return type defaults to 'int' [-Wimplicit-int] 291 | recalc () | ^~~~~~ player.c:423:1: error: return type defaults to 'int' [-Wimplicit-int] 423 | quit () | ^~~~ player.c: In function 'quit': 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; \ | ^ 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(); | ^~~~~~~ player.c:436:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 436 | return; | ^~~~~~ player.c:423:1: note: declared here 423 | quit () | ^~~~ player.c:441:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 441 | return; | ^~~~~~ player.c:423:1: note: declared here 423 | quit () | ^~~~ player.c: At top level: player.c:472:1: error: return type defaults to 'int' [-Wimplicit-int] 472 | more() | ^~~~ player.c:487:1: error: return type defaults to 'int' [-Wimplicit-int] 487 | take (itm, arg) | ^~~~ player.c: In function 'take': 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(); | ^~~~~~~ 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(); | ^~~~~~~ player.c: At top level: player.c:583:1: error: return type defaults to 'int' [-Wimplicit-int] 583 | drop_object (k) | ^~~~~~~~~~~ player.c: In function 'drop_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) | ^~~~~~ 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) | ^~~~~~ player.c:591:9: note: in expansion of macro 'cursors' 591 | cursors(); | ^~~~~~~ player.c:596:17: warning: array subscript has type 'char' [-Wchar-subscripts] 596 | if (item[playerx][playery] == OPIT) | ^ player.c:596:26: warning: array subscript has type 'char' [-Wchar-subscripts] 596 | if (item[playerx][playery] == OPIT) | ^ player.c:598:22: warning: array subscript has type 'char' [-Wchar-subscripts] 598 | else if (item[playerx][playery]) { | ^ player.c:598:31: warning: array subscript has type 'char' [-Wchar-subscripts] 598 | else if (item[playerx][playery]) { | ^ player.c:607:21: warning: array subscript has type 'char' [-Wchar-subscripts] 607 | item[playerx][playery] = itm; | ^ player.c:607:30: warning: array subscript has type 'char' [-Wchar-subscripts] 607 | item[playerx][playery] = itm; | ^ player.c:608:21: warning: array subscript has type 'char' [-Wchar-subscripts] 608 | iarg[playerx][playery] = ivenarg[k]; | ^ player.c:608:30: warning: array subscript has type 'char' [-Wchar-subscripts] 608 | iarg[playerx][playery] = ivenarg[k]; | ^ player.c:624:13: warning: array subscript has type 'char' [-Wchar-subscripts] 624 | know[playerx][playery] = 0; | ^ player.c:624:22: warning: array subscript has type 'char' [-Wchar-subscripts] 624 | know[playerx][playery] = 0; | ^ player.c: At top level: player.c:634:1: error: return type defaults to 'int' [-Wimplicit-int] 634 | enchantarmor (how) | ^~~~~~~~~~~~ player.c: In function 'enchantarmor': 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; \ | ^ 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(); | ^~~~~~~ player.c:647:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 647 | return; | ^~~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ player.c:664:76: warning: array subscript has type 'char' [-Wchar-subscripts] 664 | lprintf("\nYour %s glows briefly.", objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ player.c:665:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 665 | return; | ^~~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ 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(); | ^~~~~~~ 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(); | ^~~~~~~ player.c:670:56: warning: array subscript has type 'char' [-Wchar-subscripts] 670 | objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ player.c:674:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 674 | return; | ^~~~~~ player.c:634:1: note: declared here 634 | enchantarmor (how) | ^~~~~~~~~~~~ player.c:678:65: warning: array subscript has type 'char' [-Wchar-subscripts] 678 | lprintf("\nYour %s glows for a moment.", objectname[iven[c[which]]]); | ~~~~^~~~~~~~~~ player.c:638:13: warning: unused variable 'tmp' [-Wunused-variable] 638 | int tmp; | ^~~ player.c: At top level: player.c:685:1: error: return type defaults to 'int' [-Wimplicit-int] 685 | enchweapon (how) | ^~~~~~~~~~ player.c: In function 'enchweapon': 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(); | ^~~~~~~ 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(); | ^~~~~~~ player.c:694:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 694 | return; | ^~~~~~ player.c:685:1: note: declared here 685 | enchweapon (how) | ^~~~~~~~~~ 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: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(); | ^~~~~~~ player.c: At top level: player.c:733:1: error: return type defaults to 'int' [-Wimplicit-int] 733 | pocketfull () | ^~~~~~~~~~ player.c:747:1: error: return type defaults to 'int' [-Wimplicit-int] 747 | nearbymonst () | ^~~~~~~~~~~ player.c:762:1: error: return type defaults to 'int' [-Wimplicit-int] 762 | stealsomething (x,y) | ^~~~~~~~~~~~~~ player.c: In function 'stealsomething': player.c:782:33: warning: array subscript has type 'char' [-Wchar-subscripts] 782 | beenhere[level]++; | ^ player.c: At top level: player.c:792:1: error: return type defaults to 'int' [-Wimplicit-int] 792 | emptyhanded () | ^~~~~~~~~~~ player.c:806:1: error: return type defaults to 'int' [-Wimplicit-int] 806 | creategem () | ^~~~~~~~~ player.c:835:1: error: return type defaults to 'int' [-Wimplicit-int] 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c: In function 'adjustcvalues': player.c:877:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 877 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c:880:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 880 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c:883:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 883 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c:886:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 886 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c:889:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 889 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, 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) | ^~~~~~ player.c:892:17: note: in expansion of macro 'cursors' 892 | 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) | ^~~~~~ player.c:892:17: note: in expansion of macro 'cursors' 892 | 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) | ^~~~~~ 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; \ | ^ 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(); | ^~~~~~~ player.c:900:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 900 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c:903:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 903 | return; | ^~~~~~ player.c:835:1: note: declared here 835 | adjustcvalues (itm, arg) | ^~~~~~~~~~~~~ player.c: At top level: player.c:919:1: error: return type defaults to 'int' [-Wimplicit-int] 919 | gettokstr (str) | ^~~~~~~~~ player.c:946:1: error: return type defaults to 'int' [-Wimplicit-int] 946 | getpassword () | ^~~~~~~~~~~ player.c:971:1: error: return type defaults to 'int' [-Wimplicit-int] 971 | getyn () | ^~~~~ player.c:987:1: error: return type defaults to 'int' [-Wimplicit-int] 987 | packweight () | ^~~~~~~~~~ player.c: In function 'raiselevel': player.c:43:1: warning: control reaches end of non-void function [-Wreturn-type] 43 | } | ^ player.c: In function 'loselevel': player.c:57:1: warning: control reaches end of non-void function [-Wreturn-type] 57 | } | ^ player.c: In function 'raiseexperience': player.c:125:1: warning: control reaches end of non-void function [-Wreturn-type] 125 | } | ^ player.c: In function 'loseexperience': player.c:158:1: warning: control reaches end of non-void function [-Wreturn-type] 158 | } | ^ player.c: In function 'losehp': player.c:181:1: warning: control reaches end of non-void function [-Wreturn-type] 181 | } | ^ player.c: In function 'losemhp': player.c:192:1: warning: control reaches end of non-void function [-Wreturn-type] 192 | } | ^ player.c: In function 'raisehp': player.c:208:1: warning: control reaches end of non-void function [-Wreturn-type] 208 | } | ^ player.c: In function 'raisemhp': player.c:215:1: warning: control reaches end of non-void function [-Wreturn-type] 215 | } | ^ player.c: In function 'raisespells': player.c:231:1: warning: control reaches end of non-void function [-Wreturn-type] 231 | } | ^ player.c: In function 'raisemspells': player.c:238:1: warning: control reaches end of non-void function [-Wreturn-type] 238 | } | ^ player.c: In function 'losespells': player.c:254:1: warning: control reaches end of non-void function [-Wreturn-type] 254 | } | ^ player.c: In function 'losemspells': player.c:263:1: warning: control reaches end of non-void function [-Wreturn-type] 263 | } | ^ player.c: In function 'positionplayer': player.c:286:1: warning: control reaches end of non-void function [-Wreturn-type] 286 | } | ^ player.c: In function 'recalc': player.c:415:1: warning: control reaches end of non-void function [-Wreturn-type] 415 | } | ^ player.c: In function 'more': player.c:481:1: warning: control reaches end of non-void function [-Wreturn-type] 481 | } | ^ player.c: In function 'creategem': player.c:829:1: warning: control reaches end of non-void function [-Wreturn-type] 829 | } | ^ player.c: In function 'gettokstr': player.c:939:1: warning: control reaches end of non-void function [-Wreturn-type] 939 | } | ^ player.c: In function 'getpassword': player.c:955:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 955 | fgets(gpwbuf,BUFSIZ-1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:62: player.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Ularn' error: Bad exit status from /usr/src/tmp/rpm-tmp.92139 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.92139 (%build) Command exited with non-zero status 1 0.45user 0.16system 0:00.32elapsed 188%CPU (0avgtext+0avgdata 19200maxresident)k 0inputs+0outputs (0major+28502minor)pagefaults 0swaps hsh-rebuild: rebuild of `ularn-1.5p4-alt2_45.src.rpm' failed. Command exited with non-zero status 1 5.44user 2.23system 0:10.89elapsed 70%CPU (0avgtext+0avgdata 132076maxresident)k 328inputs+0outputs (0major+182852minor)pagefaults 0swaps