>>> Building on exopi-5 under games/slash,no_x11 DIST = [games/slash:nethack-322.tgz;games/slash:Slash-Unix.tar.gz;games/slash:nh-3.2.2-3.2.3.diff] FULLPKGNAME = slash-3.2.2.e8p8-no_x11 RDEPENDS = [games/hackdata] distfiles size=2984835 >>> Running build in games/slash,no_x11 at 1711446059.90 ===> games/slash,no_x11 ===> Building from scratch slash-3.2.2.e8p8-no_x11 ===> Verifying specs: c curses ===> found c.99.0 curses.15.0 ===> Checking files for slash-3.2.2.e8p8-no_x11 `/exopi-cvs/ports/distfiles/Slash-Unix.tar.gz' is up to date. `/exopi-cvs/ports/distfiles/nethack-322.tgz' is up to date. `/exopi-cvs/ports/distfiles/nh-3.2.2-3.2.3.diff' is up to date. >> (SHA256) Slash-Unix.tar.gz: OK >> (SHA256) nethack-322.tgz: OK >> (SHA256) nh-3.2.2-3.2.3.diff: OK ===> Extracting for slash-3.2.2.e8p8-no_x11 ===> Patching for slash-3.2.2.e8p8-no_x11 ===> Applying distribution patches for slash-3.2.2.e8p8-no_x11 ===> Applying distribution patch nh-3.2.2-3.2.3.diff Hmm... Looks like a new-style context diff to me... The text leading up to this was: -------------------------- |December 10, 1999 | |This is a patch that will take an unmodified 3.2.2 distribution |and make it Year-2000 ready, as well as fix several bugs that could |cause the game to crash. | | |*** ../NetHack322/include/patchlevel.h Mon Dec 9 17:22:52 1996 |--- include/patchlevel.h Wed Dec 8 21:02:28 1999 -------------------------- Patching file include/patchlevel.h using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 16. Hunk #3 succeeded at 24. Hunk #4 succeeded at 38. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/end.c Mon Nov 4 09:01:04 1996 |--- src/end.c Wed Dec 8 19:49:42 1999 -------------------------- Patching file src/end.c using Plan A... Hunk #1 succeeded at 535. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/mail.c Mon Dec 9 17:44:04 1996 |--- src/mail.c Wed Dec 8 21:00:32 1999 -------------------------- Patching file src/mail.c using Plan A... Hunk #1 succeeded at 434. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/mkmaze.c Mon Nov 4 09:01:26 1996 |--- src/mkmaze.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/mkmaze.c using Plan A... Hunk #1 succeeded at 919. Hunk #2 succeeded at 1023. Hunk #3 succeeded at 1325. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/music.c Tue Mar 12 10:03:48 1996 |--- src/music.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/music.c using Plan A... Hunk #1 succeeded at 244. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/pager.c Tue May 14 15:01:10 1996 |--- src/pager.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/pager.c using Plan A... Hunk #1 succeeded at 507. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/pray.c Tue Aug 13 12:30:56 1996 |--- src/pray.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/pray.c using Plan A... Hunk #1 succeeded at 248. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/sp_lev.c Mon Nov 25 17:43:02 1996 |--- src/sp_lev.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/sp_lev.c using Plan A... Hunk #1 succeeded at 739. Hunk #2 succeeded at 786. Hunk #3 succeeded at 1061. Hunk #4 succeeded at 1077. Hunk #5 succeeded at 1101. Hunk #6 succeeded at 1164. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/trap.c Mon Oct 21 21:41:38 1996 |--- src/trap.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/trap.c using Plan A... Hunk #1 succeeded at 1793. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/version.c Mon Jun 24 12:35:24 1996 |--- src/version.c Wed Dec 8 19:49:44 1999 -------------------------- Patching file src/version.c using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 82. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/hacklib.c Mon May 6 16:06:24 1996 |--- src/hacklib.c Sun Nov 28 11:55:32 1999 -------------------------- Patching file src/hacklib.c using Plan A... Hunk #1 succeeded at 35. Hunk #2 succeeded at 396. Hunk #3 succeeded at 458. Hunk #4 succeeded at 478. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/src/topten.c Mon Nov 25 17:41:40 1996 |--- src/topten.c Sun Nov 28 11:55:32 1999 -------------------------- Patching file src/topten.c using Plan A... Hunk #1 succeeded at 48. Hunk #2 succeeded at 126. Hunk #3 succeeded at 140. Hunk #4 succeeded at 153. Hunk #5 succeeded at 169. Hunk #6 succeeded at 277. Hunk #7 succeeded at 458. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/sys/mac/macwin.c Mon Jun 17 17:34:30 1996 |--- sys/mac/macwin.c Sun Nov 28 11:55:32 1999 -------------------------- Patching file sys/mac/macwin.c using Plan A... Hunk #1 succeeded at 2389. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/sys/msdos/Makefile.GCC Sat Oct 26 13:53:18 1996 |--- sys/msdos/Makefile.GCC Sun Nov 28 12:25:52 1999 -------------------------- Patching file sys/msdos/Makefile.GCC using Plan A... Hunk #1 succeeded at 754. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** ../NetHack322/README Mon Nov 25 17:42:18 1996 |--- README Wed Dec 8 21:35:14 1999 -------------------------- Patching file README using Plan A... Hunk #1 succeeded at 170. Hmm... Ignoring the trailing garbage. done # Two patches failure, not to worry 1 out of 3 hunks failed--saving rejects to include/patchlevel.h.rej 1 out of 14 hunks failed--saving rejects to sys/msdos/Makefile.GCC.rej *** Error 1 in target 'post-distpatch' (ignored) ===> Applying OpenBSD patch patch-include_config_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/config.h.orig Fri Apr 14 15:10:44 2000 |+++ include/config.h Fri Apr 14 15:14:40 2000 -------------------------- Patching file include/config.h using Plan A... Hunk #1 succeeded at 258. Hunk #2 succeeded at 271. Hunk #3 succeeded at 299. Hunk #4 succeeded at 434. Hunk #5 succeeded at 456. done ===> Applying OpenBSD patch patch-include_global_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Bump QBUFSZ to cope for large terminals and avoid stack buffer |overflows. | |--- include/global.h.orig Thu Nov 24 03:49:47 2016 |+++ include/global.h Thu Nov 24 03:50:14 2016 -------------------------- Patching file include/global.h using Plan A... Hunk #1 succeeded at 297. done ===> Applying OpenBSD patch patch-include_patchlevel_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/patchlevel.h.orig Fri Apr 14 15:10:24 2000 |+++ include/patchlevel.h Fri Apr 14 15:10:50 2000 -------------------------- Patching file include/patchlevel.h using Plan A... Hunk #1 succeeded at 2. done ===> Applying OpenBSD patch patch-include_system_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/system.h.orig Sun Dec 30 13:56:29 2007 |+++ include/system.h Sun Dec 30 13:56:29 2007 -------------------------- Patching file include/system.h using Plan A... Hunk #1 succeeded at 511. Hunk #2 succeeded at 521. done ===> Applying OpenBSD patch patch-include_termcap_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/termcap.h.orig Fri Mar 20 19:25:57 2015 |+++ include/termcap.h Fri Mar 20 19:26:11 2015 -------------------------- Patching file include/termcap.h using Plan A... Hunk #1 succeeded at 43. done ===> Applying OpenBSD patch patch-include_unixconf_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/unixconf.h.orig Tue Dec 10 21:20:08 1996 |+++ include/unixconf.h Thu Mar 19 22:54:05 2015 -------------------------- Patching file include/unixconf.h using Plan A... Hunk #1 succeeded at 19. Hunk #2 succeeded at 37. Hunk #3 succeeded at 46. Hunk #4 succeeded at 120. Hunk #5 succeeded at 131. Hunk #6 succeeded at 269. Hunk #7 succeeded at 293. done ===> Applying OpenBSD patch patch-src_botl_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/botl.c.orig Sat Mar 21 10:22:30 2015 |+++ src/botl.c Sat Mar 21 10:25:35 2015 -------------------------- Patching file src/botl.c using Plan A... Hunk #1 succeeded at 543. Hunk #2 succeeded at 571. done ===> Applying OpenBSD patch patch-src_dokick_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/dokick.c.orig Sat Mar 21 10:26:12 2015 |+++ src/dokick.c Sat Mar 21 10:27:00 2015 -------------------------- Patching file src/dokick.c using Plan A... Hunk #1 succeeded at 76. done ===> Applying OpenBSD patch patch-src_shk_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/shk.c.orig Sat Mar 21 10:27:30 2015 |+++ src/shk.c Sat Mar 21 10:28:08 2015 -------------------------- Patching file src/shk.c using Plan A... Hunk #1 succeeded at 4577. done ===> Applying OpenBSD patch patch-sys_share_unixtty_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/share/unixtty.c.orig Sat Mar 21 10:16:45 2015 |+++ sys/share/unixtty.c Sat Mar 21 10:18:17 2015 -------------------------- Patching file sys/share/unixtty.c using Plan A... Hunk #1 succeeded at 120. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_dat Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.dat.orig Fri Apr 14 15:10:48 2000 |+++ sys/unix/Makefile.dat Fri Apr 14 15:10:49 2000 -------------------------- Patching file sys/unix/Makefile.dat using Plan A... Hunk #1 succeeded at 52. Hunk #2 succeeded at 86. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_doc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.doc.orig Tue Dec 10 21:20:08 1996 |+++ sys/unix/Makefile.doc Fri Apr 14 15:10:49 2000 -------------------------- Patching file sys/unix/Makefile.doc using Plan A... Hunk #1 succeeded at 30. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_src Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.src.orig Tue Dec 10 21:20:09 1996 |+++ sys/unix/Makefile.src Sun Dec 30 13:56:29 2007 -------------------------- Patching file sys/unix/Makefile.src using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 125. Hunk #3 succeeded at 145. Hunk #4 succeeded at 163. Hunk #5 succeeded at 193. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_top Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.top.orig Sun Dec 30 13:56:29 2007 |+++ sys/unix/Makefile.top Sun Dec 30 14:15:13 2007 -------------------------- Patching file sys/unix/Makefile.top using Plan A... Hunk #1 succeeded at 13. Hunk #2 succeeded at 34. Hunk #3 succeeded at 66. Hunk #4 succeeded at 83. Hunk #5 succeeded at 146. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_utl Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.utl.orig Tue Dec 10 21:20:11 1996 |+++ sys/unix/Makefile.utl Fri Apr 14 15:10:49 2000 -------------------------- Patching file sys/unix/Makefile.utl using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 79. done ===> Applying OpenBSD patch patch-sys_unix_unixunix_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/unixunix.c.orig Tue Jun 18 00:34:55 1996 |+++ sys/unix/unixunix.c Fri Apr 14 15:10:49 2000 -------------------------- Patching file sys/unix/unixunix.c using Plan A... Hunk #1 succeeded at 38. done ===> Applying OpenBSD patch patch-util_makedefs_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- util/makedefs.c.orig Thu Mar 19 22:28:24 2015 |+++ util/makedefs.c Thu Mar 19 22:30:27 2015 -------------------------- Patching file util/makedefs.c using Plan A... Hunk #1 succeeded at 526. Hunk #2 succeeded at 557. done ===> Applying OpenBSD patch patch-win_X11_winX_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- win/X11/winX.c.orig Tue Jun 18 00:35:23 1996 |+++ win/X11/winX.c Fri Apr 14 15:10:49 2000 -------------------------- Patching file win/X11/winX.c using Plan A... Hunk #1 succeeded at 921. done ===> Applying OpenBSD patch patch-win_tty_termcap_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- win/tty/termcap.c.orig Wed Sep 25 02:37:10 1996 |+++ win/tty/termcap.c Wed May 19 09:29:56 2010 -------------------------- Patching file win/tty/termcap.c using Plan A... Hunk #1 succeeded at 821. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for slash-3.2.2.e8p8-no_x11 ===> Configuring for slash-3.2.2.e8p8-no_x11 Lucky you! Symbolic links. ===> Building for slash-3.2.2.e8p8-no_x11 ( cd src ; /usr/bin/make ) touch ../include/vmsconf.h touch ../include/os2conf.h touch ../include/pcconf.h touch ../include/tosconf.h touch ../include/amiconf.h touch ../include/macconf.h touch ../include/global.h touch ../include/config.h touch ../include/eshk.h touch ../include/vault.h touch ../include/epri.h cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c monst.c In file included from monst.c:5: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from monst.c:5: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from monst.c:5: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from monst.c:5: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from monst.c:5: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from monst.c:5: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ 50 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c objects.c In file included from objects.c:8: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from objects.c:8: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from objects.c:8: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from objects.c:8: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from objects.c:8: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from objects.c:8: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from objects.c:9: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 52 warnings generated. cc -O2 -pipe -I../include -c makedefs.c makedefs.c:8:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment for debugging info */ ^ In file included from makedefs.c:10: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from makedefs.c:10: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from makedefs.c:10: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from makedefs.c:10: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from makedefs.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from makedefs.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from makedefs.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from makedefs.c:17: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ makedefs.c:225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ makedefs.c:254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_makedefs(options) ^ makedefs.c:322:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *xcrypt(str) ^ makedefs.c:354:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Data); ^~~~~~~~~~~~~~ makedefs.c:354:14: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Data); ^ "%s", makedefs.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] version_id_string(outbuf, build_date) ^ makedefs.c:543:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:543:14: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:801:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] d_filter(line) ^ makedefs.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] h_filter(line) ^ makedefs.c:1111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_control(s) ^ makedefs.c:1126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] without_control(s) ^ makedefs.c:1151:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Data); ^~~~~~~~~~~~~~ makedefs.c:1151:14: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Data); ^ "%s", makedefs.c:1182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ranged_attk(ptr) /* returns TRUE if monster can attack at range */ ^ makedefs.c:1201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mstrength(ptr) ^ makedefs.c:1276:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:1276:17: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:1317:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:1317:14: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:1355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qt_comment(s) ^ makedefs.c:1364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qt_control(s) ^ makedefs.c:1372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_hdr(c) ^ makedefs.c:1385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] known_id(c) ^ makedefs.c:1393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_id(c) ^ makedefs.c:1410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] known_msg(c, s) ^ makedefs.c:1425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_msg(s) ^ makedefs.c:1444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_qt_control(s) ^ makedefs.c:1475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_qt_text(s) ^ makedefs.c:1609:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] limit(name,pref) /* limit a name to 30 characters length */ ^ makedefs.c:1638:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:1638:14: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:1739:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmpdup(str) ^ makedefs.c:1750:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eos(str) ^ makedefs.c:1793:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:1793:17: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:1818:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Fprintf(ofp,Dont_Edit_Code); ^~~~~~~~~~~~~~ makedefs.c:1818:17: note: treat the string as an argument to avoid this Fprintf(ofp,Dont_Edit_Code); ^ "%s", makedefs.c:2059:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_path(you_row,you_col,y2,x2) ^ 85 warnings generated. cc -o makedefs makedefs.o ../src/monst.o ../src/objects.o makedefs.c(makedefs.o:(do_objs)): warning: sprintf() is often misused, please use snprintf() makedefs.c(makedefs.o:(do_date)): warning: strcpy() is almost always misused, please use strlcpy() ./makedefs -p touch ../include/youprop.h ./makedefs -o touch ../include/decl.h touch ../include/display.h touch ../include/hack.h cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c allmain.c In file included from allmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from allmain.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c alloc.c In file included from alloc.c:11: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from alloc.c:11: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from alloc.c:11: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from alloc.c:11: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from alloc.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from alloc.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ alloc.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] alloc(lth) ^ alloc.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fmt_ptr(ptr, buf) ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c apply.c In file included from apply.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from apply.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from apply.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ apply.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_camera(obj) ^ apply.c:77:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_towel(obj) ^ apply.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] its_dead(rx, ry, resp) ^ apply.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_stethoscope(obj) ^ apply.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_whistle(obj) ^ apply.c:276:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_magic_whistle(obj) ^ apply.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] um_dist(x,y,n) ^ apply.c:323:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o_unleash(otmp) /* otmp is about to be destroyed or stolen */ ^ apply.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_unleash(mtmp) /* mtmp is about to die, or become untame */ ^ apply.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_leash(obj) ^ apply.c:451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_mleash(mtmp) /* assuming mtmp->mleashed has been checked */ ^ apply.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_leash(x, y) ^ apply.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wield_tool(obj) ^ apply.c:576:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_mirror(obj) ^ apply.c:754:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_bell(obj) ^ apply.c:813:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:813:13: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:838:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] case 0: pline(nothing_happens); break; ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:838:20: note: treat the string as an argument to avoid this case 0: pline(nothing_happens); break; ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:850:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:850:14: note: treat the string as an argument to avoid this else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:863:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_candelabrum(obj) ^ apply.c:916:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_candle(obj) ^ apply.c:928:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(no_elbow_room); ^~~~~~~~~~~~~ apply.c:928:7: note: treat the string as an argument to avoid this You(no_elbow_room); ^ "%s", apply.c:997:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] snuff_candle(otmp) /* call in drop, throw, and put in box, etc. */ ^ apply.c:1024:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] snuff_lit(obj) ^ apply.c:1044:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_lamp(obj) ^ apply.c:1098:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] light_cocktail(obj) ^ apply.c:1104:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(no_elbow_room); ^~~~~~~~~~~~~ apply.c:1104:10: note: treat the string as an argument to avoid this You(no_elbow_room); ^ "%s", apply.c:1169:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1169:17: note: treat the string as an argument to avoid this else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:1174:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1174:15: note: treat the string as an argument to avoid this } else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:1284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tinnable(corpse) ^ apply.c:1293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_tinning_kit(obj) ^ apply.c:1359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_unicorn_horn(obj) ^ apply.c:1431:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1431:12: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:1509:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_figurine(obj) ^ apply.c:1549:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_grease(obj) ^ apply.c:1611:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_trap(otmp) ^ apply.c:1660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_whip(obj) ^ apply.c:1711:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(msg_slipsfree); ^~~~~~~~~~~~~ apply.c:1711:11: note: treat the string as an argument to avoid this pline(msg_slipsfree); ^ "%s", apply.c:1756:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] else pline(msg_snap); ^~~~~~~~ apply.c:1756:16: note: treat the string as an argument to avoid this else pline(msg_snap); ^ "%s", apply.c:1756:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else pline(msg_snap); ^ apply.c:1777:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(msg_slipsfree); ^~~~~~~~~~~~~ apply.c:1777:11: note: treat the string as an argument to avoid this pline(msg_slipsfree); ^ "%s", apply.c:1778:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(msg_snap); ^~~~~~~~ apply.c:1778:16: note: treat the string as an argument to avoid this } else pline(msg_snap); ^ "%s", apply.c:1846:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(msg_slipsfree); ^~~~~~~~~~~~~ apply.c:1846:11: note: treat the string as an argument to avoid this pline(msg_slipsfree); ^ "%s", apply.c:1853:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(msg_snap); ^~~~~~~~ apply.c:1853:11: note: treat the string as an argument to avoid this pline(msg_snap); ^ "%s", apply.c:1852:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ apply.c:1859:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(msg_snap); ^~~~~~~~ apply.c:1859:9: note: treat the string as an argument to avoid this pline(msg_snap); ^ "%s", apply.c:1868:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_break_wand(obj) ^ apply.c:2030:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2030:10: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ apply.c:2249:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2249:13: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ 100 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c artifact.c In file included from artifact.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from artifact.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ artifact.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_artifacts(fd) ^ artifact.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_artifacts(fd) ^ artifact.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] artiname(artinum) ^ artifact.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_artifact(otmp, alignment) ^ artifact.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] artifact_name(name, otyp) ^ artifact.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exist_artifact(otyp, name) ^ artifact.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] artifact_exists(otmp, name, mod) ^ artifact.c:269:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spec_ability(otmp, abil) ^ artifact.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restrict_name(otmp, name) /* returns 1 if name is restricted for otmp->otyp */ ^ artifact.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attacks(adtyp, otmp) ^ artifact.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] defends(adtyp, otmp) ^ artifact.c:334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] protects(adtyp, otmp) ^ artifact.c:350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_artifact_intrinsic(otmp,on,wp_mask) ^ artifact.c:466:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] touch_artifact(obj,mon) ^ artifact.c:528:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spec_applies(weap, mtmp) ^ artifact.c:595:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spec_abon(otmp, mon) ^ artifact.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spec_dbon(otmp, mon, tmp) ^ artifact.c:633:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] artifact_hit(magr, mdef, otmp, dmgptr, dieroll) ^ artifact.c:1139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arti_invoke(obj) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c attrib.c In file included from attrib.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from attrib.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ attrib.c:10:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment for debugging info */ ^ attrib.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adjattrib(ndx, incr, msgflg) ^ attrib.c:348:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gainstr(otmp, incr) ^ attrib.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] losestr(num) /* may kill you; cause may be poison or monster like 'a' */ ^ attrib.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] change_luck(n) ^ attrib.c:388:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stone_luck(parameter) ^ attrib.c:447:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exercise(i, inc_or_dec) ^ attrib.c:697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_attr(np) ^ attrib.c:823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adjabil(oldlevel,newlevel) ^ attrib.c:939:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] acurr(x) ^ attrib.c:989:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adjalign(n) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ball.c In file included from ball.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ball.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ball.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ball.c:34:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else if (flags.verbose) ^ ball.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_bc(already_blind) ^ ball.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_bc(before, control, ballx, bally, chainx, chainy) ^ ball.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drag_ball(x, y, bc_control, ballx, bally, chainx, chainy, cause_delay) ^ ball.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop_ball(x, y) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c bones.c In file included from bones.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from bones.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from bones.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ bones.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] no_bones_level(lev) ^ bones.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goodfruit(id) ^ bones.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resetobjs(ochain,restore) ^ bones.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop_upon_death(mtmp, cont) ^ bones.c:166:49: warning: '/*' within block comment [-Wcomment] /* (!rn2(2) && rn2(depth(&u.uz))) /* fewer ghosts on low levels */ ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c botl.c In file included from botl.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from botl.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from botl.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ botl.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rank_array(pc) ^ botl.c:306:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xlev_to_rank(xlev) ^ botl.c:322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rank_of(lev, pc, female) ^ botl.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] title_to_mon(str, rank_indx, title_length) ^ botl.c:427:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Sprintf(nb = eos(nb), mbot); ^~~~ botl.c:427:25: note: treat the string as an argument to avoid this Sprintf(nb = eos(nb), mbot); ^ "%s", botl.c:429:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Sprintf(nb = eos(nb), rank()); ^~~~~~ botl.c:429:25: note: treat the string as an argument to avoid this Sprintf(nb = eos(nb), rank()); ^ "%s", 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c cmd.c In file included from cmd.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from cmd.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ cmd.c:7:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment for debugging */ ^ cmd.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_occupation(fn, txt, xtime) ^ cmd.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pushch(ch) ^ cmd.c:262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savech(ch) ^ cmd.c:507:16: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) ^ ~~ cmd.c:507:16: note: add parentheses after the '!' to evaluate the comparison first if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) ^ ( ) cmd.c:507:16: note: add parentheses around left hand side expression to silence this warning if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) ^ ( ) cmd.c:507:29: warning: result of comparison of constant 165 with boolean expression is always false [-Wtautological-constant-out-of-range-compare] if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ cmd.c:883:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enlght_line(start, middle, end) ^ cmd.c:893:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enlightenment(final) ^ cmd.c:1364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] count_obj(chain, total_count, total_size, top, recurse) ^ cmd.c:1387:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_chain(win, src, chain, total_count, total_size) ^ cmd.c:1405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_invent_chain(win, src, chain, total_count, total_size) ^ cmd.c:1425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] contained(win, src, total_count, total_size) ^ cmd.c:1451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_chain(win, src, chain, total_count, total_size) ^ cmd.c:1547:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rhack(cmd) ^ cmd.c:1699:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xytod(x, y) /* convert an x,y pair into a direction code */ ^ cmd.c:1711:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dtoxy(cc,dd) /* convert a direction code into an x,y pair */ ^ cmd.c:1721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] movecmd(sym) /* also sets u.dz, but returns false for <> */ ^ cmd.c:1741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getdir(s) ^ cmd.c:1783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isok(x,y) ^ cmd.c:1796:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] click_to_cmd(x, y, mod) ^ cmd.c:1873:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(in_line); ^~~~~~~ cmd.c:1873:10: note: treat the string as an argument to avoid this pline(in_line); ^ "%s", 73 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dbridge.c In file included from dbridge.c:13: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dbridge.c:13: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dbridge.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_pool(x,y) ^ dbridge.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_lava(x,y) ^ dbridge.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_ice(x,y) ^ dbridge.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_drawbridge_wall(x,y) ^ dbridge.c:112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_db_wall(x,y) ^ dbridge.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_drawbridge(x,y) ^ dbridge.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_wall_for_db(x,y) ^ dbridge.c:169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_drawbridge(x,y,dir,flag) ^ dbridge.c:230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_at(x, y) ^ dbridge.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_to_e(mtmp, x, y, etmp) ^ dbridge.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_to_e(etmp) ^ dbridge.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_entity(x, y, etmp) ^ dbridge.c:300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_nam(etmp) ^ dbridge.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] E_phrase(etmp, verb) ^ dbridge.c:371:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_survives_at(etmp, x, y) ^ dbridge.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_died(etmp, dest, how) ^ dbridge.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] automiss(etmp) ^ dbridge.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_missed(etmp, chunks) ^ dbridge.c:495:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_jumps(etmp) ^ dbridge.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_entity(etmp) ^ dbridge.c:745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_drawbridge(x,y) ^ dbridge.c:797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] open_drawbridge(x,y) ^ dbridge.c:835:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy_drawbridge(x,y) ^ 75 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c decl.c In file included from decl.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from decl.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from decl.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c detect.c In file included from detect.c:10: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from detect.c:10: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from detect.c:10: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ detect.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o_in(obj, oclass) ^ detect.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_dknown_of(obj) ^ detect.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_map_spot(x, y, oclass) ^ detect.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_stale_map(oclass) ^ detect.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gold_detect(sobj) ^ detect.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] food_detect(sobj) ^ detect.c:275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] object_detect(detector, class) ^ detect.c:436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monster_detect(otmp, mclass) ^ detect.c:476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sense_trap(trap, x, y, src_cursed) ^ detect.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] trap_detect(sobj) ^ detect.c:531:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else found = TRUE; ^ detect.c:538:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else found = TRUE; ^ detect.c:577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] level_distance(where) ^ detect.c:619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_crystal_ball(obj) ^ detect.c:734:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] show_map_spot(x, y) ^ detect.c:806:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cvt_sdoor_to_door(lev) ^ detect.c:825:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findone(zx,zy,num) ^ detect.c:861:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] openone(zx,zy,num) ^ detect.c:940:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dosearch0(aflag) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dig.c In file included from dig.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dig.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dig.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dig.c:7:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* turn on for diagnostics */ ^ dig.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkcavepos(x, y, dist, waslit, rockit) ^ dig.c:77:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkcavearea(rockit) ^ dig.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dig_typ(x, y) ^ dig.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dig_check(madeby, verbose, x, y) ^ dig.c:318:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(digtxt) pline(digtxt); /* after newsym */ ^~~~~~ dig.c:318:20: note: treat the string as an argument to avoid this if(digtxt) pline(digtxt); /* after newsym */ ^ "%s", dig.c:380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fillholetyp(x,y) ^ dig.c:413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] digactualhole(x, y, madeby, ttyp) ^ dig.c:565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dighole(pit_only) ^ dig.c:680:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_pick_axe(obj) ^ dig.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mdig_tunnel(mtmp) ^ dig.c:1024:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bury_an_obj(otmp) ^ dig.c:1078:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bury_objs(x, y) ^ dig.c:1097:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unearth_objs(x, y) ^ dig.c:1130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rot_organic(arg, timeout) ^ dig.c:1145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rot_corpse(arg, timeout) ^ 68 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c display.c In file included from display.c:116: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from display.c:116: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from display.c:116: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from display.c:116: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from display.c:116: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from display.c:116: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from display.c:116: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ display.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] vobj_at(x,y) ^ display.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] map_background(x, y, show) ^ display.c:192:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] map_trap(trap, show) ^ display.c:211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] map_object(obj, show) ^ display.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unmap_object(x, y) ^ display.c:276:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void map_location(x,y,show) ^ display.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] display_monster(x, y, mon, in_sight, worm_tail) ^ display.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] feel_location(x, y) ^ display.c:497:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newsym(x,y) ^ display.c:616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shieldeff(x,y) ^ display.c:655:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmp_at(x, y) ^ display.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] swallowed(first) ^ display.c:782:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] under_water(mode) ^ display.c:827:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] under_ground(mode) ^ display.c:990:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] show_glyph(x,y,glyph) ^ display.c:1081:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] row_refresh(start,stop,y) ^ display.c:1104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flush_screen(cursor_on_u) ^ display.c:1150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back_to_glyph(x,y) ^ display.c:1244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] swallow_to_glyph(mnum, loc) ^ display.c:1270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zapdir_to_glyph(dx, dy, beam_type) ^ display.c:1290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] glyph_at(x, y) ^ display.c:1302:22: warning: '/*' within block comment [-Wcomment] /*#define WA_VERBOSE /* give (x,y) locations for all "bad" spots */ ^ display.c:1348:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_pos(x, y, which) ^ display.c:1361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] more_than_one(x, y, a, b, c) ^ display.c:1375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_twall(x0,y0, x1,y1, x2,y2, x3,y3) ^ display.c:1393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_wall(x, y, horiz) ^ display.c:1416:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_corn(x1,y1, x2,y2, x3,y3, x4,y4) ^ display.c:1445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_crosswall(x, y) ^ display.c:1563:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_seenv(lev, x0, y0, x, y) ^ display.c:1630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] t_warn(lev) ^ display.c:1659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wall_angle(lev) ^ 83 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dlb.c In file included from dlb.c:5: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dlb.c:5: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dlb.c:5: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dlb.c:5: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dlb.c:5: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dlb.c:5: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ 50 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c do.c In file included from do.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from do.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from do.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ do.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boulder_hits_pool(otmp, rx, ry, pushing) ^ do.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flooreffects(obj,x,y,verb) ^ do.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doaltarobj(obj) /* obj is an object dropped on an altar */ ^ do.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] trycall(obj) ^ do.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dosinkring(obj) /* obj is a ring being dropped over a kitchen sink */ ^ do.c:391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] canletgo(obj,word) ^ do.c:432:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop(obj) ^ do.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dropx(obj) ^ do.c:494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dropy(obj) ^ do.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] menu_drop(retry) ^ do.c:793:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goto_level(newlevel, at_stairs, falling, portal) ^ do.c:1108:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (mesg) pline(mesg); ^~~~ do.c:1108:22: note: treat the string as an argument to avoid this if (mesg) pline(mesg); ^ "%s", do.c:1221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] schedule_goto(tolev, at_stairs, falling, portal_flag, pre_msg, post_msg) ^ do.c:1256:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (dfr_pre_msg) pline(dfr_pre_msg); ^~~~~~~~~~~ do.c:1256:29: note: treat the string as an argument to avoid this if (dfr_pre_msg) pline(dfr_pre_msg); ^ "%s", do.c:1266:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (dfr_post_msg) pline(dfr_post_msg); ^~~~~~~~~~~~ do.c:1266:30: note: treat the string as an argument to avoid this if (dfr_post_msg) pline(dfr_post_msg); ^ "%s", do.c:1283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] revive_corpse(corpse) ^ do.c:1339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] revive_mon(arg, timeout) ^ do.c:1401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_wounded_legs(side, timex) ^ 70 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c do_name.c In file included from do_name.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from do_name.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ do_name.c:12:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getpos(cc,force,goal) ^ do_name.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] christen_monst(mtmp, name) ^ do_name.c:237:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_oname(obj) ^ do_name.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] replobj(obj, oextra_size, oextra_src, oname_size, name) ^ do_name.c:360:24: warning: '/*' within block comment [-Wcomment] /* obfree(obj, otmp); /* now unnecessary: no pointers on bill */ ^ do_name.c:366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] oname(obj, name) ^ do_name.c:443:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docall(obj) ^ do_name.c:512:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] x_monnam(mtmp, article, adjective, called) ^ do_name.c:621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] l_monnam(mtmp) ^ do_name.c:631:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_nam(mtmp) ^ do_name.c:638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Monnam(mtmp) ^ do_name.c:649:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_monnam(mtmp) ^ do_name.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Adjmonnam(mtmp, adj) ^ do_name.c:676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] a_monnam(mtmp) ^ do_name.c:683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Amonnam(mtmp) ^ do_name.c:781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] self_pronoun(str, pronoun) ^ do_name.c:835:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hcolor(colorpref) ^ 69 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c do_wear.c In file included from do_wear.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from do_wear.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ do_wear.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] off_msg(otmp) ^ do_wear.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] on_msg(otmp) ^ do_wear.c:668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ring_on(obj) ^ do_wear.c:800:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ring_off_or_gone(obj,gone) ^ do_wear.c:904:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ring_off(obj) ^ do_wear.c:911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ring_gone(obj) ^ do_wear.c:918:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Blindf_on(otmp) ^ do_wear.c:939:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Blindf_off(otmp) ^ do_wear.c:965:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] donning(otmp) ^ do_wear.c:1129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursed(otmp) ^ do_wear.c:1144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] armoroff(otmp) ^ do_wear.c:1196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] already_wearing(cc) ^ do_wear.c:1566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] erode_armor(acid_dmg) ^ do_wear.c:1614:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] select_off(otmp) ^ do_wear.c:1830:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] menu_remarm(retry) ^ do_wear.c:1872:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy_arm(atmp) ^ do_wear.c:1923:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adj_abon(otmp, delta) ^ 69 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dog.c In file included from dog.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dog.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dog.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dog.c:15:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initedog(mtmp) ^ dog.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_familiar(otmp,x,y) ^ dog.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_arrive(mtmp, with_you) ^ dog.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_catchup_elapsed_time(mtmp, nmv) ^ dog.c:413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] keepdogs(pets_only) ^ dog.c:505:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] migrate_to_level(mtmp, tolev, xyloc, cc) ^ dog.c:567:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dogfood(mon,obj) ^ dog.c:655:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tamedog(mtmp, obj) ^ dog.c:746:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int make_pet_minion(mnum,alignment) ^ dog.c:748:10: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'aligntyp' (aka 'signed char') declared in a previous prototype [-Wknr-promoted-parameter] aligntyp alignment; ^ ../include/extern.h:386:43: note: previous declaration is here E int FDECL(make_pet_minion, (int,aligntyp)); ^ dog.c:777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] abuse_dog(mtmp) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dogmove.c In file included from dogmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dogmove.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dogmove.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DROPPABLES(mon) ^ dogmove.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursed_object_at(mtmp, x, y) ^ dogmove.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_nutrition(mtmp, obj) ^ dogmove.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_eat(mtmp, obj, x, y, devour) ^ dogmove.c:197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_hunger(mtmp, edog) ^ dogmove.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_invent(mtmp, edog, udist) ^ dogmove.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_goal(mtmp, edog, after, udist, whappr) ^ dogmove.c:467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dog_move(mtmp, after) ^ dogmove.c:753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wantdoor(x, y, distance) ^ dogmove.c:757:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register ndist; ~~~~~~~~ ^ int 62 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dokick.c In file included from dokick.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dokick.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dokick.c:28:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kickdmg(mon, clumsy) ^ dokick.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kick_monster(x, y) ^ dokick.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ghitm(mtmp, gold) ^ dokick.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kick_object(x, y) ^ dokick.c:526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kickstr(buf) ^ dokick.c:953:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop_to(cc, loc) ^ dokick.c:986:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] impact_drop(missile, x, y, dlev) ^ dokick.c:1106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ship_object(otmp, x, y, shop_floor_obj) ^ dokick.c:1235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] otransit_msg(otmp, nodrop, num) ^ dokick.c:1258:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(obuf); ^~~~ dokick.c:1258:12: note: treat the string as an argument to avoid this pline(obuf); ^ "%s", dokick.c:1266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] down_gate(x, y) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dothrow.c In file included from dothrow.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dothrow.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dothrow.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitfloor(obj) ^ dothrow.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hurtle(dx, dy, range) ^ dothrow.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_shop_obj(obj, x, y, broken) ^ dothrow.c:297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toss_up(obj, hitsroof) ^ dothrow.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] throwit(obj) ^ dothrow.c:617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] omon_adj(mon, obj, mon_notices) ^ dothrow.c:662:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thitmonst(mon, obj) ^ dothrow.c:847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gem_accept(mon, obj) ^ dothrow.c:914:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(!Blind) pline(buf); ^~~ dothrow.c:914:19: note: treat the string as an argument to avoid this if(!Blind) pline(buf); ^ "%s", dothrow.c:952:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hero_breaks(obj, x, y, from_invent) ^ dothrow.c:970:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breaks(obj, x, y) ^ dothrow.c:989:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breakobj(obj, x, y, heros_fault, from_invent) ^ dothrow.c:1018:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ dothrow.c:1056:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breaktest(obj) ^ dothrow.c:1081:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breakmsg(obj, in_view) ^ dothrow.c:1119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] throw_gold(obj) ^ 68 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c drawing.c In file included from drawing.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from drawing.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ drawing.c:605:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] def_char_to_objclass(ch) ^ drawing.c:619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] def_char_to_monclass(ch) ^ drawing.c:629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] assign_graphics(graph_chars, glth, maxlen, offset) ^ drawing.c:641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch_graphics(gr_set_flag) ^ drawing.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] assign_rogue_graphics(is_rlevel) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c dungeon.c In file included from dungeon.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from dungeon.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ dungeon.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_dungeon(fd, perform_write, free_data) ^ dungeon.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_dungeon(fd) ^ dungeon.c:177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fread(ptr, size, nitems, stream) ^ dungeon.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dname_to_dnum(s) ^ dungeon.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_level(s) ^ dungeon.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_branch(s, pd) ^ dungeon.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parent_dnum(s, pd) ^ dungeon.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] level_range(dgn, base, rand, chain, pd, adjusted_base) ^ dungeon.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parent_dlevel(s, pd) ^ dungeon.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] correct_branch_type(tbr) ^ dungeon.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] insert_branch(new_branch, extract_first) ^ dungeon.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_branch(dgn, child_entry_level, pd) ^ dungeon.c:426:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_level(new_lev) ^ dungeon.c:448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_level(dgn, proto_index, pd) ^ dungeon.c:480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] possible_places(idx, map, pd) ^ dungeon.c:512:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pick_level(map, nth) ^ dungeon.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_level(proto_index, pd) ^ dungeon.c:864:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dunlev(lev) /* return the level number for lev in *this* dungeon */ ^ dungeon.c:871:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dunlevs_in_dungeon(lev) /* return the lowest level number for *this* dungeon*/ ^ dungeon.c:881:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] real_dunlevs_in_dungeon(lev) /* return the lowest level number for *this* dungeon*/ ^ dungeon.c:889:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deepest_lev_reached(noquest) /* return the lowest level explored in the game*/ ^ dungeon.c:924:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ledger_no(lev) ^ dungeon.c:949:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ledger_to_dnum(ledgerno) ^ dungeon.c:967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ledger_to_dlev(ledgerno) ^ dungeon.c:979:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] depth(lev) ^ dungeon.c:986:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] on_level(lev1, lev2) /* are "lev1" and "lev2" actually the same? */ ^ dungeon.c:997:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Is_special(lev) ^ dungeon.c:1013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Is_branchlev(lev) ^ dungeon.c:1029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_level(at_stairs ) ^ dungeon.c:1047:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prev_level(at_stairs) ^ dungeon.c:1064:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_on_newpos(x, y) ^ dungeon.c:1119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] On_stairs(x, y) ^ dungeon.c:1130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Is_botlevel(lev) ^ dungeon.c:1137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Can_dig_down(lev) ^ dungeon.c:1150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Can_fall_thru(lev) ^ dungeon.c:1163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Can_rise_up(x, y, lev) ^ dungeon.c:1187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_level(newlevel, levnum) ^ dungeon.c:1238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_quest(lev) /* are you in the quest dungeon? */ ^ dungeon.c:1248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_mines(lev) /* are you in the mines dungeon? */ ^ dungeon.c:1255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_spiders(lev) /* are you in the spider dungeon? */ ^ dungeon.c:1270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dungeon_branch(s) ^ dungeon.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] at_dgn_entrance(s) ^ dungeon.c:1306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_V_tower(lev) /* is `lev' part of Vlad's tower? */ ^ dungeon.c:1313:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] On_W_tower_level(lev) /* is `lev' a level containing the Wizard's tower? */ ^ dungeon.c:1322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_W_tower(x, y, lev) /* is of `lev' inside the Wizard's tower? */ ^ dungeon.c:1344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] In_hell(lev) /* are you in one of the Hell levels? */ ^ dungeon.c:1354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_hell(lev) /* sets *lev to be the gateway to Gehennom... */ ^ dungeon.c:1362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goto_hell(at_stairs, falling) /* go directly to hell... */ ^ dungeon.c:1372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] assign_level(dest, src) /* equivalent to dest = source */ ^ dungeon.c:1380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] assign_rnd_level(dest, src, range) /* dest = src + rn1(range) */ ^ dungeon.c:1397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] induced_align(pct) ^ dungeon.c:1417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Invocation_lev(lev) ^ dungeon.c:1443:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lev_by_name(nam) ^ dungeon.c:1512:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] br_string(type) ^ dungeon.c:1526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] print_branch(win, dnum, lower_bound, upper_bound) ^ 107 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c eat.c In file included from eat.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from eat.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from eat.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ eat.c:6:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment to enable new eat code debugging */ ^ eat.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_edible(obj) ^ eat.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] food_xname(food, the_pfx) ^ eat.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] choke(food) /* To a full belly all food is bad. (It.) */ ^ eat.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] touchfood(otmp) ^ eat.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] food_disappears(obj) ^ eat.c:385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done_eating(message) ^ eat.c:394:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (message) pline(nomovemsg); ^~~~~~~~~ eat.c:394:22: note: treat the string as an argument to avoid this if (message) pline(nomovemsg); ^ "%s", eat.c:410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cprefx(pm) ^ eat.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] intrinsic_possible(type, ptr) ^ eat.c:600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] givit(type, ptr) ^ eat.c:793:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cpostfx(pm) /* called after completely consuming a corpse */ ^ eat.c:1137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_tin(otmp) /* called when starting to open a tin */ ^ eat.c:1205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rottenfood(obj) ^ eat.c:1236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eatcorpse(otmp) /* called when a corpse is selected as food */ ^ eat.c:1319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_eating(otmp) /* called as you start to eat */ ^ eat.c:1352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fprefx(otmp) /* called on "first bite" of (non-corpse) food */ ^ eat.c:1497:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eataccessory(otmp) ^ eat.c:1640:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] foodword(otmp) ^ eat.c:1652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fpostfx(otmp) /* called after consuming (non-corpse) food */ ^ eat.c:1913:6: warning: converting the result of '?:' with integer constants to a boolean always evaluates to 'true' [-Wtautological-constant-compare] (((monstermoves - otmp->age) > (int) otmp->blessed ? 50:30) && ^ eat.c:2028:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] morehungry(num) /* called after vomiting and after performing feats of magic */ ^ eat.c:2037:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lesshungry(num) /* called after eating (and after drinking fruit juice) */ ^ eat.c:2049:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else ^ eat.c:2124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newuhs(incr) /* compute and comment on your (new?) hunger status */ ^ eat.c:2257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] floorfood(verb,corpsecheck) /* get food from floor or pack */ ^ eat.c:2343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eaten_stat(base, obj) ^ 79 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c end.c In file included from end.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from end.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from end.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ end.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done1(sig_unused) /* called as signal() handler, so sent at least one arg */ ^ end.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done_intr(sig_unused) /* called as signal() handler, so sent at least one arg */ ^ end.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done_hangup(sig) /* signal() handler */ ^ end.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done_in_by(mtmp) ^ end.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disclose(how,taken) ^ end.c:340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savelife(how) ^ end.c:365:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_valuables(list) ^ end.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sort_valuables(list, size) ^ end.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] done(how) ^ end.c:713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] container_contents(list, identified, all_containers) ^ end.c:752:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] terminate(status) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c engrave.c In file included from engrave.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from engrave.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ engrave.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] random_engraving(outbuf) ^ engrave.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wipeout_text(engr, cnt, seed) ^ engrave.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] surface(x, y) ^ engrave.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ceiling(x, y) ^ engrave.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] engr_at(x, y) ^ engrave.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sengr_at(s, x, y) ^ engrave.c:227:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_wipe_engr(cnt) ^ engrave.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wipe_engr_at(x,y,cnt) ^ engrave.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] read_engr_at(x,y) ^ engrave.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_engr_at(x,y,s,e_time,e_type) ^ engrave.c:350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_engr_at(x, y) ^ engrave.c:749:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ engrave.c:877:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else ^ engrave.c:1050:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (post_engr_text[0]) pline(post_engr_text); ^~~~~~~~~~~~~~ engrave.c:1050:31: note: treat the string as an argument to avoid this if (post_engr_text[0]) pline(post_engr_text); ^ "%s", engrave.c:1061:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_engravings(fd, mode) ^ engrave.c:1085:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rest_engravings(fd) ^ engrave.c:1108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_engr(ep) ^ engrave.c:1131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rloc_engr(ep) ^ 70 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c exper.c In file included from exper.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from exper.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from exper.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ exper.c:11:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newuexp(lev) ^ exper.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enermod(en) ^ exper.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] experience(mtmp, nk) /* return # of exp points for mtmp after nk killed */ ^ exper.c:79:56: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses] if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; ~~~~~~~~~~~~~~~~~ ^ exper.c:79:56: note: place parentheses around the '*' expression to silence this warning if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; ^ ( ) exper.c:79:56: note: place parentheses around the '?:' expression to evaluate it first if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; ^ ( ) exper.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] more_experienced(exp, rexp) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c explode.c In file included from explode.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from explode.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from explode.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ explode.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] explode(x, y, type, dam, olet) ^ explode.c:366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scatter(sx,sy,blastforce,scflags) ^ explode.c:520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] splatter_burning_oil(x, y) ^ 55 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c extralev.c In file included from extralev.c:9: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from extralev.c:9: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ extralev.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] roguejoin(x1,y1,x2,y2, horiz) ^ extralev.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] roguecorr(x, y, dir) ^ extralev.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] miniwalk(x, y) ^ extralev.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] corr(x,y) ^ extralev.c:344:25: warning: '/*' within block comment [-Wcomment] #endif /* REINCARNATION /**/ ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c files.c In file included from files.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from files.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from files.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ files.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fopen_datafile(filename, mode) ^ files.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_levelfile_name(file, lev) ^ files.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_levelfile(lev) ^ files.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] open_levelfile(lev) ^ files.c:201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delete_levelfile(lev) ^ files.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_bonesfile_name(file, lev) ^ files.c:287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_bonesfile(lev, bonesid) ^ files.c:338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] commit_bonesfile(lev) ^ files.c:365:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] open_bonesfile(lev, bonesid) ^ files.c:383:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delete_bonesfile(lev) ^ files.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_savefile_name(fd) ^ files.c:569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] redirect(filename, mode, stream, uncomp) ^ files.c:589:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docompress_file(filename, uncomp) ^ files.c:686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compress(filename) ^ files.c:693:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] docompress_file(filename, FALSE); ^~~~~~~~ files.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uncompress(filename) ^ files.c:707:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] docompress_file(filename, TRUE); ^~~~~~~~ files.c:725:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_lockname(filename, lockname) ^ files.c:756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lock_file(filename, retryct) ^ files.c:858:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unlock_file(filename) ^ files.c:909:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fopen_config_file(filename) ^ files.c:972:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_uchars(fp, buf, bufp, list, size, name) ^ files.c:1023:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_config_line(fp, buf, tmp_ramdisk, tmp_levels) ^ files.c:1223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] read_config_file(filename) ^ files.c:1307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_recordfile(dir) ^ 77 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c fountain.c In file included from fountain.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from fountain.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ fountain.c:16:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] floating_above(what) ^ fountain.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dogushforth(drinking) /* Gushing forth along LOS from (u.ux, u.uy) */ ^ fountain.c:98:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ fountain.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gush(x, y, poolcnt) ^ fountain.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dryup(x,y) ^ fountain.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dipfountain(obj) ^ fountain.c:463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] diptoilet(obj) ^ fountain.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breaksink(x,y) ^ fountain.c:501:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breaktoilet(x,y) ^ 61 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c hack.c In file included from hack.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from hack.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from hack.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ hack.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] revive_nasty(x, y, msg) ^ hack.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] still_chewing(x,y) ^ hack.c:349:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (digtxt) You(digtxt); /* after newsym */ ^~~~~~ hack.c:349:21: note: treat the string as an argument to avoid this if (digtxt) You(digtxt); /* after newsym */ ^ "%s", hack.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] movobj(obj, ox, oy) ^ hack.c:415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] may_dig(x,y) ^ hack.c:424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] may_passwall(x,y) ^ hack.c:435:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bad_rock(mdat,x,y) ^ hack.c:445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invocation_pos(x, y) ^ hack.c:1050:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monstinroom(mdat,roomno) ^ hack.c:1064:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_rooms(x, y, typewanted) ^ hack.c:1132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_update(newlev) ^ hack.c:1174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_special_room(newlev) ^ hack.c:1499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nomul(nval) ^ hack.c:1510:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void unmul(msg_override) ^ hack.c:1516:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (*nomovemsg) pline(nomovemsg); ^~~~~~~~~ hack.c:1516:24: note: treat the string as an argument to avoid this if (*nomovemsg) pline(nomovemsg); ^ "%s", hack.c:1527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] losehp(n, knam, k_format) ^ hack.c:1643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] calc_capacity(xtra_wt) ^ hack.c:1669:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_capacity(str) ^ hack.c:1674:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(str); ^~~ hack.c:1674:12: note: treat the string as an argument to avoid this pline(str); ^ "%s", 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c hacklib.c In file included from hacklib.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from hacklib.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ hacklib.c:52:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] digit(c) /* is 'c' a digit? */ ^ hacklib.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] letter(c) /* is 'c' a letter? note: '@' classed as letter */ ^ hacklib.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] highc(c) /* force 'c' into uppercase */ ^ hacklib.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lowc(c) /* force 'c' into lowercase */ ^ hacklib.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lcase(s) /* convert a string into all lowercase */ ^ hacklib.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mungspaces(bp) ^ hacklib.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eos(s) /* return the end of a string (pointing at '\0') */ ^ hacklib.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s_suffix(s) /* return a name converted to possessive */ ^ hacklib.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xcrypt(str, buf) /* trivial text encryption routine (see makedefs) */ ^ hacklib.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] onlyspace(s) /* is a string entirely whitespace? */ ^ hacklib.c:171:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tabexpand(sbuf) /* expand tabs into proper number of spaces */ ^ hacklib.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] visctrl(c) /* make a displayable string from a character */ ^ hacklib.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ordin(n) /* return the ordinal suffix of a number */ ^ hacklib.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sitoa(n) /* make a signed digit string from a number */ ^ hacklib.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sgn(n) /* return the sign of a number: -1, 0, or 1 */ ^ hacklib.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rounddiv(x, y) /* calculate x/y, rounding as appropriate */ ^ hacklib.c:273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] distmin(x0, y0, x1, y1) /* distance between two points, in moves */ ^ hacklib.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dist2(x0, y0, x1, y1) /* square of euclidean distance between pair of pts */ ^ hacklib.c:294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] online2(x0, y0, x1, y1) /* are two points lined up (on a straight line)? */ ^ hacklib.c:297:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register dx = x0 - x1, dy = y0 - y1; ~~~~~~~~ ^ int hacklib.c:297:28: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register dx = x0 - x1, dy = y0 - y1; ~~~~~~~~ ^ int hacklib.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pmatch(patrn, strng) /* match a string against a pattern */ ^ hacklib.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncmpi(s1, s2, n) /* case insensitive counted string comparison */ ^ hacklib.c:355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strstri(str, sub) /* case insensitive substring search */ ^ hacklib.c:424:22: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] srandom((int) time((long *)0)); ^~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here time_t time(time_t *); ^ hacklib.c:444:14: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] (void) time((long *)(&date)); ^~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here time_t time(time_t *); ^ hacklib.c:449:19: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] return(localtime((long *)(&date))); ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here E struct tm *FDECL(localtime, (const time_t *)); ^ hacklib.c:463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yymmdd(date) ^ hacklib.c:473:18: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] lt = localtime((long *)(&date)); ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here E struct tm *FDECL(localtime, (const time_t *)); ^ hacklib.c:494:18: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] lt = localtime((long *)(&date)); ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here E struct tm *FDECL(localtime, (const time_t *)); ^ hacklib.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yyyymmdd(date) ^ 83 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c invent.c In file included from invent.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from invent.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from invent.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ invent.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] assigninvlet(otmp) ^ invent.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] merge_choice(objlist, obj) ^ invent.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] merged(potmp, pobj) ^ invent.c:200:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addinv(obj) ^ invent.c:273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hold_another_object(obj, drop_fmt, drop_arg, hold_msg) ^ invent.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] useup(obj) ^ invent.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeinv(obj) ^ invent.c:372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delallobj(x, y) ^ invent.c:393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delobj(obj) ^ invent.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sobj_at(n,x,y) ^ invent.c:434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] carrying(type) ^ invent.c:457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o_on(id, objchn) ^ invent.c:473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_here(obj, x, y) ^ invent.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] g_at(x,y) ^ invent.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkgoldobj(q) ^ invent.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compactify(buf) ^ invent.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getobj(let,word) ^ invent.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckunpaid(otmp) ^ invent.c:841:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_worn(otmp) ^ invent.c:854:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ggetobj(word, fn, mx, combo) ^ invent.c:980:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] askchain(objchn, olets, allflag, fn, ckfn, mx, word) ^ invent.c:1075:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fully_identify_obj(otmp) ^ invent.c:1086:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] identify(otmp) ^ invent.c:1096:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] menu_identify(id_limit) ^ invent.c:1126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] identify_pack(id_limit) ^ invent.c:1168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_to_let(obj) /* should of course only be called for things in invent */ ^ invent.c:1185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prinv(prefix, obj, quan) ^ invent.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xprname(obj, txt, let, dot, cost) ^ invent.c:1259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_unpaid(list, last_found) ^ invent.c:1290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] display_inventory(lets, want_reply) ^ invent.c:1383:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] count_unpaid(list) ^ invent.c:1489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] this_type_only(obj) ^ invent.c:1701:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (dfeature) pline(fbuf); ^~~~ invent.c:1701:23: note: treat the string as an argument to avoid this if (dfeature) pline(fbuf); ^ "%s", invent.c:1709:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (dfeature) pline(fbuf); ^~~~ invent.c:1709:26: note: treat the string as an argument to avoid this if (dfeature) pline(fbuf); ^ "%s", invent.c:1737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] feel_cockatrice(otmp, force_touch) ^ invent.c:1795:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stackobj(obj) ^ invent.c:1807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mergable(otmp, obj) /* returns TRUE if obj & otmp can be merged */ ^ invent.c:1976:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] useupf(obj) ^ invent.c:2021:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] let_to_name(let,unpaid) ^ invent.c:2096:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else alphabet[(otmp->invlet) - 'a'] = ' '; ^ invent.c:2156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invdisp_nothing(hdr, txt) ^ invent.c:2178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] worn_wield_only(obj) ^ invent.c:2200:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] display_minventory(mon, dflags) ^ invent.c:2265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] display_cinventory(obj) ^ invent.c:2294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] only_here(obj) ^ invent.c:2307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] display_binventory(x, y, as_if_seen) ^ 98 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c light.c In file included from light.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from light.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from light.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ light.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_light_source(x, y, range, type, id) ^ light.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_light_source(type, id) ^ light.c:111:30: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] case LS_OBJECT: tmp_id = (genericptr_t)(((struct obj *)id)->o_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:113:31: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] case LS_MONSTER: tmp_id = (genericptr_t)(((struct monst *)id)->m_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_light_sources(cs_rows) ^ light.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_mid(nid) ^ light.c:237:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_light_sources(fd, mode, range) ^ light.c:287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_light_sources(fd) ^ light.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] relink_light_sources(ghostly) ^ light.c:317:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] if (!lookup_id_mapping((unsigned)ls->id, &nid)) ^~~~~~~~~~~~~~~~ light.c:320:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] nid = (unsigned) ls->id; ^~~~~~~~~~~~~~~~~ light.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maybe_write_ls(fd, range, write_it) ^ light.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_ls(fd, ls) ^ light.c:398:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] ls->id = (genericptr_t)otmp->o_id; ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:405:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] ls->id = (genericptr_t)mtmp->m_id; ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_move_light_source(src, dest) ^ light.c:447:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] snuff_light_source(x, y) ^ light.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_sheds_light(obj) ^ light.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_is_burning(obj) ^ light.c:500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_split_light_source(src, dest) ^ 72 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c lock.c In file included from lock.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from lock.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from lock.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ lock.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] picking_lock(x, y) ^ lock.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] picking_at(x, y) ^ lock.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pick_lock(pick) /* pick a lock with a given object */ ^ lock.c:605:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obstructed(x,y) ^ lock.c:706:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boxlock(obj, otmp) /* returns true if something happened */ ^ lock.c:742:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doorlock(otmp,x,y) /* returns true if something happened */ ^ lock.c:865:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (msg && cansee(x,y)) pline(msg); ^~~ lock.c:865:32: note: treat the string as an argument to avoid this if (msg && cansee(x,y)) pline(msg); ^ "%s", lock.c:881:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chest_shatter_msg(otmp) ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mail.c In file included from mail.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mail.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mail.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c makemon.c In file included from makemon.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from makemon.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ makemon.c:36:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_home_elemental(ptr) ^ makemon.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wrong_elem_type(ptr) ^ makemon.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_initgrp(mtmp, x, y, n) /* make a group just like mtmp */ ^ makemon.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_initthrow(mtmp,otyp,oquan) ^ makemon.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_initweap(mtmp) ^ makemon.c:625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_initinv(mtmp) ^ makemon.c:804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clone_mon(mon) ^ makemon.c:877:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makemon(ptr, x, y, mmflags) ^ makemon.c:1135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_critters(cnt, mptr) ^ makemon.c:1173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uncommon(mndx) ^ makemon.c:1190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] align_shift(ptr) ^ makemon.c:1231:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = qt_montype()) { ~~~~^~~~~~~~~~~~~~ makemon.c:1231:13: note: place parentheses around the assignment to silence this warning if (ptr = qt_montype()) { ^ ( ) makemon.c:1231:13: note: use '==' to turn this assignment into an equality comparison if (ptr = qt_montype()) { ^ == makemon.c:1330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reset_rndmonst(mndx) ^ makemon.c:1353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkclass(class,spc) ^ makemon.c:1404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adj_lev(ptr) /* adjust strength of monsters based on u.uz and u.ulevel */ ^ makemon.c:1435:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] grow_up(mtmp, victim) /* `mtmp' might "grow up" into a bigger version */ ^ makemon.c:1517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mongets(mtmp, otyp) ^ makemon.c:1586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] golemhp(type) ^ makemon.c:1613:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] peace_minded(ptr) ^ makemon.c:1657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_malign(mtmp) ^ makemon.c:1719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mimic_sym(mtmp) /* KAA, modified by ERS */ ^ 73 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mcastu.c In file included from mcastu.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mcastu.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mcastu.c:15:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursetxt(mtmp) ^ mcastu.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] castmu(mtmp, mattk) /* monster casts spell at you */ ^ mcastu.c:403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buzzmu(mtmp, mattk) /* monster uses spell (ranged) */ ^ 55 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mhitm.c In file included from mhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mhitm.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mhitm.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_nam_too(outbuf, mon, other_mon) ^ mhitm.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] noises(magr, mattk) ^ mhitm.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] missmm(magr, mdef, mattk) ^ mhitm.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fightm(mtmp) /* have monsters fight each other */ ^ mhitm.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mattackm(magr, mdef) ^ mhitm.c:318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitmm(magr, mdef, mattk) ^ mhitm.c:371:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gazemm(magr, mdef, mattk) ^ mhitm.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gulpmm(magr, mdef, mattk) ^ mhitm.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] explmm(magr, mdef, mattk) ^ mhitm.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mdamagem(magr, mdef, mattk) ^ mhitm.c:967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] noattacks(ptr) /* returns 1 if monster doesn't attack */ ^ mhitm.c:980:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sleep_monst(mon, amt, how) ^ mhitm.c:1002:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] slept_monst(mon) ^ mhitm.c:1016:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mrustm(magr, mdef, obj) ^ mhitm.c:1040:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mswingsm(magr, mdef, otemp) ^ mhitm.c:1057:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passivemm(magr,mdef,mhit,mdead) ^ 68 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mhitu.c In file included from mhitu.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mhitu.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mhitu.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitmsg(mtmp, mattk) ^ mhitu.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] missmu(mtmp, nearmiss, mattk) /* monster missed you */ ^ mhitu.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mswings(mtmp, otemp) /* monster swings obj */ ^ mhitu.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpoisons_subj(mtmp, mattk) ^ mhitu.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wildmiss(mtmp, mattk) /* monster attacked your displaced image */ ^ mhitu.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] expels(mtmp, mdat, message) ^ mhitu.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mattacku(mtmp) ^ mhitu.c:611:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hurtarmor(mdat, attk) ^ mhitu.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] diseasemu(mdat) ^ mhitu.c:699:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_slip_free(mtmp, mattk) ^ mhitu.c:738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitmu(mtmp, mattk) ^ mhitu.c:1282:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else pline("%s chuckles.", Monnam(mtmp)); ^ mhitu.c:1414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */ ^ mhitu.c:1574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] explmu(mtmp, mattk, ufound) /* monster explodes in your face */ ^ mhitu.c:1677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gazemu(mtmp, mattk) /* monster gazes at you */ ^ mhitu.c:1897:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mdamageu(mtmp, n) /* mtmp hits you for n points damage */ ^ mhitu.c:1930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] urustm(mon, obj) ^ mhitu.c:1956:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] could_seduce(magr,mdef,mattk) ^ mhitu.c:2011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doseduce(mon) ^ mhitu.c:2246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mayberem(obj, str) ^ mhitu.c:2290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passiveum(olduasmon,mtmp,mattk) ^ 73 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c minion.c In file included from minion.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from minion.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from minion.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ minion.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msummon(ptr) /* ptr summons a monster */ ^ minion.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] summon_minion(alignment, talk) ^ minion.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] demon_talk(mtmp) /* returns 1 if it won't attack. */ ^ minion.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bribe(mtmp) ^ minion.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dprince(atyp) ^ minion.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dlord(atyp) ^ minion.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ndemon(atyp) ^ 59 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mklev.c In file included from mklev.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mklev.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mklev.c:6:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment to enable code debugging */ ^ mklev.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_comp(vx,vy) ^ mklev.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] finddpos(cc, xl,yl,xh,yh) ^ mklev.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_room_or_subroom(croom, lowx, lowy, hix, hiy, lit, rtype, special, is_room) ^ mklev.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_room(lowx, lowy, hix, hiy, lit, rtype, special) ^ mklev.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_subroom(proom, lowx, lowy, hix, hiy, lit, rtype, special) ^ mklev.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] join(a,b,nxcor) ^ mklev.c:349:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_door(x,y,aroom) ^ mklev.c:370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dosdoor(x,y,aroom,type) ^ mklev.c:428:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_niche(aroom,dy,xx,yy) ^ mklev.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeniche(trap_type) ^ mklev.c:955:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] topologize(croom) ^ mklev.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_branch_room(mp) ^ mklev.c:1048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos_to_room(x, y) ^ mklev.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_branch(br, x, y) ^ mklev.c:1120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bydoor(x, y) ^ mklev.c:1146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] okdoor(x,y) ^ mklev.c:1156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodoor(x,y,aroom) ^ mklev.c:1169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] occupied(x, y) ^ mklev.c:1183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mktrap(num, mazeflag, croom, tm) ^ mklev.c:1273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkstairs(x, y, up, croom) ^ mklev.c:1308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkfount(mazeflag,croom) ^ mklev.c:1334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mksink(croom) ^ mklev.c:1353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mktoilet(croom) ^ mklev.c:1370:17: warning: '/*' within block comment [-Wcomment] #endif /* SINKS /**/ ^ mklev.c:1373:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkgrave(croom) ^ mklev.c:1391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkaltar(croom) ^ mklev.c:1471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkinvpos(x,y,dist) ^ mklev.c:1550:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_knox_portal(x, y) ^ 81 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mkmap.c In file included from mkmap.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mkmap.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mkmap.c:27:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_map(bg_typ) ^ mkmap.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_fill(bg_typ, fg_typ) ^ mkmap.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_map(col,row, bg_typ) ^ mkmap.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pass_one(bg_typ, fg_typ) ^ mkmap.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pass_two(bg_typ, fg_typ) ^ mkmap.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pass_three(bg_typ, fg_typ) ^ mkmap.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flood_fill_rm(sx, sy, rmno, lit, anyroom) ^ mkmap.c:208:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ mkmap.c:225:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ mkmap.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] join_map(bg_typ, fg_typ) ^ mkmap.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] finish_map(fg_typ, bg_typ, lit, walled) ^ mkmap.c:361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkmap(init_lev) ^ 64 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mkmaze.c In file included from mkmaze.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mkmaze.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iswall(x,y) ^ mkmaze.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iswall_or_stone(x,y) ^ mkmaze.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_solid(x,y) ^ mkmaze.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] extend_spine(locale, wall_there, dx, dy) ^ mkmaze.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wallification(x1, y1, x2, y2) ^ mkmaze.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] okay(x,y,dir) ^ mkmaze.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maze0xy(cc) /* find random starting point for maze generation */ ^ mkmaze.c:222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bad_location(x, y, lx, ly, hx, hy) ^ mkmaze.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_lregion(lx, ly, hx, hy, nlx, nly, nhx, nhy, rtype, lev) ^ mkmaze.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] put_lregion_here(x,y,nlx,nly,nhx,nhy,rtype,oneshot,lev) ^ mkmaze.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makemaz(s) ^ mkmaze.c:673:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] walkfrom(x,y) ^ mkmaze.c:708:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move(x,y,dir) ^ mkmaze.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mazexy(cc) /* find random point in generated corridors, ^ mkmaze.c:847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkportal(x, y, todnum, todlevel) ^ mkmaze.c:1066:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_waterlevel(fd, mode) ^ mkmaze.c:1089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_waterlevel(fd) ^ mkmaze.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_bubble(x,y,n) ^ mkmaze.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mv_bubble(b,dx,dy,ini) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mkobj.c In file included from mkobj.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mkobj.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mkobj.c:19:26: warning: '/*' within block comment [-Wcomment] /*#define DEBUG_EFFECTS /* show some messages for debugging */ ^ mkobj.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkobj_at(let,x,y, artif) ^ mkobj.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mksobj_at(otyp,x,y,init) ^ mkobj.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkobj(oclass, artif) ^ mkobj.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkbox_cnts(box) ^ mkobj.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] splitobj(obj, num) ^ mkobj.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bill_dummy_object(otmp) ^ mkobj.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mksobj(otyp, init, artif) ^ mkobj.c:601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_corpse_timeout(body) ^ mkobj.c:643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bless(otmp) ^ mkobj.c:657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unbless(otmp) ^ mkobj.c:669:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curse(otmp) ^ mkobj.c:683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uncurse(otmp) ^ mkobj.c:698:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] blessorcurse(otmp, chance) ^ mkobj.c:707:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ mkobj.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bcsign(otmp) ^ mkobj.c:735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weight(obj) ^ mkobj.c:790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkgold(amount, x, y) ^ mkobj.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkcorpstat(objtype, mtmp, ptr, x, y, init) ^ mkobj.c:909:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_tt_object(objtype, x, y) ^ mkobj.c:927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_named_object(objtype, ptr, x, y, nm) ^ mkobj.c:943:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_flammable(otmp) ^ mkobj.c:964:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_object(otmp, x, y) ^ mkobj.c:1003:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_ice_effects(x, y, do_buried) ^ mkobj.c:1029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] peek_at_iced_corpse_age(otmp) ^ mkobj.c:1049:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_timer_checks(otmp, x, y, force) ^ mkobj.c:1118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_object(otmp) ^ mkobj.c:1134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] discard_minvent(mtmp) ^ mkobj.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_extract_self(obj) ^ mkobj.c:1199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] extract_nobj(obj, head_ptr) ^ mkobj.c:1226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] extract_nexthere(obj, head_ptr) ^ mkobj.c:1246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_to_minv(mon, obj) ^ mkobj.c:1267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_to_container(container, obj) ^ mkobj.c:1280:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_to_migration(obj) ^ mkobj.c:1292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_to_buried(obj) ^ mkobj.c:1305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] container_weight(container) ^ mkobj.c:1322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dealloc_obj(obj) ^ mkobj.c:1450:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] where_name(where) ^ mkobj.c:1458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_contained(container, mesg) ^ 91 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mkroom.c In file included from mkroom.c:16: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mkroom.c:16: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mkroom.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isbig(sroom) ^ mkroom.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkroom(roomtype) ^ mkroom.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pick_room(strict) ^ mkroom.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkzoo(type) ^ mkroom.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_zoo(sroom) ^ mkroom.c:408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkundead(mm, revive_corpses, mm_flags) ^ mkroom.c:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shrine_pos(roomno) ^ mkroom.c:517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nexttodoor(sx,sy) ^ mkroom.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] has_dnstairs(sroom) ^ mkroom.c:543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] has_upstairs(sroom) ^ mkroom.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] somex(croom) ^ mkroom.c:564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] somey(croom) ^ mkroom.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inside_room(croom, x, y) ^ mkroom.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] somexy(croom, c) ^ mkroom.c:638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] search_special(type) ^ mkroom.c:736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_room(fd, r) ^ mkroom.c:756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_rooms(fd) ^ mkroom.c:768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rest_room(fd, r) ^ mkroom.c:787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rest_rooms(fd) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mon.c In file included from mon.c:10: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mon.c:10: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mon.c:10: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mon.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] undead_to_corpse(mndx) ^ mon.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_corpse(mtmp) ^ mon.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] minwater(mtmp) ^ mon.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] meatgold(mtmp) ^ mon.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] meatcorpse(mtmp) ^ mon.c:530:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] meatobj(mtmp) /* for gelatinous cubes */ ^ mon.c:603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpickgold(mtmp) ^ mon.c:622:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpickstuff(mtmp, str) ^ mon.c:671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curr_mon_load(mtmp) ^ mon.c:686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] max_mon_load(mtmp) ^ mon.c:715:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] can_carry(mtmp,otmp) ^ mon.c:747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mfndpos(mon, poss, info, flag) ^ mon.c:935:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monnear(mon, x, y) ^ mon.c:963:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monfree(mtmp) ^ mon.c:976:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] replmon(mtmp, mtmp2) ^ mon.c:1011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] relmon(mon) ^ mon.c:1030:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_detach(mtmp, mptr) ^ mon.c:1052:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mlifesaver(mon) ^ mon.c:1065:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lifesaved_monster(mtmp) ^ mon.c:1103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mondead(mtmp) ^ mon.c:1187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] corpse_chance(mon) ^ mon.c:1220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mondied(mdef) ^ mon.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mongone(mdef) ^ mon.c:1243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monstone(mdef) ^ mon.c:1297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monkilled(mdef, fltxt, how) ^ mon.c:1325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unstuck(mtmp) ^ mon.c:1343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] killed(mtmp) ^ mon.c:1351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xkilled(mtmp, dest) ^ mon.c:1533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_to_stone(mtmp) ^ mon.c:1548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mnexto(mtmp) /* Make monster mtmp next to you (if possible) */ ^ mon.c:1565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mnearto(mtmp,x,y,move_other) ^ mon.c:1616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] poisontell(typ) ^ mon.c:1624:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] poisoned(string, typ, pname, fatal) ^ mon.c:1669:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_respond(mtmp) ^ mon.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmangry(mtmp) ^ mon.c:1757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wakeup(mtmp) ^ mon.c:1782:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wake_nearto(x, y, distance) ^ mon.c:1796:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seemimic(mtmp) ^ mon.c:1853:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restrap(mtmp) ^ mon.c:1874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newcham(mtmp, mdat) ^ mon.c:2043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] can_be_hatched(mnum) ^ mon.c:2060:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] egg_type_from_parent(mnum, force_ordinary) ^ mon.c:2074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dead_species(m_idx, egg) ^ mon.c:2094:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kill_eggs(obj_list) ^ mon.c:2165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] golemeffects(mon, damtype, dam) ^ mon.c:2202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] angry_guards(silent) ^ 98 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mondata.c In file included from mondata.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mondata.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mondata.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mon_data(mon, ptr, flag) ^ mondata.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attacktype(ptr, atyp) ^ mondata.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] poly_when_stoned(ptr) ^ mondata.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resists_drli(mon) /* returns TRUE if monster is drain-life resistant */ ^ mondata.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resists_magm(mon) /* TRUE if monster is magic-missile resistant */ ^ mondata.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resists_blnd(mon) ^ mondata.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ranged_attk(ptr) /* returns TRUE if monster can attack at range */ ^ mondata.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hates_silver(ptr) ^ mondata.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] can_track(ptr) /* returns TRUE if monster can track well */ ^ mondata.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sliparm(ptr) /* creature will slide out of armor */ ^ mondata.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breakarm(ptr) /* creature will break out of armor */ ^ mondata.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sticks(ptr) /* creature sticks other creatures it hits */ ^ mondata.c:197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dmgtype(ptr, dtyp) ^ mondata.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] max_passive_dmg(mdef, magr) ^ mondata.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] monsndx(ptr) /* return an index into the mons array */ ^ mondata.c:262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] name_to_mon(in_str) ^ mondata.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] webmaker(ptr) /* creature can spin a web */ ^ mondata.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gender(mtmp) ^ mondata.c:385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pronoun_gender(mtmp) ^ mondata.c:397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] levl_follower(mtmp) ^ mondata.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] little_to_big(montype) ^ mondata.c:520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] big_to_little(montype) ^ mondata.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] locomotion(ptr, def) ^ 75 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c monmove.c In file included from monmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from monmove.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ monmove.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mb_trapped(mtmp) ^ monmove.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] watch_on_duty(mtmp) ^ monmove.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dochugw(mtmp) ^ monmove.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] onscary(x, y, mtmp) ^ monmove.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_regen(mon, digest_meal) ^ monmove.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disturb(mtmp) ^ monmove.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] distfleeck(mtmp,inrange,nearby,scared) ^ monmove.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_arrival(mon) ^ monmove.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dochug(mtmp) ^ monmove.c:525:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] itsstuck(mtmp) ^ monmove.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_move(mtmp, after) ^ monmove.c:1111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] closed_door(x, y) ^ monmove.c:1119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] accessible(x, y) ^ monmove.c:1130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_apparxy(mtmp) ^ 66 warnings generated. ./makedefs -m cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c monstr.c In file included from monstr.c:2: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from monstr.c:2: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from monstr.c:2: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from monstr.c:2: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from monstr.c:2: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from monstr.c:2: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ 50 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mplayer.c In file included from mplayer.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mplayer.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mplayer.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_mplname(mtmp, nam) ^ mplayer.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_mplayer_armor(mon, range1, range2) ^ mplayer.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_mplayer(ptr, x, y, special) ^ mplayer.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_mplayers(num, special) ^ mplayer.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mplayer_talk(mtmp) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mthrowu.c In file included from mthrowu.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ mthrowu.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thitu(tlev, dam, obj, name) /* u is hit by sth, but not a monster */ ^ mthrowu.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop_throw(obj, ohit, x, y) ^ mthrowu.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ohitmon(mtmp, otmp, range, verbose) ^ mthrowu.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_throw(mon, x, y, dx, dy, range, obj) ^ mthrowu.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_useup(mon, obj) ^ mthrowu.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thrwmu(mtmp) /* monster throws item at you */ ^ mthrowu.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spitmu(mtmp, mattk) /* monster spits substance at you */ ^ mthrowu.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] breamu(mtmp, mattk) /* monster breathes at you (ranged) */ ^ mthrowu.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linedup(ax, ay, bx, by) ^ mthrowu.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lined_up(mtmp) /* is mtmp in position to use ranged attack? */ ^ mthrowu.c:584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_carrying(mtmp, type) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c muse.c In file included from muse.c:9: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from muse.c:9: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from muse.c:9: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ muse.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] precheck(mon, obj) ^ muse.c:79:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (vis) pline(empty); ^~~~~ muse.c:79:22: note: treat the string as an argument to avoid this if (vis) pline(empty); ^ "%s", muse.c:101:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (vis) pline(empty); ^~~~~ muse.c:101:22: note: treat the string as an argument to avoid this if (vis) pline(empty); ^ "%s", muse.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mzapmsg(mtmp, otmp, self) ^ muse.c:161:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mreadmsg(mtmp, otmp) ^ muse.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mquaffmsg(mtmp, otmp) ^ muse.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_defensive(mtmp) ^ muse.c:500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_defensive(mtmp) ^ muse.c:894:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnd_defensive_item(mtmp) ^ muse.c:951:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_offensive(mtmp) ^ muse.c:1065:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mbhitm(mtmp, otmp) ^ muse.c:1130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mbhit(mon,range,fhitm,fhito,obj) ^ muse.c:1219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_offensive(mtmp) ^ muse.c:1352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnd_offensive_item(mtmp) ^ muse.c:1394:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_misc(mtmp) ^ muse.c:1498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_misc(mtmp) ^ muse.c:1672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] you_aggravate(mtmp) ^ muse.c:1697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnd_misc_item(mtmp) ^ muse.c:1732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] searches_for_item(mon, obj) ^ muse.c:1781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_reflects(mon,str) ^ muse.c:1809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] munstone(mon, by_you) ^ 73 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c music.c In file included from music.c:29: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from music.c:29: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from music.c:29: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ music.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] awaken_monsters(distance) ^ music.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] put_monsters_to_sleep(distance) ^ music.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] charm_snakes(distance) ^ music.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] calm_nymphs(distance) ^ music.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] charm_monsters(distance) ^ music.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_earthquake(force) ^ music.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_improvisation(instr) ^ music.c:489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_play_instrument(instr) ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c o_init.c In file included from o_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from o_init.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ o_init.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shuffle(o_low, o_high, domaterial) ^ o_init.c:167:10: warning: self-comparison always evaluates to false [-Wtautological-compare] if(sum != sum) ^ o_init.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savenames(fd, mode) ^ o_init.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restnames(fd) ^ o_init.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] discover_object(oindx, mark_as_known) ^ o_init.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] undiscover_object(oindx) ^ o_init.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] interesting_to_discover(i) ^ 59 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c objnam.c In file included from objnam.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from objnam.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ objnam.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strprepend(s,pref) ^ objnam.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] typename(otyp) ^ objnam.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_is_pname(obj) ^ objnam.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] distant_name(obj, func) ^ objnam.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xname(obj) ^ objnam.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] the_unique_obj(obj) ^ objnam.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doname(obj) ^ objnam.c:672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] not_fully_identified(otmp) ^ objnam.c:705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] corpse_xname(otmp, ignore_oquan) ^ objnam.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] singular(otmp, func) ^ objnam.c:743:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] an(str) ^ objnam.c:767:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] An(str) ^ objnam.c:780:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] the(str) ^ objnam.c:827:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] The(str) ^ objnam.c:836:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] aobjnam(otmp,verb) ^ objnam.c:865:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Doname2(obj) ^ objnam.c:876:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yname(obj) ^ objnam.c:888:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Yname2(obj) ^ objnam.c:924:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeplural(oldstr) ^ objnam.c:1012:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (len >= 5 && !strncmp(spot-4, "staf", 4)) ^ objnam.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makesingular(oldstr) ^ objnam.c:1300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readobjnam(bp) ^ objnam.c:2157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnd_class(first,last) ^ objnam.c:2173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Japanese_item_name(i) ^ 76 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c options.c In file included from options.c:13: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from options.c:13: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from options.c:13: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ options.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] match_optname(user_string, opt_name, min_length, val_allowed) ^ options.c:445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nmcpy(dest, src, maxlen) ^ options.c:467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] escapes(cp, tp) ^ options.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolopt_only_initial(i) ^ options.c:540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rejectoption(optname) ^ options.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] badoption(opts) ^ options.c:582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] string_for_opt(opts, val_optional) ^ options.c:597:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] string_for_env_opt(optname, opts, val_optional) ^ options.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bad_negation(optname, with_parameter) ^ options.c:629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] change_inv_order(op) ^ options.c:663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] graphics_opts(opts, optype, maxlen, offset) ^ options.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parseoptions(opts, tinitial, tfrom_file) ^ options.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] oc_to_str(src,dest) ^ options.c:1427:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_menu_cmd_alias(from_ch, to_ch) ^ options.c:1446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] map_menu_cmd(ch) ^ options.c:1465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doset_add_menu(win, option, value, indexoffset) ^ options.c:1735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_opt(datawin, str) ^ options.c:1770:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fruitadd(str) ^ options.c:1859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] choose_classes_menu(prompt, category, way, class_list, class_select) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c pager.c In file included from pager.c:8: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from pager.c:8: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from pager.c:8: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ pager.c:23:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_swallow_sym(c) ^ pager.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] append_str(buf, new_str) ^ pager.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lookat(x, y, buf) ^ pager.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] checkfile(inp, user_typed_name) ^ pager.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_look(quick) ^ pager.c:648:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] help_menu(sel) ^ 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c pickup.c In file included from pickup.c:9: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from pickup.c:9: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ pickup.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] simple_look(otmp, here) ^ pickup.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] collect_obj_classes(ilets, otmp, here, incl_gold, filter) ^ pickup.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] query_classes(oclasses, one_at_a_time, everything, action, objs, ^ pickup.c:210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_here(picked_some) ^ pickup.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n_or_more(obj) ^ pickup.c:254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_valid_menu_class(c) ^ pickup.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] all_but_uchain(obj) ^ pickup.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] allow_all(obj) ^ pickup.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] allow_category(obj) ^ pickup.c:311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_worn_by_type(otmp) ^ pickup.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pickup(what) ^ pickup.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] autopick(olist, follow, pick_list) ^ pickup.c:543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] query_objlist(qstr, olist, qflags, pick_list, how, allow) ^ pickup.c:635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] query_category(qstr, olist, qflags, pick_list, how) ^ pickup.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] count_categories(olist, qflags) ^ pickup.c:778:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long carry_count(obj, container, count, telekinesis, wt_before, wt_after) ^ pickup.c:908:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int lift_object(obj, container, cnt_p, telekinesis) ^ pickup.c:963:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pickup_object(obj, count, telekinesis) ^ pickup.c:1083:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pick_obj(otmp) ^ pickup.c:1248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mbag_explodes(obj, depthin) ^ pickup.c:1277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_container(obj) ^ pickup.c:1422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ck_bag(obj) ^ pickup.c:1430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] out_container(obj) ^ pickup.c:1496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_container(obj, held) ^ pickup.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] menu_loot(retry, container, put_in) ^ pickup.c:1767:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_or_out_menu(prompt, obj) ^ 78 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c pline.c In file included from pline.c:6: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from pline.c:6: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from pline.c:6: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ pline.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] You_buf(siz) int siz; { ^ pline.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] align_str(alignment) ^ pline.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mstatusline(mtmp) ^ 55 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c polyself.c In file included from polyself.c:13: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from polyself.c:13: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ polyself.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] polyman(fmt, arg) ^ polyself.c:305:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:305:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ polyself.c:332:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (tries==5) pline(thats_enough_tries); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:332:23: note: treat the string as an argument to avoid this if (tries==5) pline(thats_enough_tries); ^ "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^ polyself.c:396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] polymon(mntmp) /* returns 1 if polymorph successful */ ^ polyself.c:719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drop_weapon(alone) ^ polyself.c:737:4: warning: call to undeclared function 'uswapwepgone'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] uswapwepgone(); ^ polyself.c:1086:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] body_part(part) ^ polyself.c:1179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ugolemeffects(damtype, dam) ^ polyself.c:1207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] armor_to_dragon(atyp) ^ 61 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c potion.c In file included from potion.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from potion.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from potion.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ potion.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] itimeout(val) ^ potion.c:31:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] itimeout_incr(old, incr) ^ potion.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_itimeout(which, val) ^ potion.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] incr_itimeout(which, incr) ^ potion.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_confused(xtime,talk) ^ potion.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_stunned(xtime,talk) ^ potion.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_sick(xtime, cause, talk, type) ^ potion.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_vomiting(xtime, talk) ^ potion.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_blinded(xtime, talk) ^ potion.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_hallucinated(xtime, talk, mask) ^ potion.c:230:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (!Blind && talk) pline(message); ^~~~~~~ potion.c:230:32: note: treat the string as an argument to avoid this if (!Blind && talk) pline(message); ^ "%s", potion.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dopotion(otmp) ^ potion.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] peffects(otmp) ^ potion.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] healup(nhp, nxtra, curesick, cureblind) ^ potion.c:835:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strange_feeling(obj,txt) ^ potion.c:843:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(txt); ^~~ potion.c:843:9: note: treat the string as an argument to avoid this pline(txt); ^ "%s", potion.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] potionhit(mon, obj) ^ potion.c:1036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] potionbreathe(obj) ^ potion.c:1151:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (!objects[obj->otyp].oc_name_known && ^ potion.c:1157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mixtype(o1, o2) ^ potion.c:1254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_wet(obj) ^ potion.c:1669:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] djinni_from_bottle(obj) ^ 74 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c pray.c In file included from pray.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from pray.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from pray.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ pray.c:209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fix_worst_trouble(trouble) ^ pray.c:389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] god_zaps_you(resp_god) ^ pray.c:411:28: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] } else if(Reflecting && W_ARMS) { ^ ~~~~~~ pray.c:411:28: note: use '&' for a bitwise operation } else if(Reflecting && W_ARMS) { ^~ & pray.c:411:28: note: remove constant to silence this warning } else if(Reflecting && W_ARMS) { ~^~~~~~~~~ pray.c:477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fry_by_god(resp_god) ^ pray.c:490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] angrygods(resp_god) ^ pray.c:566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pleased(g_align) ^ pray.c:876:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] water_prayer(bless_water) ^ pray.c:903:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] godvoice(g_align, words) ^ pray.c:918:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gods_angry(g_align) ^ pray.c:926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gods_upset(g_align) ^ pray.c:937:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] consume_offering(otmp) ^ pray.c:962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] god_gives_pet(alignment) ^ pray.c:1255:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pray.c:1255:8: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ pray.c:1485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] can_pray(praying) ^ pray.c:1730:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] a_gname_at(x,y) /* returns the name of an altar's deity */ ^ pray.c:1745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] align_gname(alignment) ^ pray.c:1766:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] altar_wrath(x, y) ^ 69 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c priest.c In file included from priest.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from priest.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from priest.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ priest.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_special(mtmp,in_his_shop,appr,uondoor,avoid,omx,omy,gx,gy) ^ priest.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] temple_occupied(array) ^ priest.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] histemple_at(priest, x, y) ^ priest.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pri_move(priest) ^ priest.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] priestini(lvl, sroom, sx, sy, sanctum) ^ priest.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] priestname(mon, pname) ^ priest.c:291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p_coaligned(priest) ^ priest.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] has_shrine(pri) ^ priest.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findpriest(roomno) ^ priest.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] intemple(roomno) ^ priest.c:359:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] verbalize(msg1); ^~~~ priest.c:359:17: note: treat the string as an argument to avoid this verbalize(msg1); ^ "%s", priest.c:360:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (msg2) verbalize(msg2); ^~~~ priest.c:360:27: note: treat the string as an argument to avoid this if (msg2) verbalize(msg2); ^ "%s", priest.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] priest_talk(priest) ^ priest.c:424:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] verbalize(cranky_msg[rn2(3)]); ^~~~~~~~~~~~~~~~~~ priest.c:424:16: note: treat the string as an argument to avoid this verbalize(cranky_msg[rn2(3)]); ^ "%s", priest.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mk_roamer(ptr, alignment, x, y, peaceful) ^ priest.c:531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reset_hostility(roamer) ^ priest.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_your_sanctuary(x, y) ^ priest.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ghod_hitsu(priest) /* when attacking "priest" in his temple */ ^ priest.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restpriest(mtmp, ghostly) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c quest.c In file included from quest.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from quest.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from quest.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ quest.c:153:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_pure(talk) ^ quest.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] expulsion(seal) ^ quest.c:273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] leader_speaks(mtmp) ^ quest.c:322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quest_chat(mtmp) ^ quest.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quest_talk(mtmp) ^ quest.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quest_stat_check(mtmp) ^ 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c questpgr.c In file included from questpgr.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from questpgr.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ questpgr.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fread(ptr, size, nitems, stream) ^ questpgr.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] construct_qtlist(hdr_offset) ^ questpgr.c:344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quest_info(typ) ^ questpgr.c:377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_quest_artifact(otmp) ^ questpgr.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msg_in(qtm_list, msgnum) ^ questpgr.c:431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] convert_arg(c) ^ questpgr.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deliver_by_pline(qt_msg) ^ questpgr.c:567:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(out_line); ^~~~~~~~ questpgr.c:567:12: note: treat the string as an argument to avoid this pline(out_line); ^ "%s", questpgr.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deliver_by_window(qt_msg, how) ^ questpgr.c:590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] com_pager(msgnum) ^ questpgr.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qt_pager(msgnum) ^ 63 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c read.c In file included from read.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from read.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from read.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ read.c:94:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(epitaph); ^~~~~~~ read.c:94:10: note: treat the string as an argument to avoid this pline(epitaph); ^ "%s", read.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stripspe(obj) ^ read.c:237:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (obj->blessed) pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:237:26: note: treat the string as an argument to avoid this if (obj->blessed) pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:244:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:244:16: note: treat the string as an argument to avoid this } else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p_glow1(otmp) ^ read.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p_glow2(otmp,color) ^ read.c:270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_chargeable(obj) ^ read.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] recharge(obj, curse_bless) ^ read.c:317:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:317:20: note: treat the string as an argument to avoid this } else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:378:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:378:10: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:422:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:422:20: note: treat the string as an argument to avoid this } else pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:464:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forget_single_object(obj_id) ^ read.c:497:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] randomize(indices, count) ^ read.c:514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forget_objects(percent) ^ read.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forget_map(howmuch) ^ read.c:574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forget_levels(percent) ^ read.c:620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forget(howmuch) ^ read.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seffects(sobj) ^ read.c:938:25: warning: '/*' within block comment [-Wcomment] /* break; /*NOTREACHED*/ ^ read.c:1164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wand_explode(obj) ^ read.c:1178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_lit(x,y,val) ^ read.c:1191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] litroom(on,obj) ^ read.c:1263:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] set_lit, (genericptr_t)((on)? 1 : -1)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1294:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(thats_enough_tries); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1294:10: note: treat the string as an argument to avoid this pline(thats_enough_tries); ^ "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^ read.c:1401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_genocide(how) ^ read.c:1421:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(thats_enough_tries); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1421:13: note: treat the string as an argument to avoid this pline(thats_enough_tries); ^ "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^ read.c:1512:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1512:9: note: treat the string as an argument to avoid this pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ read.c:1517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] punish(sobj) ^ read.c:1564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cant_create(mtype) ^ read.c:1593:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (tries == 5) pline(thats_enough_tries); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1593:24: note: treat the string as an argument to avoid this if (tries == 5) pline(thats_enough_tries); ^ "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^ 82 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c rect.c In file included from rect.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from rect.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from rect.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ rect.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_rect_ind(r) ^ rect.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_rect(r) ^ rect.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] intersect(r1, r2, r3) ^ rect.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_rect(r) ^ rect.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_rect(r) ^ rect.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] split_rects(r1, r2) ^ 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c restore.c In file included from restore.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from restore.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from restore.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ restore.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restlevchn(fd) ^ restore.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restdamage(fd, ghostly) ^ restore.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restobjchn(fd, ghostly, frozen) ^ restore.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restmonchn(fd, ghostly) ^ restore.c:300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadfruitchn(fd) ^ restore.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freefruitchn(flist) ^ restore.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ghostfruit(otmp) ^ restore.c:344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restgamestate(fd, mid) ^ restore.c:434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restlevelstate(mid) ^ restore.c:449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restlevelfile(fd, ltmp) ^ restore.c:508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dorecover(fd) ^ restore.c:632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getlev(fd, pid, lev, ghostly) ^ restore.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_id_mapping(gid, nid) ^ restore.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lookup_id_mapping(gid, nidp) ^ restore.c:980:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mread(fd, buf, len) ^ 67 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c rip.c In file included from rip.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from rip.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from rip.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ rip.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] center(line, text) ^ rip.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] genl_outrip(tmpwin, how) ^ 54 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c rnd.c In file included from rnd.c:4: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from rnd.c:4: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ rnd.c:22:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rn2(x) /* 0 <= rn2(x) < x */ ^ rnd.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnl(x) /* 0 <= rnl(x) < x; sometimes subtracting Luck */ ^ rnd.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnd(x) /* 1 <= rnd(x) <= x */ ^ rnd.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] d(n,x) /* n <= d(n,x) <= (n*x) */ ^ rnd.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rne(x) ^ rnd.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rnz(i) ^ 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c rumors.c In file included from rumors.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from rumors.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ rumors.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_rumors(fp) ^ rumors.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getrumor(truth, rumor_buf) ^ rumors.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] outrumor(truth, cookie) ^ rumors.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_oracles(fp) ^ rumors.c:177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_oracles(fd, mode) ^ rumors.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_oracles(fd) ^ rumors.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] outoracle(special) ^ rumors.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doconsult(oracl) ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c save.c In file included from save.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from save.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from save.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ save.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hangup(sig_unused) /* called as signal() handler, so sent at least one arg */ ^ save.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savegamestate(fd, mode) ^ save.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savelev(fd,lev,mode) ^ save.c:624:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bufon(fd) ^ save.c:638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bufoff(fd) ^ save.c:646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bflush(fd) ^ save.c:659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bwrite(fd,loc,num) ^ save.c:699:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bclose(fd) ^ save.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savelevchn(fd, mode) ^ save.c:738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savedamage(fd, mode) ^ save.c:763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] saveobjchn(fd, otmp, mode) ^ save.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savemonchn(fd, mtmp, mode) ^ save.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savetrapchn(fd, trap, mode) ^ save.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savefruitchn(fd, mode) ^ 66 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c shk.c In file included from shk.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from shk.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from shk.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from shk.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from shk.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from shk.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from shk.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ shk.c:91:8: warning: '/*' within block comment [-Wcomment] #endif /* BLACKMARKET */ ^ shk.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_shkp(shkp, withbill) ^ shk.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shkname(mtmp) /* called in do_name.c */ ^ shk.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shkgone(mtmp) /* called in mon.c */ ^ shk.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_residency(shkp, zero_out) ^ shk.c:159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] replshk(mtmp,mtmp2) ^ shk.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restshk(shkp, ghostly) ^ shk.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_unpaid(list) ^ shk.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setpaid(shkp) /* either you paid or left the shop or the shopkeeper died */ ^ shk.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addupbill(shkp) ^ shk.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] call_kops(shkp, nearshop) ^ shk.c:340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inside_shop(x, y) ^ shk.c:353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_left_shop(leavestring, newlev) ^ shk.c:431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_entered_shop(enterstring) ^ shk.c:542:8: warning: '/*' within block comment [-Wcomment] #endif /* BLACKMARKET */ ^ shk.c:549:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean same_price(obj1, obj2) ^ shk.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shop_debt(eshkp) ^ shk.c:633:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inhishop(mtmp) ^ shk.c:642:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shop_keeper(rmno) ^ shk.c:659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tended_shop(sroom) ^ shk.c:671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] onbill(obj, shkp, silent) ^ shk.c:692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delete_contents(obj) ^ shk.c:705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obfree(obj, merge) ^ shk.c:751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_credit(tmp, shkp) ^ shk.c:771:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pay(tmp,shkp) ^ shk.c:792:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] home_shk(shkp, killkops) ^ shk.c:823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pacify_shk(shkp) ^ shk.c:842:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rile_shk(shkp) ^ shk.c:860:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_happy_shk(shkp, silentkops) ^ shk.c:904:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hot_pursuit(shkp) ^ shk.c:919:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_angry_shk(shkp, ox, oy) ^ shk.c:960:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cheapest_item(shkp) /* delivers the cheapest item on the list */ ^ shk.c:1184:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(sbuf); ^~~~ shk.c:1184:9: note: treat the string as an argument to avoid this pline(sbuf); ^ "%s", shk.c:1305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dopayobj(shkp, bp, obj_p, which, itemize) ^ shk.c:1400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paybill(croaked) ^ shk.c:1434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inherits(shkp, numsk, croaked) ^ shk.c:1517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_repo_loc(eshkp) ^ shk.c:1565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bp_to_obj(bp) ^ shk.c:1584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_oid(id) ^ shk.c:1613:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_cost(obj, shkp) ^ shk.c:1688:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] contained_cost(obj, shkp, price, usell) ^ shk.c:1719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] contained_gold(obj) ^ shk.c:1736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dropped_container(obj, shkp, sale) ^ shk.c:1756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] picked_container(obj) ^ shk.c:1777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_cost(obj, shkp) ^ shk.c:1815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unpaid_cost(unp_obj) ^ shk.c:1832:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_one_tobill(obj, dummy) ^ shk.c:1875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_to_billobjs(obj) ^ shk.c:1890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bill_box_content(obj, ininv, dummy, shkp) ^ shk.c:1911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_names_obj(shkp, obj, fmt, amt, arg) ^ shk.c:1946:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addtobill(obj, ininv, dummy, silent) ^ shk.c:2054:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] splitbill(obj, otmp) ^ shk.c:2092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sub_one_frombill(obj, shkp) ^ shk.c:2135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] subfrombill(obj, shkp) ^ shk.c:2158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stolen_container(obj, shkp, price, ininv) ^ shk.c:2203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stolen_value(obj, x, y, peaceful, silent) ^ shk.c:2263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sellobj_state(deliberate) /* called from dodrop(do.c) and doddrop() */ ^ shk.c:2277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sellobj(obj, x, y) ^ shk.c:2486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doinvbill(mode) ^ shk.c:2576:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getprice(obj, shk_buying) ^ shk.c:2611:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shkcatch(obj, x, y) ^ shk.c:2641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_damage(x, y, cost) ^ shk.c:2689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_damage(shkp, croaked) ^ shk.c:2784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] repair_damage(shkp, tmp_dam, catchup) ^ shk.c:2912:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_move(shkp) ^ shk.c:3019:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_fshk(mtmp) ^ shk.c:3027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shopdig(fall) ^ shk.c:3085:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makekops(mm) ^ shk.c:3131:41: warning: '/*' within block comment [-Wcomment] /* k_cnt[1] = (cnt / 3) + 1; /* at least one sarge */ ^ shk.c:3132:41: warning: '/*' within block comment [-Wcomment] /* k_cnt[2] = (cnt / 6); /* maybe a lieutenant */ ^ shk.c:3133:41: warning: '/*' within block comment [-Wcomment] /* k_cnt[3] = (cnt / 9); /* and maybe a kaptain */ ^ shk.c:3148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pay_for_damage(dmgstr) ^ shk.c:3298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] costly_spot(x, y) ^ shk.c:3317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shop_object(x, y) ^ shk.c:3337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] price_quote(first_obj) ^ shk.c:3386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_embellish(itm, cost) ^ shk.c:3431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_chat(shkp) ^ shk.c:3473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kops_gone(silent) ^ shk.c:3496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cost_per_charge(shkp, otmp) ^ shk.c:3544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_unpaid(otmp) ^ shk.c:3578:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] costly_gold(x, y, amount) ^ shk.c:3615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] block_door(x,y) ^ shk.c:3647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] block_entry(x,y) ^ shk.c:3684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_your(buf, obj) ^ shk.c:3694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Shk_Your(buf, obj) ^ shk.c:3704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_owns(buf, obj) ^ shk.c:3721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_owns(buf, obj) ^ shk.c:3870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_identify(slang, shkp) ^ shk.c:3887:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (guesswork = !shk_obj_match(obj, shkp)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ shk.c:3887:16: note: place parentheses around the assignment to silence this warning if (guesswork = !shk_obj_match(obj, shkp)) ^ ( ) shk.c:3887:16: note: use '==' to turn this assignment into an equality comparison if (guesswork = !shk_obj_match(obj, shkp)) ^ == shk.c:3926:14: warning: implicit conversion from 'double' to 'int' changes value from 1.5 to 1 [-Wliteral-conversion] else mult = 1.5; ~ ^~~ shk.c:4009:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_uncurse(slang, shkp) ^ shk.c:4082:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_appraisal(slang, shkp) ^ shk.c:4180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_weapon_works(slang, shkp) ^ shk.c:4305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_armor_works(slang, shkp) ^ shk.c:4407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_charge(slang, shkp) ^ shk.c:4524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_obj_match(obj, shkp) ^ shk.c:4542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_class_match(class, shkp) ^ shk.c:4572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_offer_price(slang, charge, shkp) ^ shk.c:4614:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shk_smooth_charge(pcharge, lower, upper) ^ shk.c:4668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] blkmar_guards(shkp) ^ 152 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c shknam.c In file included from shknam.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from shknam.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ shknam.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkshobj_at(shp, sx, sy) ^ shknam.c:301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nameshk(shk, nlp) ^ shknam.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shkinit(shp, sroom) /* create a new shopkeeper in the given room */ ^ shknam.c:489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stock_room(shp_indx, sroom) ^ shknam.c:567:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stock_blkmar(shp, sroom, sh) ^ shknam.c:597:5: warning: array index 12 is past the end of the array (that has type 'int[12]') [-Warray-bounds] goodcl[12] = 0; ^ ~~ shknam.c:583:5: note: array 'goodcl' declared here int goodcl[12]; ^ shknam.c:676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] saleable(shkp, obj) ^ shknam.c:694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_shop_item(type) ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c sit.c In file included from sit.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from sit.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from sit.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c sounds.c In file included from sounds.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from sounds.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ sounds.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_in_room(mon, rmtyp) ^ sounds.c:51:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(fountain_msg[rn2(3)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:51:11: note: treat the string as an argument to avoid this You_hear(fountain_msg[rn2(3)+hallu]); ^ "%s", sounds.c:60:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(sink_msg[rn2(2)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:60:11: note: treat the string as an argument to avoid this You_hear(sink_msg[rn2(2)+hallu]); ^ "%s", sounds.c:78:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (which != 2) You_hear(throne_msg[which]); ^~~~~~~~~~~~~~~~~ sounds.c:78:28: note: treat the string as an argument to avoid this if (which != 2) You_hear(throne_msg[which]); ^ "%s", sounds.c:89:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(swamp_msg[rn2(2)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:89:6: note: treat the string as an argument to avoid this You(swamp_msg[rn2(2)+hallu]); ^ "%s", sounds.c:192:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(barracks_msg[rn2(3)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:192:12: note: treat the string as an argument to avoid this You_hear(barracks_msg[rn2(3)+hallu]); ^ "%s", sounds.c:205:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(zoo_msg[rn2(2)+hallu]); ^~~~~~~~~~~~~~~~~~~~~ sounds.c:205:12: note: treat the string as an argument to avoid this You_hear(zoo_msg[rn2(2)+hallu]); ^ "%s", sounds.c:222:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(shop_msg[rn2(2)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:222:15: note: treat the string as an argument to avoid this You_hear(shop_msg[rn2(2)+hallu]); ^ "%s", sounds.c:240:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You_hear(ora_msg[rn2(3)+hallu*2]); ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:240:15: note: treat the string as an argument to avoid this You_hear(ora_msg[rn2(3)+hallu*2]); ^ "%s", sounds.c:252:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(blkmar_msg[rn2(2)+hallu]); ^~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:252:13: note: treat the string as an argument to avoid this pline(blkmar_msg[rn2(2)+hallu]); ^ "%s", sounds.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] growl_sound(mtmp) ^ sounds.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] growl(mtmp) ^ sounds.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yelp(mtmp) ^ sounds.c:370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] whimper(mtmp) ^ sounds.c:401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] beg(mtmp) ^ sounds.c:414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domonnoise(mtmp) ^ sounds.c:709:35: warning: format string is not a string literal (potentially insecure) [-Wformat-security] else if (verbl_msg) verbalize(verbl_msg); ^~~~~~~~~ sounds.c:709:35: note: treat the string as an argument to avoid this else if (verbl_msg) verbalize(verbl_msg); ^ "%s", 69 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c sp_lev.c In file included from sp_lev.c:12: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ sp_lev.c:14:18: warning: '/*' within block comment [-Wcomment] /* #define DEBUG /* uncomment to enable code debugging */ ^ sp_lev.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_wall_property(x1,y1,x2,y2, prop) ^ sp_lev.c:169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_location(x, y, humidity) ^ sp_lev.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_ok_location(x, y, humidity) ^ sp_lev.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sp_lev_shuffle(list1, list2, n) ^ sp_lev.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_room_loc(x,y, croom) ^ sp_lev.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_free_room_loc(x,y, croom) ^ sp_lev.c:304:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_room(lowx, ddx, lowy, ddy, vault) ^ sp_lev.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_room(x,y,w,h,xal,yal,rtype,rlit) ^ sp_lev.c:531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_subroom(proom, x, y, w, h, rtype, rlit) ^ sp_lev.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_door(dd, broom) ^ sp_lev.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_secret_door(croom, walls) ^ sp_lev.c:706:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_trap(t,croom) ^ sp_lev.c:733:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_monster(m,croom) ^ sp_lev.c:902:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_object(o,croom,egg_type) ^ sp_lev.c:965:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ sp_lev.c:1036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_engraving(e, croom) ^ sp_lev.c:1058:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_stairs(s,croom) ^ sp_lev.c:1074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_altar(a, croom) ^ sp_lev.c:1140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_gold(g,croom) ^ sp_lev.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_feature(fx, fy, croom, typ) ^ sp_lev.c:1205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] search_door(croom,x,y,wall,cnt) ^ sp_lev.c:1258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dig_corridor(org,dest,nxcor,ftyp,btyp) ^ sp_lev.c:1368:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register i; ~~~~~~~~ ^ int sp_lev.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_corridor(c) ^ sp_lev.c:1450:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_room(croom, prefilled) ^ sp_lev.c:1511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_rooms(ro, n) ^ sp_lev.c:1583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] build_room(r, pr) ^ sp_lev.c:1666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] light_region(tmpregion) ^ sp_lev.c:1692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_common_data(fd, typ) ^ sp_lev.c:1738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_one_monster(fd, m) ^ sp_lev.c:1760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_one_object(fd, o) ^ sp_lev.c:1776:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_one_engraving(fd, e) ^ sp_lev.c:1790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_rooms(fd) ^ sp_lev.c:2020:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maze1xy(m, humidity) ^ sp_lev.c:2046:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_maze(fd) ^ sp_lev.c:2095:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ sp_lev.c:2543:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ sp_lev.c:2606:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_special(name) ^ 91 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c spell.c In file included from spell.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from spell.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from spell.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ spell.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursed_book(lev) ^ spell.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deadbook(book2) ^ spell.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] study_book(spellbook) ^ spell.c:480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getspell(spell_no) ^ spell.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spelleffects(spell, atme) ^ spell.c:864:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dospellmenu(how, spell_no) ^ spell.c:916:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] percent_success(spell) ^ 59 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c steal.c In file included from steal.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from steal.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from steal.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ steal.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] equipname(otmp) ^ steal.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stealgold(mtmp) ^ steal.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lose_worn_item(obj) ^ steal.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] steal(mtmp) ^ steal.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpickobj(mtmp,otmp) ^ steal.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stealamulet(mtmp) ^ steal.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] relobj(mtmp,show,is_pet) ^ 59 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c teleport.c In file included from teleport.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from teleport.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ teleport.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goodpos(x, y, mtmp, mdat) ^ teleport.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enexto(cc, xx, yy, mdat) ^ teleport.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tele_jump_ok(x1, y1, x2, y2) ^ teleport.c:169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] teleok(x, y, trapok) ^ teleport.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] teleds(nux, nuy) ^ teleport.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] teleport_pet(mtmp) ^ teleport.c:426:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:426:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:487:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:487:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:504:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:504:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:510:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:510:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domagicportal(ttmp) ^ teleport.c:604:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:604:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tele_trap(trap) ^ teleport.c:638:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(shudder_for_moment); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:638:7: note: treat the string as an argument to avoid this You(shudder_for_moment); ^ "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' #define shudder_for_moment c_common_strings.c_shudder_for_moment ^ teleport.c:648:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] level_tele_trap(trap) ^ teleport.c:672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rloc_pos_ok(x, y, mtmp) ^ teleport.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rloc_to(mtmp, x, y) ^ teleport.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rloc(mtmp) ^ teleport.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mvault_tele(mtmp) ^ teleport.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tele_restrict(mon) ^ teleport.c:837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mtele_trap(mtmp, trap, in_sight) ^ teleport.c:868:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mlevel_tele_trap(mtmp, trap, in_sight) ^ teleport.c:948:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rloco(obj) ^ 75 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c timeout.c In file included from timeout.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from timeout.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ timeout.c:33:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(stoned_texts[SIZE(stoned_texts) - i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:33:9: note: treat the string as an argument to avoid this pline(stoned_texts[SIZE(stoned_texts) - i]); ^ "%s", timeout.c:56:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(slime_texts[SIZE(slime_texts) - i - 1]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:56:9: note: treat the string as an argument to avoid this pline(slime_texts[SIZE(slime_texts) - i - 1]); ^ "%s", timeout.c:78:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(vomiting_texts[SIZE(vomiting_texts) - i - 1]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:78:9: note: treat the string as an argument to avoid this pline(vomiting_texts[SIZE(vomiting_texts) - i - 1]); ^ "%s", timeout.c:380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fall_asleep(how_long, wakeup_msg) ^ timeout.c:393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attach_egg_hatch_timeout(egg) ^ timeout.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kill_egg(egg) ^ timeout.c:427:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hatch_egg(arg, timeout) ^ timeout.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] learn_egg_type(mnum) ^ timeout.c:642:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] see_lamp_flicker(obj, tailer) ^ timeout.c:659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lantern_message(obj) ^ timeout.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] burn_object(arg, timeout) ^ timeout.c:983:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] begin_burn(obj, already_lit) ^ timeout.c:1067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] end_burn(obj, timer_attached) ^ timeout.c:1245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kind_name(kind) ^ timeout.c:1258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] print_queue(win, base) ^ timeout.c:1357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_timer(when, kind, func_index, arg) ^ timeout.c:1391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stop_timer(func_index, arg) ^ timeout.c:1415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_move_timers(src, dest) ^ timeout.c:1437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_split_timers(src, dest) ^ timeout.c:1457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_stop_timers(obj) ^ timeout.c:1480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] insert_timer(gnu) ^ timeout.c:1497:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_timer(base, func_index, arg) ^ timeout.c:1538:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] timer->arg = (genericptr_t)((struct obj *)timer->arg)->o_id; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1552:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] timer->arg = (genericptr_t)((struct monst *)timer->arg)->m_id; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_timer(fd, timer) ^ timeout.c:1572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_is_local(obj) ^ timeout.c:1593:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_is_local(mon) ^ timeout.c:1612:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] timer_is_local(timer) ^ timeout.c:1631:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maybe_write_timer(fd, range, write_it) ^ timeout.c:1676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_timers(fd, mode, range) ^ timeout.c:1715:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_timers(fd, range, ghostly, adjust) ^ timeout.c:1740:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] relink_timers(ghostly) ^ timeout.c:1750:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] if (!lookup_id_mapping((unsigned)curr->arg, &nid)) ^~~~~~~~~~~~~~~~~~~ timeout.c:1753:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] nid = (unsigned) curr->arg; ^~~~~~~~~~~~~~~~~~~~ 86 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c topten.c In file included from topten.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from topten.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from topten.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ topten.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] topten_print(x) ^ topten.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] topten_print_bold(x) ^ topten.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] observable_depth(lev) ^ topten.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readentry(rfile,tt) ^ topten.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeentry(rfile,tt) ^ topten.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_ttlist(tt) ^ topten.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] topten(how) ^ topten.c:296:18: warning: call to undeclared function 'yyyymmdd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] t0->birthdate = yyyymmdd(u.ubirthday); ^ topten.c:514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] outentry(rank, t1, so) ^ topten.c:649:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] score_wanted(current_ver, rank, t1, playerct, players, uid) ^ topten.c:687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prscore(argc,argv) ^ topten.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] classmon(plch, fem) ^ topten.c:841:21: warning: '/*' within block comment [-Wcomment] /* case 'N': /* accept old Ninja class */ ^ topten.c:861:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tt_oname(otmp) ^ 66 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c track.c In file included from track.c:6: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from track.c:6: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from track.c:6: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ track.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettrack(x, y) ^ 53 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c trap.c In file included from trap.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from trap.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from trap.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ trap.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rust_dmg(otmp, ostr, type, print) ^ trap.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] grease_protect(otmp,ostr,plu) ^ trap.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maketrap(x,y,typ) ^ trap.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fall_through(td) ^ trap.c:296:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(dont_fall); ^~~~~~~~~ trap.c:296:10: note: treat the string as an argument to avoid this You(dont_fall); ^ "%s", trap.c:324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] activate_statue_trap(trap, x, y, shatter) ^ trap.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dotrap(trap) ^ trap.c:783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] blow_up_landmine(trap) ^ trap.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] launch_obj(otyp, x1, y1, x2, y2, style) ^ trap.c:932:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seetrap(trap) ^ trap.c:945:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkroll_launch(ttmp, x, y, otyp, ocount) ^ trap.c:1007:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isclearpath(cc,distance,dx,dy) ^ trap.c:1032:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mintrap(mtmp) ^ trap.c:1421:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] instapetrify(str) ^ trap.c:1434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] minstapetrify(mon,byplayer) ^ trap.c:1452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] selftouch(arg) ^ trap.c:1493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mselftouch(mon,arg,byplayer) ^ trap.c:1546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_pit(x, y) ^ trap.c:1561:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] float_down(override_mask) ^ trap.c:1646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dofiretrap(box) ^ trap.c:1791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] water_damage(obj, force, here) ^ trap.c:1850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] emergency_disrobe(lostsome) ^ trap.c:1951:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ trap.c:2036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drain_en(n) ^ trap.c:2076:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] untrap_prob(ttmp) ^ trap.c:2096:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cnv_trap_obj(otyp, cnt, ttmp) ^ trap.c:2114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_into_trap(ttmp) ^ trap.c:2140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] try_disarm(ttmp, force_failure) ^ trap.c:2189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reward_untrap(ttmp, mtmp) ^ trap.c:2209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disarm_beartrap(ttmp) /* Helge Hafting */ ^ trap.c:2232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disarm_landmine(ttmp) /* Helge Hafting */ ^ trap.c:2248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disarm_squeaky_board(ttmp) ^ trap.c:2282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] disarm_shooting_trap(ttmp, otyp) ^ trap.c:2297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] try_lift(mtmp, ttmp, wt, stuff) ^ trap.c:2320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] help_monster_out(mtmp, ttmp) ^ trap.c:2385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] untrap(force) ^ trap.c:2543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chest_trap(obj, bodypart, disarm) ^ trap.c:2709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] t_at(x,y) ^ trap.c:2724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deltrap(trap) ^ trap.c:2738:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean delfloortrap(ttmp) ^ trap.c:2772:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] b_trapped(item, bodypart) ^ trap.c:2790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thitm(tlev, mon, obj, d_override) ^ 94 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c u_init.c In file included from u_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from u_init.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ u_init.c:606:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] knows_object(obj) ^ u_init.c:617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] knows_class(sym) ^ u_init.c:627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] role_index(pc) ^ u_init.c:715:14: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] (void) time((long *)&u.ubirthday); ^~~~~~~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here time_t time(time_t *); ^ u_init.c:1209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ini_inv(trop) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c uhitm.c In file included from uhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from uhitm.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ uhitm.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attack_checks(mtmp, wep) ^ uhitm.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_roll_to_hit(mtmp) ^ uhitm.c:150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attack(mtmp) ^ uhitm.c:217:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (!cantwield(uasmon)) ^ uhitm.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] known_hitum(mon, mhit, uattk) /* returns TRUE if monster still lives */ ^ uhitm.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitum(mon, tmp, uattk) /* returns TRUE if monster still lives */ ^ uhitm.c:322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hmon(mon, obj, thrown) /* return TRUE if mon still alive */ ^ uhitm.c:584:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ uhitm.c:992:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_slips_free(mdef, mattk) ^ uhitm.c:1047:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] steal_it(mdef, mattk) ^ uhitm.c:1128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] damageum(mdef, mattk) ^ uhitm.c:1425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] explum(mdef, mattk) ^ uhitm.c:1505:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_engulf(mdef) ^ uhitm.c:1528:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gulpum(mdef,mattk) ^ uhitm.c:1583:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] } else pline(msgbuf); ^~~~~~ uhitm.c:1583:17: note: treat the string as an argument to avoid this } else pline(msgbuf); ^ "%s", uhitm.c:1662:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] missum(mdef,mattk) ^ uhitm.c:1677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hmonas(mon, tmp) /* attack monster as a monster. */ ^ uhitm.c:1784:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else if(i >= 2 && sum[i-1] && sum[i-2]) { ^ uhitm.c:1853:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passive(mon, mhit, malive, kicked) ^ uhitm.c:1916:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else ^ uhitm.c:2043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stumble_onto_mimic(mtmp) ^ uhitm.c:2066:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nohandglow(mon) ^ uhitm.c:2087:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int flash_hits_mon(mtmp, otmp) ^ 75 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c vault.c In file included from vault.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from vault.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from vault.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ vault.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_fcorr(grd, forceshow) ^ vault.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restfakecorr(grd) ^ vault.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] grddead(grd) /* called in mon.c */ ^ vault.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_fcorridor(grd, x, y) ^ vault.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] vault_occupied(array) ^ vault.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_gold(gold, vroom) ^ vault.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wallify_vault(grd) ^ vault.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gd_move(grd) ^ vault.c:501:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ 61 warnings generated. ./makedefs -z close: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 _far_: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c vision.c In file included from vision.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from vision.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from vision.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ vision.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] does_block(x,y,lev) ^ vision.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_unused_cs(rows, rmin, rmax) ^ vision.c:299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rogue_vision(next, rmin, rmax) ^ vision.c:351:25: warning: '/*' within block comment [-Wcomment] /*#define EXTEND_SPINE /* possibly better looking wall-angle */ ^ vision.c:491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] vision_recalc(control) ^ vision.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] block_point(x,y) ^ vision.c:817:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unblock_point(x,y) ^ vision.c:877:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dig_point(row,col) ^ vision.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_point(row,col) ^ vision.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _q1_path(srow,scol,y2,x2) ^ vision.c:1340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _q4_path(srow,scol,y2,x2) ^ vision.c:1384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _q2_path(srow,scol,y2,x2) ^ vision.c:1428:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _q3_path(srow,scol,y2,x2) ^ vision.c:1478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_path(col1,row1,col2,row2) ^ vision.c:1556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_shadow(side,this_row,block_row,block_col) ^ vision.c:1585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] far_shadow(side,this_row,block_row,block_col) ^ vision.c:1625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] right_side(row, cb_row, cb_col, fb_row, fb_col, left, right_mark, limits) ^ vision.c:1881:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] left_side(row, cb_row, cb_col, fb_row, fb_col, left_mark, right, limits) ^ vision.c:2063:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] view_from(srow,scol,loc_cs_rows,left_most,right_most, range, func, arg) ^ vision.c:2566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_clear_area(scol,srow,range,func,arg) ^ 72 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c vis_tab.c In file included from vis_tab.c:2: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from vis_tab.c:2: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from vis_tab.c:2: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from vis_tab.c:2: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from vis_tab.c:2: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from vis_tab.c:2: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ 50 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c weapon.c In file included from weapon.c:10: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from weapon.c:10: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ weapon.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hitval(otmp, mon) ^ weapon.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dmgval(otmp, mon) ^ weapon.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] oselect(mtmp, x) ^ weapon.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] select_rwep(mtmp) /* select a ranged weapon for the monster */ ^ weapon.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] select_hwep(mtmp) /* select a hand to hand weapon for the monster */ ^ weapon.c:424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] possibly_unwield(mon) ^ weapon.c:473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_wield_item(mon) ^ weapon.c:630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skill_level_name(skill, buf) ^ weapon.c:652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] slots_required(skill) ^ weapon.c:677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] can_advance(skill) ^ weapon.c:689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skill_advance(skill) ^ weapon.c:785:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unrestrict_weapon_skill(skill) ^ weapon.c:803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_skill(skill) ^ weapon.c:817:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_weapon_skill(n) ^ weapon.c:832:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lose_weapon_skill(n) ^ weapon.c:856:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weapon_type(obj) ^ weapon.c:988:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weapon_hit_bonus(weapon) ^ weapon.c:1027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weapon_dam_bonus(weapon) ^ weapon.c:1058:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skill_init(class_skill) ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c were.c In file included from were.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from were.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from were.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ were.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] were_change(mon) ^ were.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] counter_were(pm) ^ were.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_were(mon) ^ were.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] were_summon(ptr,yours) /* were-creature (even you) summons a horde */ ^ were.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] you_unwere(purify) ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c wield.c In file included from wield.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from wield.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from wield.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ wield.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setuwep(obj) ^ wield.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setuqwep(obj) ^ wield.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setuswapwep(obj) ^ wield.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setutempwep(obj) ^ wield.c:178:57: warning: if statement has empty body [-Wempty-body] if (!(wep = getobj(wield_objs, "wield"))) /* nothing */; ^ wield.c:178:57: note: put the semicolon on a separate line to silence this warning wield.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] erode_weapon(acid_dmg) ^ wield.c:357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chwepon(otmp, amount) ^ wield.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] welded(obj) ^ wield.c:448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weldmsg(obj) ^ 61 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c windows.c In file included from windows.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from windows.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from windows.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ windows.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] def_raw_print(s) ^ windows.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] choose_windows(s) ^ windows.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] genl_message_menu(let, how, mesg) ^ 55 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c wizard.c In file included from wizard.c:10: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from wizard.c:10: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ wizard.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_has_amulet(mtmp) ^ wizard.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_has_special(mtmp) ^ wizard.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] which_arti(mask) ^ wizard.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_has_arti(mtmp, otyp) ^ wizard.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] other_mon_has_arti(mtmp, otyp) ^ wizard.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] on_ground(otyp) ^ wizard.c:201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] you_have(mask) ^ wizard.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] target_on(mask, mtmp) ^ wizard.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strategy(mtmp) ^ wizard.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tactics(mtmp) ^ wizard.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nasty(mcast) ^ wizard.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cuss(mtmp) ^ 64 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c worm.c In file included from worm.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from worm.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from worm.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ worm.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initworm(worm, wseg_count) ^ worm.c:118:24: warning: '/*' within block comment [-Wcomment] /* if (!wnum) return; /* bullet proofing */ ^ worm.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toss_wsegs(curr, display_update) ^ worm.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shrink_worm(wnum) ^ worm.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] worm_move(worm) ^ worm.c:203:24: warning: '/*' within block comment [-Wcomment] /* if (!wnum) return; /* bullet proofing */ ^ worm.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] worm_nomove(worm) ^ worm.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wormgone(worm) ^ worm.c:268:24: warning: '/*' within block comment [-Wcomment] /* if (!wnum) return; /* bullet proofing */ ^ worm.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wormhitu(worm) ^ worm.c:294:24: warning: '/*' within block comment [-Wcomment] /* if (!wnum) return; /* bullet proofing */ ^ worm.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cutworm(worm, x, y, weap) ^ worm.c:440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] see_wsegs(worm) ^ worm.c:445:32: warning: '/*' within block comment [-Wcomment] /* if (!mtmp->wormno) return; /* bullet proofing */ ^ worm.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_worm(fd, mode) ^ worm.c:507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rest_worm(fd) ^ worm.c:540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_wsegs(worm) ^ worm.c:545:32: warning: '/*' within block comment [-Wcomment] /* if (!mtmp->wormno) return; /* bullet proofing */ ^ worm.c:562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_worm(worm) ^ worm.c:567:32: warning: '/*' within block comment [-Wcomment] /* if (!mtmp->wormno) return; /* bullet proofing */ ^ worm.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] place_worm_tail_randomly(worm, x, y) ^ worm.c:595:24: warning: '/*' within block comment [-Wcomment] /* if (!wnum) return; /* bullet proofing */ ^ worm.c:643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] random_dir(x, y, nx, ny) ^ worm.c:678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] count_wsegs(mtmp) ^ worm.c:684:34: warning: '/*' within block comment [-Wcomment] /* if (!mtmp->wormno) return 0; /* bullet proofing */ ^ worm.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_worm_tail(num_segs) ^ worm.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] worm_known(worm) ^ 79 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c worn.c In file included from worn.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from worn.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from worn.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ worn.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setworn(obj, mask) ^ worn.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setnotworn(obj) ^ worn.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_set_minvis(mon) ^ worn.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] update_mon_intrinsics(mon, obj, on) ^ worn.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_mac(mon) ^ worn.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_dowear(mon, creation) ^ worn.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_dowear_type(mon, flag, creation) ^ worn.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] which_armor(mon, flag) ^ worn.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m_lose_armor(mon, obj) ^ worn.c:348:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mon_break_armor(mon) ^ worn.c:401:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ worn.c:412:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 64 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c write.c In file included from write.c:4: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from write.c:4: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from write.c:4: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ write.c:12:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cost(otmp) ^ write.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dowrite(pen) ^ 54 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c zap.c In file included from zap.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from zap.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from zap.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ zap.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bhitm(mtmp, otmp) ^ zap.c:252:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else adjalign(-2); ^ zap.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] probe_monster(mtmp) ^ zap.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_obj_location(obj, xp, yp, locflags) ^ zap.c:355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_mon_location(mon, xp, yp, locflags) ^ zap.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] revive(obj) ^ zap.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] revive_egg(obj) ^ zap.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unturn_dead(mon) ^ zap.c:528:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] costly_cancel(obj) ^ zap.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cancel_item(obj) ^ zap.c:597:27: warning: '/*' within block comment [-Wcomment] /* case RIN_PROTECTION: /* not needed */ ^ zap.c:657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_resists(obj, ochance, achance) ^ zap.c:675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] obj_shudders(obj) ^ zap.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] polyuse(objhdr, mat, minwt) ^ zap.c:718:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ zap.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_polymon(obj) ^ zap.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_osshock(obj) ^ zap.c:822:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ zap.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] poly_obj(obj) ^ zap.c:962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bhito(obj, otmp) /* object obj was hit by the effect of wand otmp */ ^ zap.c:1095:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bhitpile(obj,fhito,tx,ty) ^ zap.c:1144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zappable(wand) ^ zap.c:1160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zapnodir(obj) ^ zap.c:1211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backfire(otmp) ^ zap.c:1235:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(!zappable(obj)) pline(nothing_happens); ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:1235:27: note: treat the string as an argument to avoid this if(!zappable(obj)) pline(nothing_happens); ^ "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' #define nothing_happens c_common_strings.c_nothing_happens ^ zap.c:1274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zapyourself(obj, ordinary) ^ zap.c:1532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cancel_monst(mdef, obj, youattack, allow_cancel_kill, self_cancel) ^ zap.c:1590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zap_updown(obj) ^ zap.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] weffects(obj) ^ zap.c:1762:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exclam(force) ^ zap.c:1772:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hit(str,mtmp,force) ^ zap.c:1783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] miss(str,mtmp) ^ zap.c:1810:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bhit(ddx,ddy,range,weapon,fhitm,fhito,obj) ^ zap.c:1954:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boomhit(dx, dy) ^ zap.c:2011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zhitm(mon, type, nd, ootmp) /* returns damage to mon */ ^ zap.c:2141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zhitu(type, nd, fltxt, sx, sy) ^ zap.c:2271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] burn_floor_paper(x, y, give_feedback) ^ zap.c:2334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buzz(type,nd,sx,sy,dx,dy) ^ zap.c:2571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] melt_ice(x, y) ^ zap.c:2613:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zap_over_floor(x, y, type, shopdamage) ^ zap.c:2639:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] Norep(msgtxt); ^~~~~~ zap.c:2639:9: note: treat the string as an argument to avoid this Norep(msgtxt); ^ "%s", zap.c:2762:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(see_txt); ^~~~~~~ zap.c:2762:10: note: treat the string as an argument to avoid this pline(see_txt); ^ "%s", zap.c:2765:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] You(sense_txt); ^~~~~~~~~ zap.c:2765:8: note: treat the string as an argument to avoid this You(sense_txt); ^ "%s", zap.c:2767:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (flags.soundok) You_hear(hear_txt); ^~~~~~~~ zap.c:2767:32: note: treat the string as an argument to avoid this if (flags.soundok) You_hear(hear_txt); ^ "%s", zap.c:2799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fracture_rock(obj) /* fractured by pick-axe or wand of striking */ ^ zap.c:2818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] break_statue(obj) ^ zap.c:2847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy_item(osym, dmgtyp) ^ zap.c:2971:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy_mitem(mtmp, osym, dmgtyp) ^ zap.c:3066:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resist(mtmp, oclass, damage, tell) ^ zap.c:3122:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(thats_enough_tries); ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:3122:12: note: treat the string as an argument to avoid this pline(thats_enough_tries); ^ "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' #define thats_enough_tries c_common_strings.c_thats_enough_tries ^ 102 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/share/ioctl.c ../sys/share/ioctl.c:2:1: warning: '/*' within block comment [-Wcomment] /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 53 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/unix/unixmain.c In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../sys/unix/unixmain.c:98:9: warning: passing arguments to 'chdirx' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chdirx(dir,0); ^ ../sys/unix/unixmain.c:117:8: warning: passing arguments to 'chdirx' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chdirx(dir,1); ^ ../sys/unix/unixmain.c:185:18: warning: '/*' within block comment [-Wcomment] #endif /* WIZARD /**/ ^ ../sys/unix/unixmain.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc,argv) ^ ../sys/unix/unixmain.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_options(argc, argv) ^ ../sys/unix/unixmain.c:381:17: warning: '/*' within block comment [-Wcomment] #endif /* CHDIR /**/ ^ ../sys/unix/unixmain.c:350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chdirx(dir, wr) ^ ../sys/unix/unixmain.c:28:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void chdirx(); ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/share/unixtty.c ../sys/share/unixtty.c:2:1: warning: '/*' within block comment [-Wcomment] /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../sys/share/unixtty.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] speednum(speed) ^ ../sys/share/unixtty.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] settty(s) ^ 55 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/unix/unixunix.c In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../sys/unix/unixunix.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gethdate(name) ^ ../sys/unix/unixunix.c:29:1: warning: '/*' within block comment [-Wcomment] /* register char *np; ^ ../sys/unix/unixunix.c:30:1: warning: '/*' within block comment [-Wcomment] /* if(stat(name, &hbuf)) ^ ../sys/unix/unixunix.c:31:1: warning: '/*' within block comment [-Wcomment] /* error("Cannot get status of %s.", ^ ../sys/unix/unixunix.c:32:1: warning: '/*' within block comment [-Wcomment] /* (np = rindex(name, '/')) ? np+1 : name); ^ ../sys/unix/unixunix.c:33:1: warning: '/*' within block comment [-Wcomment] /* ^ ../sys/unix/unixunix.c:34:1: warning: '/*' within block comment [-Wcomment] /* version using PATH from: seismo!gregc@ucsf-cgl.ARPA (Greg Couch) */ ^ ../sys/unix/unixunix.c:113:14: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] (void) time((long *)(&date)); ^~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here time_t time(time_t *); ^ ../sys/unix/unixunix.c:129:3: warning: '/*' within block comment [-Wcomment] /* This will work on 4.1cbsd, 4.2bsd and system 3? & 5. ^ ../sys/unix/unixunix.c:130:3: warning: '/*' within block comment [-Wcomment] /* It will do nothing on V7 or 4.1bsd. */ ^ ../sys/unix/unixunix.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] veryold(fd) ^ ../sys/unix/unixunix.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] regularize(s) /* normalize file name - we don't like .'s, /'s, spaces */ ^ ../sys/unix/unixunix.c:308:17: warning: '/*' within block comment [-Wcomment] #endif /* SHELL /**/ ^ ../sys/unix/unixunix.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] child(wt) ^ 66 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/getline.c In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../win/tty/getline.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_getlin(query, bufp) ^ ../win/tty/getline.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hooked_tty_getlin(query, bufp, hook) ^ ../win/tty/getline.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xwaitforspace(s) ^ ../win/tty/getline.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ext_cmd_getlin_hook(base) ^ ../win/tty/getline.c:173:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else /* more than 1 match */ ^ 57 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/termcap.c In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../win/tty/termcap.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_startup(wid, hgt) ^ ../win/tty/termcap.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_number_pad(state) ^ ../win/tty/termcap.c:468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nocmov(x, y) ^ ../win/tty/termcap.c:515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmov(x, y) ^ ../win/tty/termcap.c:525:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xputc(c) ^ ../win/tty/termcap.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xputs(s) ^ ../win/tty/termcap.c:1017:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s_atr2str(n) ^ ../win/tty/termcap.c:1032:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e_atr2str(n) ^ ../win/tty/termcap.c:1048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] term_start_attr(attr) ^ ../win/tty/termcap.c:1058:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] term_end_attr(attr) ^ ../win/tty/termcap.c:1091:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] term_start_color(color) ^ ../win/tty/termcap.c:1099:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] has_color(color) ^ 64 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/topl.c In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../win/tty/topl.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] redotoplin(str) ^ ../win/tty/topl.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addtopl(s) ^ ../win/tty/topl.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] update_topl(bp) ^ ../win/tty/topl.c:211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] topl_putsym(c) ^ ../win/tty/topl.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putsyms(str) ^ ../win/tty/topl.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] removetopl(n) ^ ../win/tty/topl.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_yn_function(query,resp, def) ^ 59 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/wintty.c In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ ../win/tty/wintty.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bail(mesg) ^ ../win/tty/wintty.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_init_nhwindows(argcp,argv) ^ ../win/tty/wintty.c:516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_suspend_nhwindows(str) ^ ../win/tty/wintty.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_exit_nhwindows(str) ^ ../win/tty/wintty.c:556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_create_nhwindow(type) ^ ../win/tty/wintty.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] erase_menu_or_text(window, cw, clear) ^ ../win/tty/wintty.c:683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_window_info(cw, free_data) ^ ../win/tty/wintty.c:727:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_clear_nhwindow(window) ^ ../win/tty/wintty.c:772:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dmore(cw, s) ^ ../win/tty/wintty.c:792:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_item_state(window, lineno, item) ^ ../win/tty/wintty.c:806:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_all_on_page(window, page_start, page_end) ^ ../win/tty/wintty.c:821:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unset_all_on_page(window, page_start, page_end) ^ ../win/tty/wintty.c:837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invert_all_on_page(window, page_start, page_end, acc) ^ ../win/tty/wintty.c:861:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invert_all(window, page_start, page_end, acc) ^ ../win/tty/wintty.c:891:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_menu_window(window, cw) ^ ../win/tty/wintty.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_text_window(window, cw) ^ ../win/tty/wintty.c:1225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_display_nhwindow(window, blocking) ^ ../win/tty/wintty.c:1293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_dismiss_nhwindow(window) ^ ../win/tty/wintty.c:1333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_destroy_nhwindow(window) ^ ../win/tty/wintty.c:1354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_curs(window, x, y) ^ ../win/tty/wintty.c:1430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_putsym(window, x, y, ch) ^ ../win/tty/wintty.c:1459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compress_str(str) ^ ../win/tty/wintty.c:1482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_putstr(window, attr, str) ^ ../win/tty/wintty.c:1625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_display_file(fname, complain) ^ ../win/tty/wintty.c:1700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_start_menu(window) ^ ../win/tty/wintty.c:1713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_add_menu(window, glyph, identifier, ch, gch, attr, str, preselected) ^ ../win/tty/wintty.c:1757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reverse(curr) ^ ../win/tty/wintty.c:1778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_end_menu(window, prompt) ^ ../win/tty/wintty.c:1873:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_select_menu(window, how, menu_list) ^ ../win/tty/wintty.c:1916:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_message_menu(let, how, mesg) ^ ../win/tty/wintty.c:1923:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(mesg); ^~~~ ../win/tty/wintty.c:1923:8: note: treat the string as an argument to avoid this pline(mesg); ^ "%s", ../win/tty/wintty.c:1981:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docorner(xmin, ymax) ^ ../win/tty/wintty.c:2039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] g_putch(in_ch) ^ ../win/tty/wintty.c:2081:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_cliparound(x, y) ^ ../win/tty/wintty.c:2121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_print_glyph(window, x, y, glyph) ^ ../win/tty/wintty.c:2261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_raw_print(str) ^ ../win/tty/wintty.c:2273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_raw_print_bold(str) ^ ../win/tty/wintty.c:2335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tty_nh_poskey(x, y, mod) ^ ../win/tty/wintty.c:2368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copy_of(s) ^ 91 warnings generated. ../util/makedefs -v cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c version.c In file included from version.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from version.c:5: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from version.c:5: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ version.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getversionstring(buf) ^ version.c:30:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] pline(getversionstring(buf)); ^~~~~~~~~~~~~~~~~~~~~ version.c:30:8: note: treat the string as an argument to avoid this pline(getversionstring(buf)); ^ "%s", version.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_version(version_data, filename, complain) ^ version.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uptodate(fd, name) ^ version.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] store_version(fd) ^ 57 warnings generated. Loading ... alloc.c(alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() bones.c(bones.o:(savebones)): warning: strcpy() is almost always misused, please use strlcpy() botl.c(botl.o:(bot)): warning: strcat() is almost always misused, please use strlcat() end.c(end.o:(panic)): warning: vsprintf() is often misused, please use vsnprintf() rnd.c(rnd.o:(rn2)): warning: random() may return deterministic values, is that what you want? slash is up to date. ( cd doc ; /usr/bin/make Guidebook ) tbl tmac.n Guidebook.mn | nroff | col -bx > Guidebook /bin/sh: tbl: not found /bin/sh: nroff: not found ( cd dat ; /usr/bin/make data ) ../util/makedefs -d ( cd dat ; /usr/bin/make oracles ) ../util/makedefs -h ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) ../util/makedefs -q ( cd dat ; /usr/bin/make rumors ) ../util/makedefs -r ( cd util ; /usr/bin/make dgn_comp ) `../include/date.h' is up to date. yacc -d dgn_comp.y mv y.tab.c dgn_yacc.c mv y.tab.h ../include/dgn_comp.h cc -O2 -pipe -I../include -c dgn_yacc.c In file included from dgn_comp.y:25: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dgn_comp.y:25: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ dgn_comp.y:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getchain(s) ^ 52 warnings generated. lex dgn_comp.l mv lex.yy.c dgn_lex.c cc -c -O2 -pipe -I../include dgn_lex.c In file included from dgn_comp.l:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dgn_comp.l:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ dgn_comp.l:142:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void init_yyin( input_f ) ^ dgn_comp.l:153:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void init_yyout( output_f ) ^ 53 warnings generated. cc -O2 -pipe -I../include -c dgn_main.c In file included from dgn_main.c:11: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from dgn_main.c:11: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from dgn_main.c:11: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from dgn_main.c:11: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from dgn_main.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from dgn_main.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from dgn_main.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ dgn_main.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ dgn_main.c:156:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void yyerror(s) ^ dgn_main.c:170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void yywarning(s) ^ 54 warnings generated. cc -O2 -pipe -I../include -c panic.c In file included from panic.c:11: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from panic.c:11: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from panic.c:11: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from panic.c:11: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from panic.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from panic.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from panic.c:11: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ 51 warnings generated. cc -o dgn_comp dgn_yacc.o dgn_lex.o dgn_main.o panic.o ../src/alloc.o dgn_main.c(dgn_main.o:(main)): warning: strcpy() is almost always misused, please use strlcpy() dgn_main.c(dgn_main.o:(main)): warning: strcat() is almost always misused, please use strlcat() alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() ( cd dat ; /usr/bin/make dungeon ) ../util/makedefs -e ../util/dgn_comp dungeon.pdf ( cd util ; /usr/bin/make lev_comp ) yacc -d lev_comp.y mv y.tab.c lev_yacc.c mv y.tab.h ../include/lev_comp.h cc -O2 -pipe -I../include -c lev_yacc.c In file included from lev_comp.y:24: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ 53 warnings generated. lex lev_comp.l mv lex.yy.c lev_lex.c cc -c -O2 -pipe -I../include lev_lex.c In file included from lev_comp.l:8: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ lev_comp.l:238:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void init_yyin( input_f ) ^ lev_comp.l:249:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void init_yyout( output_f ) ^ 55 warnings generated. `../include/date.h' is up to date. cc -O2 -pipe -I../include -c lev_main.c In file included from lev_main.c:10: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ In file included from lev_main.c:10: In file included from ../include/hack.h:74: In file included from ../include/decl.h:235: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] /* unsigned o_cwt; /* container weight capacity */ ^ lev_main.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ lev_main.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yyerror(s) ^ lev_main.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yywarning(s) ^ lev_main.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_floor_type(c) ^ lev_main.c:348:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_room_type(s) ^ lev_main.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_trap_type(s) ^ lev_main.c:380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_monster_id(s, c) ^ lev_main.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_object_id(s) ^ lev_main.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_monster_char(c) ^ lev_main.c:429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_object_char(c) ^ lev_main.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] what_map_char(c) ^ lev_main.c:478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_map(map) ^ lev_main.c:643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_coord(x, y, str) ^ lev_main.c:934:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_common_data(fd, typ, init, flgs) ^ lev_main.c:962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_monsters(fd, nmonster_p, monsters_p) ^ lev_main.c:1001:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_objects(fd, nobject_p, objects_p) ^ lev_main.c:1034:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_engravings(fd, nengraving_p, engravings_p) ^ lev_main.c:1066:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_level_file(filename, room_level, maze_level) ^ lev_main.c:1100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_maze(fd, maze) ^ lev_main.c:1294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_rooms(fd, lev) ^ lev_main.c:1403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_rooms(lev) ^ 74 warnings generated. cc -o lev_comp lev_yacc.o lev_lex.o lev_main.o panic.o ../src/alloc.o ../src/drawing.o ../src/decl.o ../src/monst.o ../src/objects.o alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() lev_main.c(lev_main.o:(write_level_file)): warning: strcat() is almost always misused, please use strlcat() lev_lex.c(lev_lex.o:(yylex)): warning: strcpy() is almost always misused, please use strlcpy() ( cd dat ; /usr/bin/make spec_levs ) ../util/lev_comp bigroom.des ../util/lev_comp castle.des ../util/lev_comp endgame.des ../util/lev_comp gehennom.des ../util/lev_comp knox.des ../util/lev_comp medusa.des ../util/lev_comp mines.des ../util/lev_comp oracle.des ../util/lev_comp tower.des ../util/lev_comp yendor.des ../util/lev_comp beholder.des ../util/lev_comp caves.des ../util/lev_comp darkelf.des ../util/lev_comp dragons.des ../util/lev_comp giants.des ../util/lev_comp guild.des ../util/lev_comp kobold-1.des ../util/lev_comp kobold-2.des ../util/lev_comp lich.des ../util/lev_comp mall-1.des ../util/lev_comp mall-2.des ../util/lev_comp mineend.des ../util/lev_comp minefill.des ../util/lev_comp mtemple.des ../util/lev_comp newmall.des ../util/lev_comp nymph.des ../util/lev_comp rats.des ../util/lev_comp sea.des ../util/lev_comp spiders.des ../util/lev_comp stor-1.des ../util/lev_comp stor-2.des ../util/lev_comp stor-3.des ../util/lev_comp tomb.des ../util/lev_comp blkmar.des touch spec_levs ( cd dat ; /usr/bin/make quest_levs ) ../util/lev_comp Arch.des ../util/lev_comp Barb.des ../util/lev_comp Caveman.des ../util/lev_comp Elf.des ../util/lev_comp Healer.des ../util/lev_comp Knight.des ../util/lev_comp Priest.des ../util/lev_comp Rogue.des ../util/lev_comp Samurai.des ../util/lev_comp Tourist.des ../util/lev_comp Valkyrie.des ../util/lev_comp Wizard.des ../util/lev_comp Dopp.des ../util/lev_comp Flame.des ../util/lev_comp Gnome.des ../util/lev_comp Ice.des ../util/lev_comp Lycn.des ../util/lev_comp Monk.des ../util/lev_comp Necro.des ../util/lev_comp Slayer.des touch quest_levs ( cd dat; /usr/bin/make options ) `options' is up to date. Done. cc -O2 -pipe -I../include -c recover.c In file included from recover.c:10: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] /* ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] /* #define MSDOS /* use if not defined by compiler or cases below */ ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] /* #define OS2 /* define for OS/2 */ ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] /* #define TOS /* define for Atari ST/TT */ ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] /* #define STUPID /* avoid some complicated expressions if ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] /* #define TERMINFO /* uses terminfo rather than termcap */ ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] /* #define X11_GRAPHICS /* X11 interface */ ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] /* #define DLB /* not supported on all platforms */ ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] /* #define SECURE /* do setuid(getuid()) after chdir() */ ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] /* #define NOVOID /* define if no "void" data type. */ ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] /* #define NOTSTDC /* define for lying compilers */ ^ In file included from recover.c:10: In file included from ../include/config.h:382: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] /* #define USE_VARARGS /* use instead of */ ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] /* #define USE_OLDARGS /* don't use any variable argument facilites */ ^ In file included from recover.c:10: ../include/config.h:422:21: warning: '/*' within block comment [-Wcomment] /* #define STRNCMPI /* compiler/library has the strncmpi function */ ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] /* #define BORG /* Nethack borg (cannot use on unix) */ ^ In file included from recover.c:10: In file included from ../include/config.h:483: ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] /* #define SPECIALIZATION /* do "specialized" version of new topology */ ^ In file included from recover.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: ../include/unixconf.h:26:18: warning: '/*' within block comment [-Wcomment] /* #define BSD 1 /* define for 4.n BSD */ ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] /* #define SUNOS4 /* SunOS 4.x */ ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] /* #define LINUX /* Another Unix clone */ ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] /* #define GENIX /* Yet Another Unix Clone */ ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] /* #define HISX /* Bull Unix for XPS Machines */ ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain ^ ../include/unixconf.h:63:23: warning: '/*' within block comment [-Wcomment] /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_BUG /* problems with large arrays in structs */ ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] /* #define UNIX386MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] /* #define VPIX_MUSIC /* Play real music through speaker on systems with ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] /* #define NO_FILE_LINKS /* if no hard links */ ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] /* #define MAIL /* Deliver mail during the game */ ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] /* #define AMS /* use Andrew message system for mail */ ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] /* #define COMPRESS_OPTIONS "-q" /* */ ^ In file included from recover.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E void srand48(); ^ /usr/include/stdlib.h:161:7: note: conflicting prototype is here void srand48(long); ^ In file included from recover.c:10: In file included from ../include/config.h:483: In file included from ../include/global.h:148: In file included from ../include/unixconf.h:259: ../include/system.h:335:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] E unsigned sleep(); ^ /usr/include/unistd.h:367:14: note: conflicting prototype is here unsigned int sleep(unsigned int); ^ recover.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ recover.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_levelfile_name(lev) ^ recover.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] open_levelfile(lev) ^ recover.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copy_bytes(ifd, ofd) ^ recover.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restore_savefile(basename) ^ 56 warnings generated. cc -o recover recover.o recover.c(recover.o:(restore_savefile)): warning: strcpy() is almost always misused, please use strlcpy() recover.c(recover.o:(restore_savefile)): warning: sprintf() is often misused, please use snprintf() >>> Running package in games/slash,no_x11 at 1711446120.39 ===> games/slash,no_x11 ===> Faking installation for slash-3.2.2.e8p8-no_x11 ( cd src ; /usr/bin/make ) slash is up to date. ( cd dat ; /usr/bin/make data ) `data' is up to date. ( cd dat ; /usr/bin/make oracles ) `oracles' is up to date. ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) `quest.dat' is up to date. ( cd dat ; /usr/bin/make rumors ) `rumors' is up to date. ( cd util ; /usr/bin/make dgn_comp ) `../include/date.h' is up to date. `dgn_comp' is up to date. ( cd dat ; /usr/bin/make dungeon ) `dungeon' is up to date. ( cd util ; /usr/bin/make lev_comp ) `../include/date.h' is up to date. `lev_comp' is up to date. ( cd dat ; /usr/bin/make spec_levs ) `spec_levs' is up to date. ( cd dat ; /usr/bin/make quest_levs ) `quest_levs' is up to date. mkdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin mkdir: /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin: File exists *** Error 1 in target 'install' (ignored) rm -rf /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir mkdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/save chown bin /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/save chgrp games /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/save chmod 0775 /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/save ( /usr/bin/make dofiles ) target=`sed -n -e '/librarian/{' -e 's/.*/dlb/p' -e 'q' -e '}' -e '$s/.*/nodlb/p' < dat/options` ; /usr/bin/make dofiles-${target-nodlb} ( cd dat ; cp license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev beholder.lev bigrm-?.lev blkmar.lev castle.lev cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev mineking.lev minetown.lev mtemple.lev nymph.lev oracle.lev orcus.lev rats.lev sanctum.lev sea.lev spiders.lev stor-?.lev tomb.lev tower?.lev valley.lev wizard?.lev yeenoghu.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data oracles options quest.dat rumors /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir ) ( cd /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir ; chown bin license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev beholder.lev bigrm-?.lev blkmar.lev castle.lev cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev mineking.lev minetown.lev mtemple.lev nymph.lev oracle.lev orcus.lev rats.lev sanctum.lev sea.lev spiders.lev stor-?.lev tomb.lev tower?.lev valley.lev wizard?.lev yeenoghu.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data oracles options quest.dat rumors ; chgrp games license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev beholder.lev bigrm-?.lev blkmar.lev castle.lev cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev mineking.lev minetown.lev mtemple.lev nymph.lev oracle.lev orcus.lev rats.lev sanctum.lev sea.lev spiders.lev stor-?.lev tomb.lev tower?.lev valley.lev wizard?.lev yeenoghu.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data oracles options quest.dat rumors ; chmod 0664 license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev beholder.lev bigrm-?.lev blkmar.lev castle.lev cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev mineking.lev minetown.lev mtemple.lev nymph.lev oracle.lev orcus.lev rats.lev sanctum.lev sea.lev spiders.lev stor-?.lev tomb.lev tower?.lev valley.lev wizard?.lev yeenoghu.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data oracles options quest.dat rumors ) cp src/slash /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir rm -f /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin/slash sed -e 's;/usr/games/lib/nethackdir;/usr/local/lib/slashdir;' -e 's;HACKDIR/nethack;HACKDIR/slash;' < sys/unix/nethack.sh > /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin/slash ( cd /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir ; chown bin slash ; chgrp games slash ) chmod 02755 /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/slash chown bin /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin/slash chgrp games /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin/slash chmod 0755 /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin/slash touch /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/perm /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/record /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir/logfile ( cd /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/lib/slashdir ; chown bin perm record logfile ; chgrp games perm record logfile ; chmod 0664 perm record logfile ) You may also want to reinstall the man pages via the doc Makefile. /exopi-obj/pobj/slash-3.2.2.e8-no_x11/bin/install -c -s -m 755 /exopi-obj/pobj/slash-3.2.2.e8-no_x11/slash-e8/util/srecover /exopi-obj/pobj/slash-3.2.2.e8-no_x11/fake-amd64-no_x11/usr/local/bin ===> Building package for slash-3.2.2.e8p8-no_x11 Create /exopi-cvs/ports/packages/amd64/all/slash-3.2.2.e8p8-no_x11.tgz Creating package slash-3.2.2.e8p8-no_x11 reading plist| checking dependencies| checking dependencies|games/hackdata checksumming| checksumming| | 0% checksumming|* | 1% checksumming|* | 2% checksumming|** | 3% checksumming|** | 4% checksumming|*** | 4% checksumming|*** | 5% checksumming|*** | 6% checksumming|**** | 6% checksumming|**** | 7% checksumming|***** | 8% checksumming|***** | 9% checksumming|****** | 9% checksumming|****** | 10% checksumming|******* | 11% checksumming|******* | 12% checksumming|******** | 12% checksumming|******** | 13% checksumming|******** | 14% checksumming|********* | 14% checksumming|********* | 15% checksumming|********** | 16% checksumming|********** | 17% checksumming|*********** | 18% checksumming|*********** | 19% checksumming|************ | 19% checksumming|************ | 20% checksumming|************* | 21% checksumming|************* | 22% checksumming|************** | 22% checksumming|************** | 23% checksumming|*************** | 24% checksumming|*************** | 25% checksumming|**************** | 26% checksumming|**************** | 27% checksumming|***************** | 27% checksumming|***************** | 28% checksumming|***************** | 29% checksumming|****************** | 29% checksumming|****************** | 30% checksumming|******************* | 30% checksumming|******************* | 31% checksumming|******************* | 32% checksumming|******************** | 32% checksumming|******************** | 33% checksumming|********************* | 34% checksumming|********************* | 35% checksumming|********************** | 36% checksumming|********************** | 37% checksumming|*********************** | 37% checksumming|*********************** | 38% checksumming|************************ | 39% checksumming|************************ | 40% checksumming|************************* | 40% checksumming|************************* | 41% checksumming|************************** | 42% checksumming|************************** | 43% checksumming|*************************** | 44% checksumming|*************************** | 45% checksumming|**************************** | 45% checksumming|**************************** | 46% checksumming|**************************** | 47% checksumming|***************************** | 47% checksumming|***************************** | 48% checksumming|****************************** | 49% checksumming|****************************** | 50% checksumming|******************************* | 50% checksumming|******************************* | 51% checksumming|******************************** | 52% checksumming|******************************** | 53% checksumming|********************************* | 53% checksumming|********************************* | 54% checksumming|********************************* | 55% checksumming|********************************** | 55% checksumming|********************************** | 56% checksumming|*********************************** | 57% checksumming|*********************************** | 58% checksumming|************************************ | 59% checksumming|************************************ | 60% checksumming|************************************* | 60% checksumming|************************************* | 61% checksumming|************************************** | 62% checksumming|************************************** | 63% checksumming|*************************************** | 63% checksumming|*************************************** | 64% checksumming|**************************************** | 65% checksumming|**************************************** | 66% checksumming|***************************************** | 67% checksumming|***************************************** | 68% checksumming|****************************************** | 68% checksumming|****************************************** | 69% checksumming|****************************************** | 70% checksumming|******************************************* | 70% checksumming|******************************************* | 71% checksumming|******************************************** | 71% checksumming|******************************************** | 72% checksumming|******************************************** | 73% checksumming|********************************************* | 73% checksumming|********************************************* | 74% checksumming|********************************************** | 75% checksumming|********************************************** | 76% checksumming|*********************************************** | 77% checksumming|*********************************************** | 78% checksumming|************************************************ | 78% checksumming|************************************************ | 79% checksumming|************************************************* | 80% checksumming|************************************************* | 81% checksumming|************************************************** | 81% checksumming|************************************************** | 82% checksumming|*************************************************** | 83% checksumming|*************************************************** | 84% checksumming|**************************************************** | 85% checksumming|**************************************************** | 86% checksumming|***************************************************** | 86% checksumming|***************************************************** | 87% checksumming|***************************************************** | 88% checksumming|****************************************************** | 88% checksumming|****************************************************** | 89% checksumming|******************************************************* | 90% checksumming|******************************************************* | 91% checksumming|******************************************************** | 91% checksumming|******************************************************** | 92% checksumming|********************************************************* | 93% checksumming|********************************************************* | 94% checksumming|********************************************************** | 94% checksumming|********************************************************** | 95% checksumming|********************************************************** | 96% checksumming|*********************************************************** | 96% checksumming|*********************************************************** | 97% checksumming|************************************************************ | 98% checksumming|************************************************************ | 99% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|********************************************** | 73% archiving|*********************************************** | 73% archiving|*********************************************** | 74% archiving|************************************************ | 74% archiving|************************************************ | 75% archiving|************************************************ | 76% archiving|************************************************* | 76% archiving|************************************************* | 77% archiving|************************************************** | 77% archiving|************************************************** | 78% archiving|************************************************** | 79% archiving|*************************************************** | 79% archiving|*************************************************** | 80% archiving|**************************************************** | 81% archiving|**************************************************** | 82% archiving|******************************************************** | 87% archiving|******************************************************** | 88% archiving|********************************************************* | 89% archiving|********************************************************* | 90% archiving|********************************************************** | 90% archiving|********************************************************** | 91% archiving|************************************************************** | 97% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************| 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/slash-3.2.2.e8p8-no_x11.tgz >>> Running clean in games/slash,no_x11 at 1711446126.13 ===> games/slash,no_x11 ===> Cleaning for slash-3.2.2.e8p8-no_x11 >>> Ended at 1711446126.88 max_stuck=0.00/build=60.35/package=5.83/clean=0.84