>>> Building on exopi-6 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 1764832754.09 ===> games/slash,no_x11 ===> Building from scratch slash-3.2.2.e8p8-no_x11 ===> Verifying specs: c curses ===> found c.102.2 curses.16.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) all files: 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c objects.c 50 warnings generated. In file included from objects.c:8: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ In file included from objects.c:9: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 8 | /* #define DEBUG /* uncomment for debugging info */ | ^ In file included from makedefs.c:10: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ In file included from makedefs.c:17: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 225 | 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 C23 [-Wdeprecated-non-prototype] 254 | 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 C23 [-Wdeprecated-non-prototype] 322 | char *xcrypt(str) | ^ makedefs.c:354:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 354 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:354:14: note: treat the string as an argument to avoid this 354 | 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 C23 [-Wdeprecated-non-prototype] 496 | version_id_string(outbuf, build_date) | ^ makedefs.c:543:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 543 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:543:14: note: treat the string as an argument to avoid this 543 | 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 C23 [-Wdeprecated-non-prototype] 801 | 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 C23 [-Wdeprecated-non-prototype] 930 | 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 C23 [-Wdeprecated-non-prototype] 1111 | 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 C23 [-Wdeprecated-non-prototype] 1126 | without_control(s) | ^ makedefs.c:1151:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1151 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:1151:14: note: treat the string as an argument to avoid this 1151 | 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 C23 [-Wdeprecated-non-prototype] 1182 | 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 C23 [-Wdeprecated-non-prototype] 1201 | mstrength(ptr) | ^ makedefs.c:1276:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1276 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1276:17: note: treat the string as an argument to avoid this 1276 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1317:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1317 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1317:14: note: treat the string as an argument to avoid this 1317 | 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 C23 [-Wdeprecated-non-prototype] 1355 | 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 C23 [-Wdeprecated-non-prototype] 1364 | 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 C23 [-Wdeprecated-non-prototype] 1372 | 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 C23 [-Wdeprecated-non-prototype] 1385 | 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 C23 [-Wdeprecated-non-prototype] 1393 | 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 C23 [-Wdeprecated-non-prototype] 1410 | 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 C23 [-Wdeprecated-non-prototype] 1425 | 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 C23 [-Wdeprecated-non-prototype] 1444 | 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 C23 [-Wdeprecated-non-prototype] 1475 | 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 C23 [-Wdeprecated-non-prototype] 1609 | 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] 1638 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1638:14: note: treat the string as an argument to avoid this 1638 | 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 C23 [-Wdeprecated-non-prototype] 1739 | 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 C23 [-Wdeprecated-non-prototype] 1750 | eos(str) | ^ makedefs.c:1793:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1793 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1793:17: note: treat the string as an argument to avoid this 1793 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1818:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1818 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1818:17: note: treat the string as an argument to avoid this 1818 | 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 C23 [-Wdeprecated-non-prototype] 2059 | clear_path(you_row,you_col,y2,x2) | ^ 85 warnings generated. cc -o makedefs makedefs.o ../src/monst.o ../src/objects.o ld: warning: makedefs.c(makedefs.o:(do_objs)): warning: sprintf() is often misused, please use snprintf() ld: warning: 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 C23 [-Wdeprecated-non-prototype] 32 | 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 C23 [-Wdeprecated-non-prototype] 80 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 77 | 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 C23 [-Wdeprecated-non-prototype] 145 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 268 | 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 C23 [-Wdeprecated-non-prototype] 276 | 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 C23 [-Wdeprecated-non-prototype] 305 | 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 C23 [-Wdeprecated-non-prototype] 323 | 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 C23 [-Wdeprecated-non-prototype] 335 | 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 C23 [-Wdeprecated-non-prototype] 363 | 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 C23 [-Wdeprecated-non-prototype] 451 | 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 C23 [-Wdeprecated-non-prototype] 496 | 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 C23 [-Wdeprecated-non-prototype] 544 | 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 C23 [-Wdeprecated-non-prototype] 576 | 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 C23 [-Wdeprecated-non-prototype] 754 | use_bell(obj) | ^ apply.c:813:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 813 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:813:13: note: treat the string as an argument to avoid this 813 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 838 | case 0: pline(nothing_happens); break; | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:838:20: note: treat the string as an argument to avoid this 838 | case 0: pline(nothing_happens); break; | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 850 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:850:14: note: treat the string as an argument to avoid this 850 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 863 | 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 C23 [-Wdeprecated-non-prototype] 916 | use_candle(obj) | ^ apply.c:928:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 928 | You(no_elbow_room); | ^~~~~~~~~~~~~ apply.c:928:7: note: treat the string as an argument to avoid this 928 | 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 C23 [-Wdeprecated-non-prototype] 997 | 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 C23 [-Wdeprecated-non-prototype] 1024 | 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 C23 [-Wdeprecated-non-prototype] 1044 | 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 C23 [-Wdeprecated-non-prototype] 1098 | light_cocktail(obj) | ^ apply.c:1104:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1104 | You(no_elbow_room); | ^~~~~~~~~~~~~ apply.c:1104:10: note: treat the string as an argument to avoid this 1104 | You(no_elbow_room); | ^ | "%s", apply.c:1169:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1169 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1169:17: note: treat the string as an argument to avoid this 1169 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 1174 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1174:15: note: treat the string as an argument to avoid this 1174 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 1284 | 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 C23 [-Wdeprecated-non-prototype] 1293 | 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 C23 [-Wdeprecated-non-prototype] 1359 | use_unicorn_horn(obj) | ^ apply.c:1431:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1431 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1431:12: note: treat the string as an argument to avoid this 1431 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 1509 | 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 C23 [-Wdeprecated-non-prototype] 1549 | 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 C23 [-Wdeprecated-non-prototype] 1611 | 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 C23 [-Wdeprecated-non-prototype] 1660 | use_whip(obj) | ^ apply.c:1711:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1711 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1711:11: note: treat the string as an argument to avoid this 1711 | pline(msg_slipsfree); | ^ | "%s", apply.c:1756:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1756 | else pline(msg_snap); | ^~~~~~~~ apply.c:1756:16: note: treat the string as an argument to avoid this 1756 | else pline(msg_snap); | ^ | "%s", apply.c:1756:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1756 | else pline(msg_snap); | ^ apply.c:1777:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1777 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1777:11: note: treat the string as an argument to avoid this 1777 | pline(msg_slipsfree); | ^ | "%s", apply.c:1778:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1778 | } else pline(msg_snap); | ^~~~~~~~ apply.c:1778:16: note: treat the string as an argument to avoid this 1778 | } else pline(msg_snap); | ^ | "%s", apply.c:1846:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1846 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1846:11: note: treat the string as an argument to avoid this 1846 | pline(msg_slipsfree); | ^ | "%s", apply.c:1853:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1853 | pline(msg_snap); | ^~~~~~~~ apply.c:1853:11: note: treat the string as an argument to avoid this 1853 | pline(msg_snap); | ^ | "%s", apply.c:1852:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1852 | else | ^ apply.c:1859:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1859 | pline(msg_snap); | ^~~~~~~~ apply.c:1859:9: note: treat the string as an argument to avoid this 1859 | 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 C23 [-Wdeprecated-non-prototype] 1868 | do_break_wand(obj) | ^ apply.c:2030:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2030 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2030:10: note: treat the string as an argument to avoid this 2030 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 2249 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2249:13: note: treat the string as an argument to avoid this 2249 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 131 | 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 C23 [-Wdeprecated-non-prototype] 147 | 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 C23 [-Wdeprecated-non-prototype] 196 | 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 C23 [-Wdeprecated-non-prototype] 218 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 269 | 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 C23 [-Wdeprecated-non-prototype] 282 | 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 C23 [-Wdeprecated-non-prototype] 309 | 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 C23 [-Wdeprecated-non-prototype] 321 | 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 C23 [-Wdeprecated-non-prototype] 334 | 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 C23 [-Wdeprecated-non-prototype] 350 | 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 C23 [-Wdeprecated-non-prototype] 466 | 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 C23 [-Wdeprecated-non-prototype] 528 | 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 C23 [-Wdeprecated-non-prototype] 595 | 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 C23 [-Wdeprecated-non-prototype] 608 | 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 C23 [-Wdeprecated-non-prototype] 633 | 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 C23 [-Wdeprecated-non-prototype] 1139 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ attrib.c:10:18: warning: '/*' within block comment [-Wcomment] 10 | /* #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 C23 [-Wdeprecated-non-prototype] 260 | 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 C23 [-Wdeprecated-non-prototype] 348 | 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 C23 [-Wdeprecated-non-prototype] 363 | 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 C23 [-Wdeprecated-non-prototype] 379 | 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 C23 [-Wdeprecated-non-prototype] 388 | 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 C23 [-Wdeprecated-non-prototype] 447 | 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 C23 [-Wdeprecated-non-prototype] 697 | 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 C23 [-Wdeprecated-non-prototype] 823 | 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 C23 [-Wdeprecated-non-prototype] 939 | 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 C23 [-Wdeprecated-non-prototype] 989 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ball.c:34:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 34 | } 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 226 | 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 C23 [-Wdeprecated-non-prototype] 346 | 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 C23 [-Wdeprecated-non-prototype] 475 | drop_ball(x, y) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c bones.c 57 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 19 | 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 C23 [-Wdeprecated-non-prototype] 39 | 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 C23 [-Wdeprecated-non-prototype] 53 | 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 C23 [-Wdeprecated-non-prototype] 116 | drop_upon_death(mtmp, cont) | ^ bones.c:166:49: warning: '/*' within block comment [-Wcomment] 166 | /* (!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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 295 | 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 C23 [-Wdeprecated-non-prototype] 306 | 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 C23 [-Wdeprecated-non-prototype] 322 | 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 C23 [-Wdeprecated-non-prototype] 342 | title_to_mon(str, rank_indx, title_length) | ^ botl.c:427:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 427 | Sprintf(nb = eos(nb), mbot); | ^~~~ botl.c:427:25: note: treat the string as an argument to avoid this 427 | Sprintf(nb = eos(nb), mbot); | ^ | "%s", botl.c:429:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 429 | Sprintf(nb = eos(nb), rank()); | ^~~~~~ botl.c:429:25: note: treat the string as an argument to avoid this 429 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ cmd.c:7:18: warning: '/*' within block comment [-Wcomment] 7 | /* #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 C23 [-Wdeprecated-non-prototype] 196 | 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 C23 [-Wdeprecated-non-prototype] 248 | 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 C23 [-Wdeprecated-non-prototype] 262 | savech(ch) | ^ cmd.c:507:16: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 507 | if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) | ^ ~~ cmd.c:507:16: note: add parentheses after the '!' to evaluate the comparison first 507 | if (uarmg && !uarmg->otyp == GAUNTLETS_OF_DEXTERITY) | ^ | ( ) cmd.c:507:16: note: add parentheses around left hand side expression to silence this warning 507 | 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] 507 | 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 C23 [-Wdeprecated-non-prototype] 883 | 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 C23 [-Wdeprecated-non-prototype] 893 | 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 C23 [-Wdeprecated-non-prototype] 1364 | 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 C23 [-Wdeprecated-non-prototype] 1387 | 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 C23 [-Wdeprecated-non-prototype] 1405 | 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 C23 [-Wdeprecated-non-prototype] 1425 | 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 C23 [-Wdeprecated-non-prototype] 1451 | 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 C23 [-Wdeprecated-non-prototype] 1547 | 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 C23 [-Wdeprecated-non-prototype] 1699 | 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 C23 [-Wdeprecated-non-prototype] 1711 | 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 C23 [-Wdeprecated-non-prototype] 1721 | 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 C23 [-Wdeprecated-non-prototype] 1741 | 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 C23 [-Wdeprecated-non-prototype] 1783 | 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 C23 [-Wdeprecated-non-prototype] 1796 | click_to_cmd(x, y, mod) | ^ cmd.c:1873:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1873 | pline(in_line); | ^~~~~~~ cmd.c:1873:10: note: treat the string as an argument to avoid this 1873 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 37 | 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 C23 [-Wdeprecated-non-prototype] 48 | 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 C23 [-Wdeprecated-non-prototype] 59 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 151 | 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 C23 [-Wdeprecated-non-prototype] 169 | 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 C23 [-Wdeprecated-non-prototype] 230 | 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 C23 [-Wdeprecated-non-prototype] 249 | 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 C23 [-Wdeprecated-non-prototype] 267 | 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 C23 [-Wdeprecated-non-prototype] 277 | 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 C23 [-Wdeprecated-non-prototype] 300 | 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 C23 [-Wdeprecated-non-prototype] 325 | 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 C23 [-Wdeprecated-non-prototype] 371 | 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 C23 [-Wdeprecated-non-prototype] 392 | 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 C23 [-Wdeprecated-non-prototype] 442 | 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 C23 [-Wdeprecated-non-prototype] 454 | 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 C23 [-Wdeprecated-non-prototype] 495 | 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 C23 [-Wdeprecated-non-prototype] 521 | 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 C23 [-Wdeprecated-non-prototype] 745 | 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 C23 [-Wdeprecated-non-prototype] 797 | 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 C23 [-Wdeprecated-non-prototype] 835 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 25 | 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 C23 [-Wdeprecated-non-prototype] 44 | 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 C23 [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 98 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 198 | 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 C23 [-Wdeprecated-non-prototype] 275 | 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 C23 [-Wdeprecated-non-prototype] 436 | 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 C23 [-Wdeprecated-non-prototype] 476 | 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 C23 [-Wdeprecated-non-prototype] 511 | trap_detect(sobj) | ^ detect.c:531:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 531 | else found = TRUE; | ^ detect.c:538:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 538 | 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 C23 [-Wdeprecated-non-prototype] 577 | 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 C23 [-Wdeprecated-non-prototype] 619 | 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 C23 [-Wdeprecated-non-prototype] 734 | 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 C23 [-Wdeprecated-non-prototype] 806 | 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 C23 [-Wdeprecated-non-prototype] 825 | 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 C23 [-Wdeprecated-non-prototype] 861 | 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 C23 [-Wdeprecated-non-prototype] 940 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ dig.c:7:18: warning: '/*' within block comment [-Wcomment] 7 | /* #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 C23 [-Wdeprecated-non-prototype] 38 | 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 C23 [-Wdeprecated-non-prototype] 77 | 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 C23 [-Wdeprecated-non-prototype] 125 | 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 C23 [-Wdeprecated-non-prototype] 137 | dig_check(madeby, verbose, x, y) | ^ dig.c:318:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 318 | if(digtxt) pline(digtxt); /* after newsym */ | ^~~~~~ dig.c:318:20: note: treat the string as an argument to avoid this 318 | 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 C23 [-Wdeprecated-non-prototype] 380 | 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 C23 [-Wdeprecated-non-prototype] 413 | 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 C23 [-Wdeprecated-non-prototype] 565 | 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 C23 [-Wdeprecated-non-prototype] 680 | 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 C23 [-Wdeprecated-non-prototype] 824 | 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 C23 [-Wdeprecated-non-prototype] 1024 | 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 C23 [-Wdeprecated-non-prototype] 1078 | 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 C23 [-Wdeprecated-non-prototype] 1097 | 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 C23 [-Wdeprecated-non-prototype] 1130 | 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 C23 [-Wdeprecated-non-prototype] 1145 | rot_corpse(arg, timeout) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c display.c 68 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 174 | 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 C23 [-Wdeprecated-non-prototype] 192 | 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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 232 | 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 C23 [-Wdeprecated-non-prototype] 276 | 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 C23 [-Wdeprecated-non-prototype] 295 | 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 C23 [-Wdeprecated-non-prototype] 379 | 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 C23 [-Wdeprecated-non-prototype] 497 | 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 C23 [-Wdeprecated-non-prototype] 616 | 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 C23 [-Wdeprecated-non-prototype] 655 | 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 C23 [-Wdeprecated-non-prototype] 724 | 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 C23 [-Wdeprecated-non-prototype] 782 | 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 C23 [-Wdeprecated-non-prototype] 827 | 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 C23 [-Wdeprecated-non-prototype] 990 | 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 C23 [-Wdeprecated-non-prototype] 1081 | 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 C23 [-Wdeprecated-non-prototype] 1104 | 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 C23 [-Wdeprecated-non-prototype] 1150 | 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 C23 [-Wdeprecated-non-prototype] 1244 | 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 C23 [-Wdeprecated-non-prototype] 1270 | 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 C23 [-Wdeprecated-non-prototype] 1290 | glyph_at(x, y) | ^ display.c:1302:22: warning: '/*' within block comment [-Wcomment] 1302 | /*#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 C23 [-Wdeprecated-non-prototype] 1348 | 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 C23 [-Wdeprecated-non-prototype] 1361 | 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 C23 [-Wdeprecated-non-prototype] 1375 | 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 C23 [-Wdeprecated-non-prototype] 1393 | 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 C23 [-Wdeprecated-non-prototype] 1416 | 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 C23 [-Wdeprecated-non-prototype] 1445 | 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 C23 [-Wdeprecated-non-prototype] 1563 | 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 C23 [-Wdeprecated-non-prototype] 1630 | 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 C23 [-Wdeprecated-non-prototype] 1659 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 68 | 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 C23 [-Wdeprecated-non-prototype] 145 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 232 | 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 C23 [-Wdeprecated-non-prototype] 242 | 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 C23 [-Wdeprecated-non-prototype] 391 | 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 C23 [-Wdeprecated-non-prototype] 432 | 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 C23 [-Wdeprecated-non-prototype] 484 | 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 C23 [-Wdeprecated-non-prototype] 494 | 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 C23 [-Wdeprecated-non-prototype] 537 | 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 C23 [-Wdeprecated-non-prototype] 793 | goto_level(newlevel, at_stairs, falling, portal) | ^ do.c:1108:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1108 | if (mesg) pline(mesg); | ^~~~ do.c:1108:22: note: treat the string as an argument to avoid this 1108 | 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 C23 [-Wdeprecated-non-prototype] 1221 | 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] 1256 | if (dfr_pre_msg) pline(dfr_pre_msg); | ^~~~~~~~~~~ do.c:1256:29: note: treat the string as an argument to avoid this 1256 | 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] 1266 | if (dfr_post_msg) pline(dfr_post_msg); | ^~~~~~~~~~~~ do.c:1266:30: note: treat the string as an argument to avoid this 1266 | 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 C23 [-Wdeprecated-non-prototype] 1283 | 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 C23 [-Wdeprecated-non-prototype] 1339 | 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 C23 [-Wdeprecated-non-prototype] 1401 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 12 | 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 C23 [-Wdeprecated-non-prototype] 147 | 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 C23 [-Wdeprecated-non-prototype] 237 | 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 C23 [-Wdeprecated-non-prototype] 277 | replobj(obj, oextra_size, oextra_src, oname_size, name) | ^ do_name.c:360:24: warning: '/*' within block comment [-Wcomment] 360 | /* 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 C23 [-Wdeprecated-non-prototype] 366 | 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 C23 [-Wdeprecated-non-prototype] 443 | 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 C23 [-Wdeprecated-non-prototype] 512 | 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 C23 [-Wdeprecated-non-prototype] 621 | 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 C23 [-Wdeprecated-non-prototype] 631 | 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 C23 [-Wdeprecated-non-prototype] 638 | 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 C23 [-Wdeprecated-non-prototype] 649 | 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 C23 [-Wdeprecated-non-prototype] 665 | 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 C23 [-Wdeprecated-non-prototype] 676 | 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 C23 [-Wdeprecated-non-prototype] 683 | 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 C23 [-Wdeprecated-non-prototype] 781 | 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 C23 [-Wdeprecated-non-prototype] 835 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 66 | 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 C23 [-Wdeprecated-non-prototype] 668 | 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 C23 [-Wdeprecated-non-prototype] 800 | 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 C23 [-Wdeprecated-non-prototype] 904 | 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 C23 [-Wdeprecated-non-prototype] 911 | 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 C23 [-Wdeprecated-non-prototype] 918 | 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 C23 [-Wdeprecated-non-prototype] 939 | 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 C23 [-Wdeprecated-non-prototype] 965 | 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 C23 [-Wdeprecated-non-prototype] 1129 | 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 C23 [-Wdeprecated-non-prototype] 1144 | 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 C23 [-Wdeprecated-non-prototype] 1196 | 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 C23 [-Wdeprecated-non-prototype] 1566 | 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 C23 [-Wdeprecated-non-prototype] 1614 | 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 C23 [-Wdeprecated-non-prototype] 1830 | 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 C23 [-Wdeprecated-non-prototype] 1872 | 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 C23 [-Wdeprecated-non-prototype] 1923 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 15 | 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 C23 [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 413 | 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 C23 [-Wdeprecated-non-prototype] 505 | 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 C23 [-Wdeprecated-non-prototype] 567 | 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 C23 [-Wdeprecated-non-prototype] 655 | 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 C23 [-Wdeprecated-non-prototype] 746 | 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] 748 | aligntyp alignment; | ^ ../include/extern.h:386:43: note: previous declaration is here 386 | 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 C23 [-Wdeprecated-non-prototype] 777 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 19 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23 [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 244 | 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 C23 [-Wdeprecated-non-prototype] 333 | 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 C23 [-Wdeprecated-non-prototype] 467 | 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 C23 [-Wdeprecated-non-prototype] 753 | 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] 757 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 28 | 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 C23 [-Wdeprecated-non-prototype] 108 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 309 | 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 C23 [-Wdeprecated-non-prototype] 526 | 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 C23 [-Wdeprecated-non-prototype] 953 | 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 C23 [-Wdeprecated-non-prototype] 986 | 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 C23 [-Wdeprecated-non-prototype] 1106 | 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 C23 [-Wdeprecated-non-prototype] 1235 | otransit_msg(otmp, nodrop, num) | ^ dokick.c:1258:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1258 | pline(obuf); | ^~~~ dokick.c:1258:12: note: treat the string as an argument to avoid this 1258 | 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 C23 [-Wdeprecated-non-prototype] 1266 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 152 | 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 C23 [-Wdeprecated-non-prototype] 180 | 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 C23 [-Wdeprecated-non-prototype] 256 | 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 C23 [-Wdeprecated-non-prototype] 297 | 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 C23 [-Wdeprecated-non-prototype] 392 | 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 C23 [-Wdeprecated-non-prototype] 617 | 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 C23 [-Wdeprecated-non-prototype] 662 | 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 C23 [-Wdeprecated-non-prototype] 847 | gem_accept(mon, obj) | ^ dothrow.c:914:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 914 | if(!Blind) pline(buf); | ^~~ dothrow.c:914:19: note: treat the string as an argument to avoid this 914 | 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 C23 [-Wdeprecated-non-prototype] 952 | 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 C23 [-Wdeprecated-non-prototype] 970 | 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 C23 [-Wdeprecated-non-prototype] 989 | breakobj(obj, x, y, heros_fault, from_invent) | ^ dothrow.c:1018:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1018 | else | ^ dothrow.c:1056:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | 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 C23 [-Wdeprecated-non-prototype] 1081 | 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 C23 [-Wdeprecated-non-prototype] 1119 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 605 | 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 C23 [-Wdeprecated-non-prototype] 619 | 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 C23 [-Wdeprecated-non-prototype] 629 | 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 C23 [-Wdeprecated-non-prototype] 641 | 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 C23 [-Wdeprecated-non-prototype] 744 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 144 | 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 C23 [-Wdeprecated-non-prototype] 177 | 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 C23 [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 218 | 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 C23 [-Wdeprecated-non-prototype] 250 | 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 C23 [-Wdeprecated-non-prototype] 282 | 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 C23 [-Wdeprecated-non-prototype] 315 | 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 C23 [-Wdeprecated-non-prototype] 331 | 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 C23 [-Wdeprecated-non-prototype] 351 | 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 C23 [-Wdeprecated-non-prototype] 395 | 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 C23 [-Wdeprecated-non-prototype] 426 | 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 C23 [-Wdeprecated-non-prototype] 448 | 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 C23 [-Wdeprecated-non-prototype] 480 | 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 C23 [-Wdeprecated-non-prototype] 512 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 864 | 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 C23 [-Wdeprecated-non-prototype] 871 | 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 C23 [-Wdeprecated-non-prototype] 881 | 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 C23 [-Wdeprecated-non-prototype] 889 | 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 C23 [-Wdeprecated-non-prototype] 924 | 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 C23 [-Wdeprecated-non-prototype] 949 | 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 C23 [-Wdeprecated-non-prototype] 967 | 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 C23 [-Wdeprecated-non-prototype] 979 | 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 C23 [-Wdeprecated-non-prototype] 986 | 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 C23 [-Wdeprecated-non-prototype] 997 | 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 C23 [-Wdeprecated-non-prototype] 1013 | 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 C23 [-Wdeprecated-non-prototype] 1029 | 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 C23 [-Wdeprecated-non-prototype] 1047 | 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 C23 [-Wdeprecated-non-prototype] 1064 | 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 C23 [-Wdeprecated-non-prototype] 1119 | 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 C23 [-Wdeprecated-non-prototype] 1130 | 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 C23 [-Wdeprecated-non-prototype] 1137 | 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 C23 [-Wdeprecated-non-prototype] 1150 | 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 C23 [-Wdeprecated-non-prototype] 1163 | 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 C23 [-Wdeprecated-non-prototype] 1187 | 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 C23 [-Wdeprecated-non-prototype] 1238 | 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 C23 [-Wdeprecated-non-prototype] 1248 | 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 C23 [-Wdeprecated-non-prototype] 1255 | 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 C23 [-Wdeprecated-non-prototype] 1270 | 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 C23 [-Wdeprecated-non-prototype] 1296 | 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 C23 [-Wdeprecated-non-prototype] 1306 | 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 C23 [-Wdeprecated-non-prototype] 1313 | 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 C23 [-Wdeprecated-non-prototype] 1322 | 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 C23 [-Wdeprecated-non-prototype] 1344 | 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 C23 [-Wdeprecated-non-prototype] 1354 | 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 C23 [-Wdeprecated-non-prototype] 1362 | 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 C23 [-Wdeprecated-non-prototype] 1372 | 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 C23 [-Wdeprecated-non-prototype] 1380 | 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 C23 [-Wdeprecated-non-prototype] 1397 | 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 C23 [-Wdeprecated-non-prototype] 1417 | 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 C23 [-Wdeprecated-non-prototype] 1443 | 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 C23 [-Wdeprecated-non-prototype] 1512 | 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 C23 [-Wdeprecated-non-prototype] 1526 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ eat.c:6:18: warning: '/*' within block comment [-Wcomment] 6 | /* #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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 213 | 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 C23 [-Wdeprecated-non-prototype] 292 | 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 385 | done_eating(message) | ^ eat.c:394:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 394 | if (message) pline(nomovemsg); | ^~~~~~~~~ eat.c:394:22: note: treat the string as an argument to avoid this 394 | 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 C23 [-Wdeprecated-non-prototype] 410 | 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 C23 [-Wdeprecated-non-prototype] 504 | 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 C23 [-Wdeprecated-non-prototype] 600 | 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 C23 [-Wdeprecated-non-prototype] 793 | 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 C23 [-Wdeprecated-non-prototype] 1137 | 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 C23 [-Wdeprecated-non-prototype] 1205 | 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 C23 [-Wdeprecated-non-prototype] 1236 | 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 C23 [-Wdeprecated-non-prototype] 1319 | 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 C23 [-Wdeprecated-non-prototype] 1352 | 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 C23 [-Wdeprecated-non-prototype] 1497 | 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 C23 [-Wdeprecated-non-prototype] 1640 | 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 C23 [-Wdeprecated-non-prototype] 1652 | 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] 1913 | (((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 C23 [-Wdeprecated-non-prototype] 2028 | 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 C23 [-Wdeprecated-non-prototype] 2037 | lesshungry(num) /* called after eating (and after drinking fruit juice) */ | ^ eat.c:2049:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2049 | } else | ^ eat.c:2124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2124 | 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 C23 [-Wdeprecated-non-prototype] 2257 | 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 C23 [-Wdeprecated-non-prototype] 2343 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 157 | 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 286 | 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 C23 [-Wdeprecated-non-prototype] 340 | 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 C23 [-Wdeprecated-non-prototype] 365 | 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 C23 [-Wdeprecated-non-prototype] 392 | 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 C23 [-Wdeprecated-non-prototype] 412 | 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 C23 [-Wdeprecated-non-prototype] 713 | 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 C23 [-Wdeprecated-non-prototype] 752 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 34 | 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 C23 [-Wdeprecated-non-prototype] 69 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 167 | 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 C23 [-Wdeprecated-non-prototype] 196 | 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 C23 [-Wdeprecated-non-prototype] 213 | 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 C23 [-Wdeprecated-non-prototype] 227 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 260 | 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 C23 [-Wdeprecated-non-prototype] 325 | 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 C23 [-Wdeprecated-non-prototype] 350 | del_engr_at(x, y) | ^ engrave.c:749:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 749 | else | ^ engrave.c:877:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 877 | } else | ^ engrave.c:1050:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1050 | if (post_engr_text[0]) pline(post_engr_text); | ^~~~~~~~~~~~~~ engrave.c:1050:31: note: treat the string as an argument to avoid this 1050 | 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 C23 [-Wdeprecated-non-prototype] 1061 | 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 C23 [-Wdeprecated-non-prototype] 1085 | 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 C23 [-Wdeprecated-non-prototype] 1108 | 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 C23 [-Wdeprecated-non-prototype] 1131 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 11 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23 [-Wdeprecated-non-prototype] 66 | 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] 79 | 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 79 | 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 79 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 25 | 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 C23 [-Wdeprecated-non-prototype] 366 | 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 C23 [-Wdeprecated-non-prototype] 520 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 32 | 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 C23 [-Wdeprecated-non-prototype] 64 | 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 C23 [-Wdeprecated-non-prototype] 149 | 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 C23 [-Wdeprecated-non-prototype] 278 | corr(x,y) | ^ extralev.c:344:25: warning: '/*' within block comment [-Wcomment] 344 | #endif /* REINCARNATION /**/ | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c files.c 57 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 84 | 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 C23 [-Wdeprecated-non-prototype] 136 | 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 C23 [-Wdeprecated-non-prototype] 152 | 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 C23 [-Wdeprecated-non-prototype] 180 | 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 C23 [-Wdeprecated-non-prototype] 201 | 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 C23 [-Wdeprecated-non-prototype] 246 | 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 C23 [-Wdeprecated-non-prototype] 287 | 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 C23 [-Wdeprecated-non-prototype] 338 | 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 C23 [-Wdeprecated-non-prototype] 365 | 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 C23 [-Wdeprecated-non-prototype] 383 | 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 C23 [-Wdeprecated-non-prototype] 439 | 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 C23 [-Wdeprecated-non-prototype] 569 | 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 C23 [-Wdeprecated-non-prototype] 589 | 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 C23 [-Wdeprecated-non-prototype] 686 | compress(filename) | ^ files.c:693:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 693 | 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 C23 [-Wdeprecated-non-prototype] 700 | uncompress(filename) | ^ files.c:707:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 707 | 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 C23 [-Wdeprecated-non-prototype] 725 | 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 C23 [-Wdeprecated-non-prototype] 756 | 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 C23 [-Wdeprecated-non-prototype] 858 | 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 C23 [-Wdeprecated-non-prototype] 909 | 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 C23 [-Wdeprecated-non-prototype] 972 | 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 C23 [-Wdeprecated-non-prototype] 1023 | 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 C23 [-Wdeprecated-non-prototype] 1223 | 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 C23 [-Wdeprecated-non-prototype] 1307 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 16 | 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 C23 [-Wdeprecated-non-prototype] 89 | 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] 98 | else | ^ fountain.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | 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 C23 [-Wdeprecated-non-prototype] 145 | 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 463 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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 C23 [-Wdeprecated-non-prototype] 501 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 33 | 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 C23 [-Wdeprecated-non-prototype] 251 | still_chewing(x,y) | ^ hack.c:349:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 349 | if (digtxt) You(digtxt); /* after newsym */ | ^~~~~~ hack.c:349:21: note: treat the string as an argument to avoid this 349 | 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 C23 [-Wdeprecated-non-prototype] 359 | 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 C23 [-Wdeprecated-non-prototype] 415 | 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 C23 [-Wdeprecated-non-prototype] 424 | 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 C23 [-Wdeprecated-non-prototype] 435 | 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 C23 [-Wdeprecated-non-prototype] 445 | 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 C23 [-Wdeprecated-non-prototype] 1050 | 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 C23 [-Wdeprecated-non-prototype] 1064 | 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 C23 [-Wdeprecated-non-prototype] 1132 | 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 C23 [-Wdeprecated-non-prototype] 1174 | 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 C23 [-Wdeprecated-non-prototype] 1499 | 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 C23 [-Wdeprecated-non-prototype] 1510 | void unmul(msg_override) | ^ hack.c:1516:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1516 | if (*nomovemsg) pline(nomovemsg); | ^~~~~~~~~ hack.c:1516:24: note: treat the string as an argument to avoid this 1516 | 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 C23 [-Wdeprecated-non-prototype] 1527 | 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 C23 [-Wdeprecated-non-prototype] 1643 | 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 C23 [-Wdeprecated-non-prototype] 1669 | check_capacity(str) | ^ hack.c:1674:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1674 | pline(str); | ^~~ hack.c:1674:12: note: treat the string as an argument to avoid this 1674 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 52 | 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 C23 [-Wdeprecated-non-prototype] 59 | 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 C23 [-Wdeprecated-non-prototype] 68 | 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 C23 [-Wdeprecated-non-prototype] 75 | 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 C23 [-Wdeprecated-non-prototype] 84 | 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 C23 [-Wdeprecated-non-prototype] 96 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 140 | 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 C23 [-Wdeprecated-non-prototype] 160 | 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 C23 [-Wdeprecated-non-prototype] 171 | 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 C23 [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 217 | 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 C23 [-Wdeprecated-non-prototype] 229 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 248 | 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 C23 [-Wdeprecated-non-prototype] 273 | 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 C23 [-Wdeprecated-non-prototype] 286 | 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 C23 [-Wdeprecated-non-prototype] 294 | 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] 297 | 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] 297 | 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 C23 [-Wdeprecated-non-prototype] 308 | 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 C23 [-Wdeprecated-non-prototype] 333 | 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 C23 [-Wdeprecated-non-prototype] 355 | 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] 424 | srandom((int) time((long *)0)); | ^~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here 123 | 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] 444 | (void) time((long *)(&date)); | ^~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here 123 | 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] 449 | return(localtime((long *)(&date))); | ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here 509 | 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 C23 [-Wdeprecated-non-prototype] 463 | 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] 473 | lt = localtime((long *)(&date)); | ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here 509 | 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] 494 | lt = localtime((long *)(&date)); | ^~~~~~~~~~~~~~~ ../include/system.h:509:46: note: passing argument to parameter here 509 | 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 C23 [-Wdeprecated-non-prototype] 484 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 148 | 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 C23 [-Wdeprecated-non-prototype] 200 | 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 C23 [-Wdeprecated-non-prototype] 273 | 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 C23 [-Wdeprecated-non-prototype] 308 | 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 C23 [-Wdeprecated-non-prototype] 331 | 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 C23 [-Wdeprecated-non-prototype] 372 | 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 C23 [-Wdeprecated-non-prototype] 393 | 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 C23 [-Wdeprecated-non-prototype] 419 | 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 C23 [-Wdeprecated-non-prototype] 434 | 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 C23 [-Wdeprecated-non-prototype] 457 | 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 C23 [-Wdeprecated-non-prototype] 473 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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 C23 [-Wdeprecated-non-prototype] 504 | 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 C23 [-Wdeprecated-non-prototype] 521 | 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 C23 [-Wdeprecated-non-prototype] 557 | 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 C23 [-Wdeprecated-non-prototype] 824 | 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 C23 [-Wdeprecated-non-prototype] 841 | 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 C23 [-Wdeprecated-non-prototype] 854 | 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 C23 [-Wdeprecated-non-prototype] 980 | 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 C23 [-Wdeprecated-non-prototype] 1075 | 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 C23 [-Wdeprecated-non-prototype] 1086 | 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 C23 [-Wdeprecated-non-prototype] 1096 | 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 C23 [-Wdeprecated-non-prototype] 1126 | 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 C23 [-Wdeprecated-non-prototype] 1168 | 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 C23 [-Wdeprecated-non-prototype] 1185 | 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 C23 [-Wdeprecated-non-prototype] 1203 | 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 C23 [-Wdeprecated-non-prototype] 1259 | 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 C23 [-Wdeprecated-non-prototype] 1290 | 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 C23 [-Wdeprecated-non-prototype] 1383 | 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 C23 [-Wdeprecated-non-prototype] 1489 | this_type_only(obj) | ^ invent.c:1701:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1701 | if (dfeature) pline(fbuf); | ^~~~ invent.c:1701:23: note: treat the string as an argument to avoid this 1701 | if (dfeature) pline(fbuf); | ^ | "%s", invent.c:1709:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1709 | if (dfeature) pline(fbuf); | ^~~~ invent.c:1709:26: note: treat the string as an argument to avoid this 1709 | 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 C23 [-Wdeprecated-non-prototype] 1737 | 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 C23 [-Wdeprecated-non-prototype] 1795 | 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 C23 [-Wdeprecated-non-prototype] 1807 | 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 C23 [-Wdeprecated-non-prototype] 1976 | 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 C23 [-Wdeprecated-non-prototype] 2021 | let_to_name(let,unpaid) | ^ invent.c:2096:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2096 | 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 C23 [-Wdeprecated-non-prototype] 2156 | 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 C23 [-Wdeprecated-non-prototype] 2178 | 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 C23 [-Wdeprecated-non-prototype] 2200 | 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 C23 [-Wdeprecated-non-prototype] 2265 | 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 C23 [-Wdeprecated-non-prototype] 2294 | 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 C23 [-Wdeprecated-non-prototype] 2307 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 69 | 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 C23 [-Wdeprecated-non-prototype] 100 | 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] 111 | 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] 113 | 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 C23 [-Wdeprecated-non-prototype] 137 | 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 C23 [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 237 | 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 C23 [-Wdeprecated-non-prototype] 287 | 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 C23 [-Wdeprecated-non-prototype] 306 | 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] 317 | 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] 320 | 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 C23 [-Wdeprecated-non-prototype] 345 | 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 C23 [-Wdeprecated-non-prototype] 382 | 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] 398 | 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] 405 | 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 C23 [-Wdeprecated-non-prototype] 423 | 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 C23 [-Wdeprecated-non-prototype] 447 | 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 C23 [-Wdeprecated-non-prototype] 475 | 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 C23 [-Wdeprecated-non-prototype] 484 | 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 C23 [-Wdeprecated-non-prototype] 500 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 24 | 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 C23 [-Wdeprecated-non-prototype] 38 | 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 C23 [-Wdeprecated-non-prototype] 226 | 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 C23 [-Wdeprecated-non-prototype] 605 | 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 C23 [-Wdeprecated-non-prototype] 706 | 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 C23 [-Wdeprecated-non-prototype] 742 | 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] 865 | if (msg && cansee(x,y)) pline(msg); | ^~~ lock.c:865:32: note: treat the string as an argument to avoid this 865 | 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 C23 [-Wdeprecated-non-prototype] 881 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 36 | 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 C23 [-Wdeprecated-non-prototype] 53 | 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 C23 [-Wdeprecated-non-prototype] 74 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 625 | 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 C23 [-Wdeprecated-non-prototype] 804 | 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 C23 [-Wdeprecated-non-prototype] 877 | 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 C23 [-Wdeprecated-non-prototype] 1135 | 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 C23 [-Wdeprecated-non-prototype] 1173 | 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 C23 [-Wdeprecated-non-prototype] 1190 | align_shift(ptr) | ^ makemon.c:1231:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1231 | if (ptr = qt_montype()) { | ~~~~^~~~~~~~~~~~~~ makemon.c:1231:13: note: place parentheses around the assignment to silence this warning 1231 | if (ptr = qt_montype()) { | ^ | ( ) makemon.c:1231:13: note: use '==' to turn this assignment into an equality comparison 1231 | 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 C23 [-Wdeprecated-non-prototype] 1330 | 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 C23 [-Wdeprecated-non-prototype] 1353 | 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 C23 [-Wdeprecated-non-prototype] 1404 | 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 C23 [-Wdeprecated-non-prototype] 1435 | 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 C23 [-Wdeprecated-non-prototype] 1517 | 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 C23 [-Wdeprecated-non-prototype] 1586 | 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 C23 [-Wdeprecated-non-prototype] 1613 | 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 C23 [-Wdeprecated-non-prototype] 1657 | 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 C23 [-Wdeprecated-non-prototype] 1719 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 15 | 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 C23 [-Wdeprecated-non-prototype] 37 | 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 C23 [-Wdeprecated-non-prototype] 403 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 39 | 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 C23 [-Wdeprecated-non-prototype] 54 | 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 C23 [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 100 | 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 C23 [-Wdeprecated-non-prototype] 173 | 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 C23 [-Wdeprecated-non-prototype] 318 | 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 C23 [-Wdeprecated-non-prototype] 371 | 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 C23 [-Wdeprecated-non-prototype] 392 | 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 C23 [-Wdeprecated-non-prototype] 460 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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 C23 [-Wdeprecated-non-prototype] 967 | 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 C23 [-Wdeprecated-non-prototype] 980 | 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 C23 [-Wdeprecated-non-prototype] 1002 | 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 C23 [-Wdeprecated-non-prototype] 1016 | 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 C23 [-Wdeprecated-non-prototype] 1040 | 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 C23 [-Wdeprecated-non-prototype] 1057 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 40 | 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 C23 [-Wdeprecated-non-prototype] 83 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 126 | 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 C23 [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 220 | 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 C23 [-Wdeprecated-non-prototype] 278 | 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 C23 [-Wdeprecated-non-prototype] 611 | 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 C23 [-Wdeprecated-non-prototype] 684 | 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 C23 [-Wdeprecated-non-prototype] 699 | 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 C23 [-Wdeprecated-non-prototype] 738 | hitmu(mtmp, mattk) | ^ mhitu.c:1282:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1282 | 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 C23 [-Wdeprecated-non-prototype] 1414 | 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 C23 [-Wdeprecated-non-prototype] 1574 | 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 C23 [-Wdeprecated-non-prototype] 1677 | 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 C23 [-Wdeprecated-non-prototype] 1897 | 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 C23 [-Wdeprecated-non-prototype] 1930 | 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 C23 [-Wdeprecated-non-prototype] 1956 | 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 C23 [-Wdeprecated-non-prototype] 2011 | 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 C23 [-Wdeprecated-non-prototype] 2246 | 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 C23 [-Wdeprecated-non-prototype] 2290 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 10 | 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 C23 [-Wdeprecated-non-prototype] 55 | 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 C23 [-Wdeprecated-non-prototype] 110 | 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 C23 [-Wdeprecated-non-prototype] 229 | 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 C23 [-Wdeprecated-non-prototype] 259 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23 [-Wdeprecated-non-prototype] 314 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mklev.c:6:18: warning: '/*' within block comment [-Wcomment] 6 | /* #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 C23 [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 117 | 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 C23 [-Wdeprecated-non-prototype] 190 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 248 | 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 C23 [-Wdeprecated-non-prototype] 349 | 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 C23 [-Wdeprecated-non-prototype] 370 | 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 C23 [-Wdeprecated-non-prototype] 428 | 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 C23 [-Wdeprecated-non-prototype] 460 | 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 C23 [-Wdeprecated-non-prototype] 955 | 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 C23 [-Wdeprecated-non-prototype] 1018 | 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 C23 [-Wdeprecated-non-prototype] 1048 | 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 C23 [-Wdeprecated-non-prototype] 1062 | 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 C23 [-Wdeprecated-non-prototype] 1120 | 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 C23 [-Wdeprecated-non-prototype] 1146 | 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 C23 [-Wdeprecated-non-prototype] 1156 | 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 C23 [-Wdeprecated-non-prototype] 1169 | 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 C23 [-Wdeprecated-non-prototype] 1183 | 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 C23 [-Wdeprecated-non-prototype] 1273 | 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 C23 [-Wdeprecated-non-prototype] 1308 | 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 C23 [-Wdeprecated-non-prototype] 1334 | 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 C23 [-Wdeprecated-non-prototype] 1353 | mktoilet(croom) | ^ mklev.c:1370:17: warning: '/*' within block comment [-Wcomment] 1370 | #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 C23 [-Wdeprecated-non-prototype] 1373 | 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 C23 [-Wdeprecated-non-prototype] 1391 | 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 C23 [-Wdeprecated-non-prototype] 1471 | 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 C23 [-Wdeprecated-non-prototype] 1550 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 27 | 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 C23 [-Wdeprecated-non-prototype] 38 | 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 130 | 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 C23 [-Wdeprecated-non-prototype] 160 | flood_fill_rm(sx, sy, rmno, lit, anyroom) | ^ mkmap.c:208:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 208 | } else { | ^ mkmap.c:225:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 225 | } else { | ^ mkmap.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 361 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 30 | 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 C23 [-Wdeprecated-non-prototype] 39 | 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 C23 [-Wdeprecated-non-prototype] 53 | 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 C23 [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 118 | 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 C23 [-Wdeprecated-non-prototype] 195 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 222 | 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 C23 [-Wdeprecated-non-prototype] 235 | 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 C23 [-Wdeprecated-non-prototype] 283 | 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 C23 [-Wdeprecated-non-prototype] 486 | 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 C23 [-Wdeprecated-non-prototype] 673 | 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 C23 [-Wdeprecated-non-prototype] 708 | 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 C23 [-Wdeprecated-non-prototype] 722 | 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 C23 [-Wdeprecated-non-prototype] 847 | 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 C23 [-Wdeprecated-non-prototype] 1066 | 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 C23 [-Wdeprecated-non-prototype] 1089 | 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 C23 [-Wdeprecated-non-prototype] 1175 | 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 C23 [-Wdeprecated-non-prototype] 1232 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mkobj.c:19:26: warning: '/*' within block comment [-Wcomment] 19 | /*#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 C23 [-Wdeprecated-non-prototype] 82 | 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 C23 [-Wdeprecated-non-prototype] 95 | 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 C23 [-Wdeprecated-non-prototype] 107 | 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 C23 [-Wdeprecated-non-prototype] 138 | 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 C23 [-Wdeprecated-non-prototype] 236 | 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 C23 [-Wdeprecated-non-prototype] 279 | 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 C23 [-Wdeprecated-non-prototype] 310 | 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 C23 [-Wdeprecated-non-prototype] 601 | 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 C23 [-Wdeprecated-non-prototype] 643 | 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 C23 [-Wdeprecated-non-prototype] 657 | 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 C23 [-Wdeprecated-non-prototype] 669 | 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 C23 [-Wdeprecated-non-prototype] 683 | 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 C23 [-Wdeprecated-non-prototype] 698 | blessorcurse(otmp, chance) | ^ mkobj.c:707:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 707 | } else { | ^ mkobj.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | 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 C23 [-Wdeprecated-non-prototype] 735 | 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 C23 [-Wdeprecated-non-prototype] 790 | 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 C23 [-Wdeprecated-non-prototype] 824 | 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 C23 [-Wdeprecated-non-prototype] 909 | 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 C23 [-Wdeprecated-non-prototype] 927 | 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 C23 [-Wdeprecated-non-prototype] 943 | 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 C23 [-Wdeprecated-non-prototype] 964 | 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 C23 [-Wdeprecated-non-prototype] 1003 | 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 C23 [-Wdeprecated-non-prototype] 1029 | 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 C23 [-Wdeprecated-non-prototype] 1049 | 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 C23 [-Wdeprecated-non-prototype] 1118 | 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 C23 [-Wdeprecated-non-prototype] 1134 | 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 C23 [-Wdeprecated-non-prototype] 1162 | 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 C23 [-Wdeprecated-non-prototype] 1199 | 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 C23 [-Wdeprecated-non-prototype] 1226 | 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 C23 [-Wdeprecated-non-prototype] 1246 | 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 C23 [-Wdeprecated-non-prototype] 1267 | 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 C23 [-Wdeprecated-non-prototype] 1280 | 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 C23 [-Wdeprecated-non-prototype] 1292 | 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 C23 [-Wdeprecated-non-prototype] 1305 | 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 C23 [-Wdeprecated-non-prototype] 1322 | 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 C23 [-Wdeprecated-non-prototype] 1450 | 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 C23 [-Wdeprecated-non-prototype] 1458 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 37 | 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 173 | 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 C23 [-Wdeprecated-non-prototype] 202 | 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 C23 [-Wdeprecated-non-prototype] 220 | 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 C23 [-Wdeprecated-non-prototype] 408 | 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 C23 [-Wdeprecated-non-prototype] 481 | 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 C23 [-Wdeprecated-non-prototype] 517 | 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 C23 [-Wdeprecated-non-prototype] 532 | 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 C23 [-Wdeprecated-non-prototype] 543 | 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 C23 [-Wdeprecated-non-prototype] 557 | 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 C23 [-Wdeprecated-non-prototype] 564 | 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 C23 [-Wdeprecated-non-prototype] 571 | 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 C23 [-Wdeprecated-non-prototype] 580 | 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 C23 [-Wdeprecated-non-prototype] 638 | 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 C23 [-Wdeprecated-non-prototype] 736 | 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 C23 [-Wdeprecated-non-prototype] 756 | 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 C23 [-Wdeprecated-non-prototype] 768 | 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 C23 [-Wdeprecated-non-prototype] 787 | rest_rooms(fd) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c mon.c 71 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 54 | 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 C23 [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23 [-Wdeprecated-non-prototype] 423 | 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 C23 [-Wdeprecated-non-prototype] 504 | 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 C23 [-Wdeprecated-non-prototype] 530 | 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 C23 [-Wdeprecated-non-prototype] 603 | 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 C23 [-Wdeprecated-non-prototype] 622 | 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 C23 [-Wdeprecated-non-prototype] 671 | 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 C23 [-Wdeprecated-non-prototype] 686 | 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 C23 [-Wdeprecated-non-prototype] 715 | 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 C23 [-Wdeprecated-non-prototype] 747 | 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 C23 [-Wdeprecated-non-prototype] 935 | 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 C23 [-Wdeprecated-non-prototype] 963 | 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 C23 [-Wdeprecated-non-prototype] 976 | 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 C23 [-Wdeprecated-non-prototype] 1011 | 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 C23 [-Wdeprecated-non-prototype] 1030 | 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 C23 [-Wdeprecated-non-prototype] 1052 | 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 C23 [-Wdeprecated-non-prototype] 1065 | 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 C23 [-Wdeprecated-non-prototype] 1103 | 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 C23 [-Wdeprecated-non-prototype] 1187 | 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 C23 [-Wdeprecated-non-prototype] 1220 | 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 C23 [-Wdeprecated-non-prototype] 1232 | 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 C23 [-Wdeprecated-non-prototype] 1243 | 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 C23 [-Wdeprecated-non-prototype] 1297 | 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 C23 [-Wdeprecated-non-prototype] 1325 | 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 C23 [-Wdeprecated-non-prototype] 1343 | 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 C23 [-Wdeprecated-non-prototype] 1351 | 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 C23 [-Wdeprecated-non-prototype] 1533 | 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 C23 [-Wdeprecated-non-prototype] 1548 | 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 C23 [-Wdeprecated-non-prototype] 1565 | 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 C23 [-Wdeprecated-non-prototype] 1616 | 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 C23 [-Wdeprecated-non-prototype] 1624 | 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 C23 [-Wdeprecated-non-prototype] 1669 | 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 C23 [-Wdeprecated-non-prototype] 1701 | 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 C23 [-Wdeprecated-non-prototype] 1757 | 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 C23 [-Wdeprecated-non-prototype] 1782 | 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 C23 [-Wdeprecated-non-prototype] 1796 | 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 C23 [-Wdeprecated-non-prototype] 1853 | 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 C23 [-Wdeprecated-non-prototype] 1874 | 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 C23 [-Wdeprecated-non-prototype] 2043 | 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 C23 [-Wdeprecated-non-prototype] 2060 | 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 C23 [-Wdeprecated-non-prototype] 2074 | 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 C23 [-Wdeprecated-non-prototype] 2094 | 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 C23 [-Wdeprecated-non-prototype] 2165 | 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 C23 [-Wdeprecated-non-prototype] 2202 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 14 | 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 C23 [-Wdeprecated-non-prototype] 33 | 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 C23 [-Wdeprecated-non-prototype] 49 | 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 C23 [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 95 | 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 C23 [-Wdeprecated-non-prototype] 122 | 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 176 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23 [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 262 | 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 C23 [-Wdeprecated-non-prototype] 364 | 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 C23 [-Wdeprecated-non-prototype] 375 | 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 C23 [-Wdeprecated-non-prototype] 385 | 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 C23 [-Wdeprecated-non-prototype] 397 | 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 C23 [-Wdeprecated-non-prototype] 493 | 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 C23 [-Wdeprecated-non-prototype] 520 | 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 C23 [-Wdeprecated-non-prototype] 537 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 20 | 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 78 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23 [-Wdeprecated-non-prototype] 166 | 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 C23 [-Wdeprecated-non-prototype] 183 | 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 C23 [-Wdeprecated-non-prototype] 218 | 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 C23 [-Wdeprecated-non-prototype] 265 | 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 C23 [-Wdeprecated-non-prototype] 278 | 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 C23 [-Wdeprecated-non-prototype] 525 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 1111 | 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 C23 [-Wdeprecated-non-prototype] 1119 | 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 C23 [-Wdeprecated-non-prototype] 1130 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 66 | 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 C23 [-Wdeprecated-non-prototype] 91 | 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 C23 [-Wdeprecated-non-prototype] 110 | 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 C23 [-Wdeprecated-non-prototype] 284 | 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 C23 [-Wdeprecated-non-prototype] 312 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 34 | 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 C23 [-Wdeprecated-non-prototype] 76 | 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 399 | 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 C23 [-Wdeprecated-non-prototype] 420 | 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 C23 [-Wdeprecated-non-prototype] 469 | 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 C23 [-Wdeprecated-non-prototype] 511 | 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 C23 [-Wdeprecated-non-prototype] 553 | 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 C23 [-Wdeprecated-non-prototype] 572 | 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 C23 [-Wdeprecated-non-prototype] 584 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 54 | precheck(mon, obj) | ^ muse.c:79:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 79 | if (vis) pline(empty); | ^~~~~ muse.c:79:22: note: treat the string as an argument to avoid this 79 | if (vis) pline(empty); | ^ | "%s", muse.c:101:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 101 | if (vis) pline(empty); | ^~~~~ muse.c:101:22: note: treat the string as an argument to avoid this 101 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23 [-Wdeprecated-non-prototype] 161 | 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 C23 [-Wdeprecated-non-prototype] 198 | 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 C23 [-Wdeprecated-non-prototype] 249 | 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 C23 [-Wdeprecated-non-prototype] 500 | 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 C23 [-Wdeprecated-non-prototype] 894 | 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 C23 [-Wdeprecated-non-prototype] 951 | 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 C23 [-Wdeprecated-non-prototype] 1065 | 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 C23 [-Wdeprecated-non-prototype] 1130 | 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 C23 [-Wdeprecated-non-prototype] 1219 | 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 C23 [-Wdeprecated-non-prototype] 1352 | 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 C23 [-Wdeprecated-non-prototype] 1394 | 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 C23 [-Wdeprecated-non-prototype] 1498 | 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 C23 [-Wdeprecated-non-prototype] 1672 | 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 C23 [-Wdeprecated-non-prototype] 1697 | 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 C23 [-Wdeprecated-non-prototype] 1732 | 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 C23 [-Wdeprecated-non-prototype] 1781 | 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 C23 [-Wdeprecated-non-prototype] 1809 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 61 | 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 C23 [-Wdeprecated-non-prototype] 87 | 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 C23 [-Wdeprecated-non-prototype] 107 | 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 C23 [-Wdeprecated-non-prototype] 140 | 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 C23 [-Wdeprecated-non-prototype] 182 | 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 C23 [-Wdeprecated-non-prototype] 202 | 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 C23 [-Wdeprecated-non-prototype] 341 | 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 C23 [-Wdeprecated-non-prototype] 489 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 68 | shuffle(o_low, o_high, domaterial) | ^ o_init.c:167:10: warning: self-comparison always evaluates to false [-Wtautological-compare] 167 | 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 C23 [-Wdeprecated-non-prototype] 252 | 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 C23 [-Wdeprecated-non-prototype] 282 | 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 C23 [-Wdeprecated-non-prototype] 303 | 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 C23 [-Wdeprecated-non-prototype] 328 | 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 C23 [-Wdeprecated-non-prototype] 352 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 76 | 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 C23 [-Wdeprecated-non-prototype] 151 | 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 433 | 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 C23 [-Wdeprecated-non-prototype] 446 | 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 C23 [-Wdeprecated-non-prototype] 672 | 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 C23 [-Wdeprecated-non-prototype] 705 | 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 C23 [-Wdeprecated-non-prototype] 724 | 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 C23 [-Wdeprecated-non-prototype] 743 | 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 C23 [-Wdeprecated-non-prototype] 767 | 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 C23 [-Wdeprecated-non-prototype] 780 | 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 C23 [-Wdeprecated-non-prototype] 827 | 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 C23 [-Wdeprecated-non-prototype] 836 | 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 C23 [-Wdeprecated-non-prototype] 865 | 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 C23 [-Wdeprecated-non-prototype] 876 | 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 C23 [-Wdeprecated-non-prototype] 888 | 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 C23 [-Wdeprecated-non-prototype] 924 | makeplural(oldstr) | ^ objnam.c:1012:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1012 | 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 C23 [-Wdeprecated-non-prototype] 1175 | 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 C23 [-Wdeprecated-non-prototype] 1300 | 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 C23 [-Wdeprecated-non-prototype] 2157 | 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 C23 [-Wdeprecated-non-prototype] 2173 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 445 | 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 C23 [-Wdeprecated-non-prototype] 467 | 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 C23 [-Wdeprecated-non-prototype] 524 | 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 C23 [-Wdeprecated-non-prototype] 540 | 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 C23 [-Wdeprecated-non-prototype] 558 | 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 C23 [-Wdeprecated-non-prototype] 582 | 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 C23 [-Wdeprecated-non-prototype] 597 | 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 C23 [-Wdeprecated-non-prototype] 610 | 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 C23 [-Wdeprecated-non-prototype] 629 | 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 C23 [-Wdeprecated-non-prototype] 663 | 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 C23 [-Wdeprecated-non-prototype] 684 | 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 C23 [-Wdeprecated-non-prototype] 1408 | 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 C23 [-Wdeprecated-non-prototype] 1427 | 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 C23 [-Wdeprecated-non-prototype] 1446 | 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 C23 [-Wdeprecated-non-prototype] 1465 | 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 C23 [-Wdeprecated-non-prototype] 1735 | 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 C23 [-Wdeprecated-non-prototype] 1770 | 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 C23 [-Wdeprecated-non-prototype] 1859 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 23 | 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 C23 [-Wdeprecated-non-prototype] 38 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23 [-Wdeprecated-non-prototype] 167 | 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 C23 [-Wdeprecated-non-prototype] 305 | 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 C23 [-Wdeprecated-non-prototype] 648 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 210 | 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 C23 [-Wdeprecated-non-prototype] 243 | 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 C23 [-Wdeprecated-non-prototype] 254 | 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 C23 [-Wdeprecated-non-prototype] 268 | 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 C23 [-Wdeprecated-non-prototype] 277 | 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 C23 [-Wdeprecated-non-prototype] 284 | 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 C23 [-Wdeprecated-non-prototype] 311 | 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 C23 [-Wdeprecated-non-prototype] 327 | 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 C23 [-Wdeprecated-non-prototype] 499 | 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 C23 [-Wdeprecated-non-prototype] 543 | 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 C23 [-Wdeprecated-non-prototype] 635 | 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 C23 [-Wdeprecated-non-prototype] 748 | 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 C23 [-Wdeprecated-non-prototype] 778 | 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 C23 [-Wdeprecated-non-prototype] 908 | 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 C23 [-Wdeprecated-non-prototype] 963 | 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 C23 [-Wdeprecated-non-prototype] 1083 | 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 C23 [-Wdeprecated-non-prototype] 1248 | 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 C23 [-Wdeprecated-non-prototype] 1277 | 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 C23 [-Wdeprecated-non-prototype] 1422 | 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 C23 [-Wdeprecated-non-prototype] 1430 | 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 C23 [-Wdeprecated-non-prototype] 1496 | 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 C23 [-Wdeprecated-non-prototype] 1701 | 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 C23 [-Wdeprecated-non-prototype] 1767 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 246 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 49 | polyman(fmt, arg) | ^ polyself.c:305:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 305 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 305 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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] 332 | if (tries==5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 332 | if (tries==5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 C23 [-Wdeprecated-non-prototype] 396 | 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 C23 [-Wdeprecated-non-prototype] 719 | 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] 737 | uswapwepgone(); | ^ polyself.c:1086:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1086 | 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 C23 [-Wdeprecated-non-prototype] 1179 | 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 C23 [-Wdeprecated-non-prototype] 1207 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 20 | 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 C23 [-Wdeprecated-non-prototype] 31 | 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 C23 [-Wdeprecated-non-prototype] 40 | 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 C23 [-Wdeprecated-non-prototype] 49 | 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 74 | 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 C23 [-Wdeprecated-non-prototype] 94 | 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 C23 [-Wdeprecated-non-prototype] 141 | 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 C23 [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 193 | make_hallucinated(xtime, talk, mask) | ^ potion.c:230:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 230 | if (!Blind && talk) pline(message); | ^~~~~~~ potion.c:230:32: note: treat the string as an argument to avoid this 230 | 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 C23 [-Wdeprecated-non-prototype] 321 | 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 C23 [-Wdeprecated-non-prototype] 346 | 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 C23 [-Wdeprecated-non-prototype] 811 | 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 C23 [-Wdeprecated-non-prototype] 835 | strange_feeling(obj,txt) | ^ potion.c:843:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 843 | pline(txt); | ^~~ potion.c:843:9: note: treat the string as an argument to avoid this 843 | 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 C23 [-Wdeprecated-non-prototype] 859 | 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 C23 [-Wdeprecated-non-prototype] 1036 | potionbreathe(obj) | ^ potion.c:1151:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1151 | 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 C23 [-Wdeprecated-non-prototype] 1157 | 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 C23 [-Wdeprecated-non-prototype] 1254 | 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 C23 [-Wdeprecated-non-prototype] 1669 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 209 | 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 C23 [-Wdeprecated-non-prototype] 389 | god_zaps_you(resp_god) | ^ pray.c:411:28: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] 411 | } else if(Reflecting && W_ARMS) { | ^ ~~~~~~ pray.c:411:28: note: use '&' for a bitwise operation 411 | } else if(Reflecting && W_ARMS) { | ^~ | & pray.c:411:28: note: remove constant to silence this warning 411 | } 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 C23 [-Wdeprecated-non-prototype] 477 | 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 C23 [-Wdeprecated-non-prototype] 490 | 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 C23 [-Wdeprecated-non-prototype] 566 | 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 C23 [-Wdeprecated-non-prototype] 876 | 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 C23 [-Wdeprecated-non-prototype] 903 | 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 C23 [-Wdeprecated-non-prototype] 918 | 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 C23 [-Wdeprecated-non-prototype] 926 | 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 C23 [-Wdeprecated-non-prototype] 937 | 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 C23 [-Wdeprecated-non-prototype] 962 | god_gives_pet(alignment) | ^ pray.c:1255:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1255 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pray.c:1255:8: note: treat the string as an argument to avoid this 1255 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 1485 | 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 C23 [-Wdeprecated-non-prototype] 1730 | 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 C23 [-Wdeprecated-non-prototype] 1745 | 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 C23 [-Wdeprecated-non-prototype] 1766 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 21 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 131 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23 [-Wdeprecated-non-prototype] 186 | 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 C23 [-Wdeprecated-non-prototype] 253 | 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 C23 [-Wdeprecated-non-prototype] 291 | 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 C23 [-Wdeprecated-non-prototype] 298 | 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 C23 [-Wdeprecated-non-prototype] 312 | 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 C23 [-Wdeprecated-non-prototype] 326 | intemple(roomno) | ^ priest.c:359:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 359 | verbalize(msg1); | ^~~~ priest.c:359:17: note: treat the string as an argument to avoid this 359 | verbalize(msg1); | ^ | "%s", priest.c:360:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 360 | if (msg2) verbalize(msg2); | ^~~~ priest.c:360:27: note: treat the string as an argument to avoid this 360 | 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 C23 [-Wdeprecated-non-prototype] 395 | priest_talk(priest) | ^ priest.c:424:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 424 | verbalize(cranky_msg[rn2(3)]); | ^~~~~~~~~~~~~~~~~~ priest.c:424:16: note: treat the string as an argument to avoid this 424 | 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 C23 [-Wdeprecated-non-prototype] 499 | 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 C23 [-Wdeprecated-non-prototype] 531 | 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 C23 [-Wdeprecated-non-prototype] 546 | 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 C23 [-Wdeprecated-non-prototype] 560 | 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 C23 [-Wdeprecated-non-prototype] 664 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 153 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 273 | 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 C23 [-Wdeprecated-non-prototype] 322 | 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 C23 [-Wdeprecated-non-prototype] 335 | 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 C23 [-Wdeprecated-non-prototype] 346 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 344 | 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 C23 [-Wdeprecated-non-prototype] 377 | 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 C23 [-Wdeprecated-non-prototype] 418 | 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 C23 [-Wdeprecated-non-prototype] 431 | 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 C23 [-Wdeprecated-non-prototype] 559 | deliver_by_pline(qt_msg) | ^ questpgr.c:567:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 567 | pline(out_line); | ^~~~~~~~ questpgr.c:567:12: note: treat the string as an argument to avoid this 567 | 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 C23 [-Wdeprecated-non-prototype] 573 | 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 C23 [-Wdeprecated-non-prototype] 590 | 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 C23 [-Wdeprecated-non-prototype] 608 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ read.c:94:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 94 | pline(epitaph); | ^~~~~~~ read.c:94:10: note: treat the string as an argument to avoid this 94 | 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 C23 [-Wdeprecated-non-prototype] 234 | stripspe(obj) | ^ read.c:237:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 237 | if (obj->blessed) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:237:26: note: treat the string as an argument to avoid this 237 | if (obj->blessed) pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 244 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:244:16: note: treat the string as an argument to avoid this 244 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 249 | 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 C23 [-Wdeprecated-non-prototype] 257 | 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 C23 [-Wdeprecated-non-prototype] 270 | 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 C23 [-Wdeprecated-non-prototype] 288 | recharge(obj, curse_bless) | ^ read.c:317:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 317 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:317:20: note: treat the string as an argument to avoid this 317 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 378 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:378:10: note: treat the string as an argument to avoid this 378 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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] 422 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:422:20: note: treat the string as an argument to avoid this 422 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 464 | 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 C23 [-Wdeprecated-non-prototype] 497 | 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 C23 [-Wdeprecated-non-prototype] 514 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 574 | 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 C23 [-Wdeprecated-non-prototype] 620 | 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 C23 [-Wdeprecated-non-prototype] 650 | seffects(sobj) | ^ read.c:938:25: warning: '/*' within block comment [-Wcomment] 938 | /* 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 C23 [-Wdeprecated-non-prototype] 1164 | 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 C23 [-Wdeprecated-non-prototype] 1178 | 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 C23 [-Wdeprecated-non-prototype] 1191 | litroom(on,obj) | ^ read.c:1263:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1263 | set_lit, (genericptr_t)((on)? 1 : -1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1294:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1294 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 1294 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 C23 [-Wdeprecated-non-prototype] 1401 | do_genocide(how) | ^ read.c:1421:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1421 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 1421 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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] 1512 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1512:9: note: treat the string as an argument to avoid this 1512 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 1517 | 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 C23 [-Wdeprecated-non-prototype] 1564 | cant_create(mtype) | ^ read.c:1593:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1593 | if (tries == 5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 1593 | if (tries == 5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 43 | 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 C23 [-Wdeprecated-non-prototype] 64 | 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 C23 [-Wdeprecated-non-prototype] 97 | 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 134 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 300 | 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 C23 [-Wdeprecated-non-prototype] 317 | 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 C23 [-Wdeprecated-non-prototype] 330 | 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 C23 [-Wdeprecated-non-prototype] 344 | 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 C23 [-Wdeprecated-non-prototype] 434 | 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 C23 [-Wdeprecated-non-prototype] 449 | 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 C23 [-Wdeprecated-non-prototype] 508 | 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 C23 [-Wdeprecated-non-prototype] 632 | 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 C23 [-Wdeprecated-non-prototype] 859 | 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 C23 [-Wdeprecated-non-prototype] 884 | 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 C23 [-Wdeprecated-non-prototype] 980 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 44 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 22 | 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 C23 [-Wdeprecated-non-prototype] 41 | 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 C23 [-Wdeprecated-non-prototype] 67 | 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 C23 [-Wdeprecated-non-prototype] 86 | 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 C23 [-Wdeprecated-non-prototype] 105 | 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 C23 [-Wdeprecated-non-prototype] 126 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 42 | 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 C23 [-Wdeprecated-non-prototype] 63 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 177 | 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 C23 [-Wdeprecated-non-prototype] 194 | 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 C23 [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 255 | doconsult(oracl) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c save.c 60 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 375 | 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 C23 [-Wdeprecated-non-prototype] 624 | 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 C23 [-Wdeprecated-non-prototype] 638 | 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 C23 [-Wdeprecated-non-prototype] 646 | 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 C23 [-Wdeprecated-non-prototype] 659 | 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 C23 [-Wdeprecated-non-prototype] 699 | 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 C23 [-Wdeprecated-non-prototype] 716 | 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 C23 [-Wdeprecated-non-prototype] 738 | 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 C23 [-Wdeprecated-non-prototype] 763 | 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 C23 [-Wdeprecated-non-prototype] 794 | 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 C23 [-Wdeprecated-non-prototype] 824 | 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 C23 [-Wdeprecated-non-prototype] 848 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ shk.c:91:8: warning: '/*' within block comment [-Wcomment] 91 | #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 C23 [-Wdeprecated-non-prototype] 100 | 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 126 | 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 C23 [-Wdeprecated-non-prototype] 149 | 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 C23 [-Wdeprecated-non-prototype] 159 | 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 C23 [-Wdeprecated-non-prototype] 170 | 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 C23 [-Wdeprecated-non-prototype] 194 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 253 | 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 C23 [-Wdeprecated-non-prototype] 340 | 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 C23 [-Wdeprecated-non-prototype] 353 | 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 C23 [-Wdeprecated-non-prototype] 431 | u_entered_shop(enterstring) | ^ shk.c:542:8: warning: '/*' within block comment [-Wcomment] 542 | #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 C23 [-Wdeprecated-non-prototype] 549 | 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 C23 [-Wdeprecated-non-prototype] 581 | 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 C23 [-Wdeprecated-non-prototype] 633 | 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 C23 [-Wdeprecated-non-prototype] 642 | 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 C23 [-Wdeprecated-non-prototype] 659 | 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 C23 [-Wdeprecated-non-prototype] 671 | 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 C23 [-Wdeprecated-non-prototype] 692 | 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 C23 [-Wdeprecated-non-prototype] 705 | 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 C23 [-Wdeprecated-non-prototype] 751 | 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 C23 [-Wdeprecated-non-prototype] 771 | 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 C23 [-Wdeprecated-non-prototype] 792 | 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 C23 [-Wdeprecated-non-prototype] 823 | 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 C23 [-Wdeprecated-non-prototype] 842 | 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 C23 [-Wdeprecated-non-prototype] 860 | 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 C23 [-Wdeprecated-non-prototype] 904 | 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 C23 [-Wdeprecated-non-prototype] 919 | 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 C23 [-Wdeprecated-non-prototype] 960 | 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] 1184 | pline(sbuf); | ^~~~ shk.c:1184:9: note: treat the string as an argument to avoid this 1184 | 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 C23 [-Wdeprecated-non-prototype] 1305 | 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 C23 [-Wdeprecated-non-prototype] 1400 | 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 C23 [-Wdeprecated-non-prototype] 1434 | 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 C23 [-Wdeprecated-non-prototype] 1517 | 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 C23 [-Wdeprecated-non-prototype] 1565 | 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 C23 [-Wdeprecated-non-prototype] 1584 | 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 C23 [-Wdeprecated-non-prototype] 1613 | 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 C23 [-Wdeprecated-non-prototype] 1688 | 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 C23 [-Wdeprecated-non-prototype] 1719 | 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 C23 [-Wdeprecated-non-prototype] 1736 | 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 C23 [-Wdeprecated-non-prototype] 1756 | 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 C23 [-Wdeprecated-non-prototype] 1777 | 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 C23 [-Wdeprecated-non-prototype] 1815 | 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 C23 [-Wdeprecated-non-prototype] 1832 | 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 C23 [-Wdeprecated-non-prototype] 1875 | 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 C23 [-Wdeprecated-non-prototype] 1890 | 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 C23 [-Wdeprecated-non-prototype] 1911 | 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 C23 [-Wdeprecated-non-prototype] 1946 | 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 C23 [-Wdeprecated-non-prototype] 2054 | 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 C23 [-Wdeprecated-non-prototype] 2092 | 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 C23 [-Wdeprecated-non-prototype] 2135 | 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 C23 [-Wdeprecated-non-prototype] 2158 | 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 C23 [-Wdeprecated-non-prototype] 2203 | 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 C23 [-Wdeprecated-non-prototype] 2263 | 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 C23 [-Wdeprecated-non-prototype] 2277 | 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 C23 [-Wdeprecated-non-prototype] 2486 | 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 C23 [-Wdeprecated-non-prototype] 2576 | 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 C23 [-Wdeprecated-non-prototype] 2611 | 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 C23 [-Wdeprecated-non-prototype] 2641 | 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 C23 [-Wdeprecated-non-prototype] 2689 | 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 C23 [-Wdeprecated-non-prototype] 2784 | 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 C23 [-Wdeprecated-non-prototype] 2912 | 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 C23 [-Wdeprecated-non-prototype] 3019 | 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 C23 [-Wdeprecated-non-prototype] 3027 | 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 C23 [-Wdeprecated-non-prototype] 3085 | makekops(mm) | ^ shk.c:3131:41: warning: '/*' within block comment [-Wcomment] 3131 | /* k_cnt[1] = (cnt / 3) + 1; /* at least one sarge */ | ^ shk.c:3132:41: warning: '/*' within block comment [-Wcomment] 3132 | /* k_cnt[2] = (cnt / 6); /* maybe a lieutenant */ | ^ shk.c:3133:41: warning: '/*' within block comment [-Wcomment] 3133 | /* 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 C23 [-Wdeprecated-non-prototype] 3148 | 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 C23 [-Wdeprecated-non-prototype] 3298 | 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 C23 [-Wdeprecated-non-prototype] 3317 | 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 C23 [-Wdeprecated-non-prototype] 3337 | 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 C23 [-Wdeprecated-non-prototype] 3386 | 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 C23 [-Wdeprecated-non-prototype] 3431 | 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 C23 [-Wdeprecated-non-prototype] 3473 | 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 C23 [-Wdeprecated-non-prototype] 3496 | 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 C23 [-Wdeprecated-non-prototype] 3544 | 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 C23 [-Wdeprecated-non-prototype] 3578 | 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 C23 [-Wdeprecated-non-prototype] 3615 | 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 C23 [-Wdeprecated-non-prototype] 3647 | 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 C23 [-Wdeprecated-non-prototype] 3684 | 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 C23 [-Wdeprecated-non-prototype] 3694 | 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 C23 [-Wdeprecated-non-prototype] 3704 | 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 C23 [-Wdeprecated-non-prototype] 3721 | 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 C23 [-Wdeprecated-non-prototype] 3870 | shk_identify(slang, shkp) | ^ shk.c:3887:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3887 | if (guesswork = !shk_obj_match(obj, shkp)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ shk.c:3887:16: note: place parentheses around the assignment to silence this warning 3887 | if (guesswork = !shk_obj_match(obj, shkp)) | ^ | ( ) shk.c:3887:16: note: use '==' to turn this assignment into an equality comparison 3887 | 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] 3926 | 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 C23 [-Wdeprecated-non-prototype] 4009 | 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 C23 [-Wdeprecated-non-prototype] 4082 | 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 C23 [-Wdeprecated-non-prototype] 4180 | 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 C23 [-Wdeprecated-non-prototype] 4305 | 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 C23 [-Wdeprecated-non-prototype] 4407 | 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 C23 [-Wdeprecated-non-prototype] 4524 | 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 C23 [-Wdeprecated-non-prototype] 4542 | 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 C23 [-Wdeprecated-non-prototype] 4572 | 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 C23 [-Wdeprecated-non-prototype] 4614 | 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 C23 [-Wdeprecated-non-prototype] 4668 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 277 | 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 C23 [-Wdeprecated-non-prototype] 301 | 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 C23 [-Wdeprecated-non-prototype] 363 | 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 C23 [-Wdeprecated-non-prototype] 489 | 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 C23 [-Wdeprecated-non-prototype] 567 | 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] 597 | goodcl[12] = 0; | ^ ~~ shknam.c:583:5: note: array 'goodcl' declared here 583 | 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 C23 [-Wdeprecated-non-prototype] 676 | 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 C23 [-Wdeprecated-non-prototype] 694 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 21 | mon_in_room(mon, rmtyp) | ^ sounds.c:51:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 51 | You_hear(fountain_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:51:11: note: treat the string as an argument to avoid this 51 | You_hear(fountain_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:60:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 60 | You_hear(sink_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:60:11: note: treat the string as an argument to avoid this 60 | You_hear(sink_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:78:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 78 | if (which != 2) You_hear(throne_msg[which]); | ^~~~~~~~~~~~~~~~~ sounds.c:78:28: note: treat the string as an argument to avoid this 78 | 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] 89 | You(swamp_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:89:6: note: treat the string as an argument to avoid this 89 | You(swamp_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:192:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 192 | You_hear(barracks_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:192:12: note: treat the string as an argument to avoid this 192 | You_hear(barracks_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:205:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 205 | You_hear(zoo_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~ sounds.c:205:12: note: treat the string as an argument to avoid this 205 | You_hear(zoo_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:222:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 222 | You_hear(shop_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:222:15: note: treat the string as an argument to avoid this 222 | You_hear(shop_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:240:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 240 | You_hear(ora_msg[rn2(3)+hallu*2]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:240:15: note: treat the string as an argument to avoid this 240 | 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] 252 | pline(blkmar_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:252:13: note: treat the string as an argument to avoid this 252 | 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 C23 [-Wdeprecated-non-prototype] 266 | 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 C23 [-Wdeprecated-non-prototype] 309 | 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 C23 [-Wdeprecated-non-prototype] 330 | 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 C23 [-Wdeprecated-non-prototype] 370 | 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 C23 [-Wdeprecated-non-prototype] 401 | 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 C23 [-Wdeprecated-non-prototype] 414 | domonnoise(mtmp) | ^ sounds.c:709:35: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 709 | else if (verbl_msg) verbalize(verbl_msg); | ^~~~~~~~~ sounds.c:709:35: note: treat the string as an argument to avoid this 709 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ sp_lev.c:14:18: warning: '/*' within block comment [-Wcomment] 14 | /* #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 C23 [-Wdeprecated-non-prototype] 102 | 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 C23 [-Wdeprecated-non-prototype] 169 | 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 C23 [-Wdeprecated-non-prototype] 208 | 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 C23 [-Wdeprecated-non-prototype] 232 | 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 C23 [-Wdeprecated-non-prototype] 258 | 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 C23 [-Wdeprecated-non-prototype] 286 | 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 C23 [-Wdeprecated-non-prototype] 304 | 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 C23 [-Wdeprecated-non-prototype] 359 | 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 C23 [-Wdeprecated-non-prototype] 531 | 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 C23 [-Wdeprecated-non-prototype] 580 | 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 C23 [-Wdeprecated-non-prototype] 664 | 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 C23 [-Wdeprecated-non-prototype] 706 | 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 C23 [-Wdeprecated-non-prototype] 733 | 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 C23 [-Wdeprecated-non-prototype] 902 | create_object(o,croom,egg_type) | ^ sp_lev.c:965:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 965 | 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 C23 [-Wdeprecated-non-prototype] 1036 | 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 C23 [-Wdeprecated-non-prototype] 1058 | 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 C23 [-Wdeprecated-non-prototype] 1074 | 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 C23 [-Wdeprecated-non-prototype] 1140 | 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 C23 [-Wdeprecated-non-prototype] 1162 | 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 C23 [-Wdeprecated-non-prototype] 1205 | 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 C23 [-Wdeprecated-non-prototype] 1258 | 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] 1368 | 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 C23 [-Wdeprecated-non-prototype] 1408 | 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 C23 [-Wdeprecated-non-prototype] 1450 | 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 C23 [-Wdeprecated-non-prototype] 1511 | 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 C23 [-Wdeprecated-non-prototype] 1583 | 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 C23 [-Wdeprecated-non-prototype] 1666 | 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 C23 [-Wdeprecated-non-prototype] 1692 | 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 C23 [-Wdeprecated-non-prototype] 1738 | 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 C23 [-Wdeprecated-non-prototype] 1760 | 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 C23 [-Wdeprecated-non-prototype] 1776 | 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 C23 [-Wdeprecated-non-prototype] 1790 | 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 C23 [-Wdeprecated-non-prototype] 2020 | 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 C23 [-Wdeprecated-non-prototype] 2046 | load_maze(fd) | ^ sp_lev.c:2095:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2095 | } else { | ^ sp_lev.c:2543:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2543 | 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 C23 [-Wdeprecated-non-prototype] 2606 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 113 | 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 C23 [-Wdeprecated-non-prototype] 178 | 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 C23 [-Wdeprecated-non-prototype] 331 | 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 C23 [-Wdeprecated-non-prototype] 480 | 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 C23 [-Wdeprecated-non-prototype] 538 | 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 C23 [-Wdeprecated-non-prototype] 864 | 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 C23 [-Wdeprecated-non-prototype] 916 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 14 | 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 C23 [-Wdeprecated-non-prototype] 40 | 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 C23 [-Wdeprecated-non-prototype] 101 | 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 C23 [-Wdeprecated-non-prototype] 140 | 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 C23 [-Wdeprecated-non-prototype] 272 | 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 C23 [-Wdeprecated-non-prototype] 305 | 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 C23 [-Wdeprecated-non-prototype] 352 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 14 | 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 C23 [-Wdeprecated-non-prototype] 67 | 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 C23 [-Wdeprecated-non-prototype] 136 | 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 C23 [-Wdeprecated-non-prototype] 169 | 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 C23 [-Wdeprecated-non-prototype] 182 | 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 C23 [-Wdeprecated-non-prototype] 252 | teleport_pet(mtmp) | ^ teleport.c:426:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 426 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 426 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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] 487 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 487 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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] 504 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 504 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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] 510 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 510 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 C23 [-Wdeprecated-non-prototype] 598 | domagicportal(ttmp) | ^ teleport.c:604:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 604 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 604 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 C23 [-Wdeprecated-non-prototype] 630 | tele_trap(trap) | ^ teleport.c:638:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 638 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 638 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:305:28: note: expanded from macro 'shudder_for_moment' 305 | #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 C23 [-Wdeprecated-non-prototype] 648 | 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 C23 [-Wdeprecated-non-prototype] 672 | 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 C23 [-Wdeprecated-non-prototype] 724 | 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 C23 [-Wdeprecated-non-prototype] 761 | 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 C23 [-Wdeprecated-non-prototype] 809 | 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 C23 [-Wdeprecated-non-prototype] 824 | 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 C23 [-Wdeprecated-non-prototype] 837 | 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 C23 [-Wdeprecated-non-prototype] 868 | 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 C23 [-Wdeprecated-non-prototype] 948 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ timeout.c:33:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 33 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:33:9: note: treat the string as an argument to avoid this 33 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^ | "%s", timeout.c:56:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 56 | pline(slime_texts[SIZE(slime_texts) - i - 1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:56:9: note: treat the string as an argument to avoid this 56 | 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] 78 | pline(vomiting_texts[SIZE(vomiting_texts) - i - 1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:78:9: note: treat the string as an argument to avoid this 78 | 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 C23 [-Wdeprecated-non-prototype] 380 | 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 C23 [-Wdeprecated-non-prototype] 393 | 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 C23 [-Wdeprecated-non-prototype] 418 | 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 C23 [-Wdeprecated-non-prototype] 427 | 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 C23 [-Wdeprecated-non-prototype] 580 | 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 C23 [-Wdeprecated-non-prototype] 642 | 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 C23 [-Wdeprecated-non-prototype] 659 | 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 C23 [-Wdeprecated-non-prototype] 684 | 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 C23 [-Wdeprecated-non-prototype] 983 | 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 C23 [-Wdeprecated-non-prototype] 1067 | 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 C23 [-Wdeprecated-non-prototype] 1245 | 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 C23 [-Wdeprecated-non-prototype] 1258 | 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 C23 [-Wdeprecated-non-prototype] 1357 | 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 C23 [-Wdeprecated-non-prototype] 1391 | 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 C23 [-Wdeprecated-non-prototype] 1415 | 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 C23 [-Wdeprecated-non-prototype] 1437 | 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 C23 [-Wdeprecated-non-prototype] 1457 | 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 C23 [-Wdeprecated-non-prototype] 1480 | 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 C23 [-Wdeprecated-non-prototype] 1497 | 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] 1538 | 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] 1552 | 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 C23 [-Wdeprecated-non-prototype] 1519 | 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 C23 [-Wdeprecated-non-prototype] 1572 | 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 C23 [-Wdeprecated-non-prototype] 1593 | 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 C23 [-Wdeprecated-non-prototype] 1612 | 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 C23 [-Wdeprecated-non-prototype] 1631 | 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 C23 [-Wdeprecated-non-prototype] 1676 | 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 C23 [-Wdeprecated-non-prototype] 1715 | 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 C23 [-Wdeprecated-non-prototype] 1740 | 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] 1750 | 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] 1753 | nid = (unsigned) curr->arg; | ^~~~~~~~~~~~~~~~~~~~ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c topten.c 86 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 86 | 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 C23 [-Wdeprecated-non-prototype] 96 | 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 165 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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] 296 | 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 C23 [-Wdeprecated-non-prototype] 514 | 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 C23 [-Wdeprecated-non-prototype] 649 | 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 C23 [-Wdeprecated-non-prototype] 687 | 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 C23 [-Wdeprecated-non-prototype] 818 | classmon(plch, fem) | ^ topten.c:841:21: warning: '/*' within block comment [-Wcomment] 841 | /* 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 C23 [-Wdeprecated-non-prototype] 861 | tt_oname(otmp) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c track.c 66 warnings generated. 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 39 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 88 | 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 C23 [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 174 | 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 C23 [-Wdeprecated-non-prototype] 259 | fall_through(td) | ^ trap.c:296:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 296 | You(dont_fall); | ^~~~~~~~~ trap.c:296:10: note: treat the string as an argument to avoid this 296 | 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 C23 [-Wdeprecated-non-prototype] 324 | 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 C23 [-Wdeprecated-non-prototype] 375 | 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 C23 [-Wdeprecated-non-prototype] 783 | 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 C23 [-Wdeprecated-non-prototype] 809 | 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 C23 [-Wdeprecated-non-prototype] 932 | 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 C23 [-Wdeprecated-non-prototype] 945 | 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 C23 [-Wdeprecated-non-prototype] 1007 | 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 C23 [-Wdeprecated-non-prototype] 1032 | 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 C23 [-Wdeprecated-non-prototype] 1421 | 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 C23 [-Wdeprecated-non-prototype] 1434 | 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 C23 [-Wdeprecated-non-prototype] 1452 | 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 C23 [-Wdeprecated-non-prototype] 1493 | 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 C23 [-Wdeprecated-non-prototype] 1546 | 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 C23 [-Wdeprecated-non-prototype] 1561 | 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 C23 [-Wdeprecated-non-prototype] 1646 | 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 C23 [-Wdeprecated-non-prototype] 1791 | 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 C23 [-Wdeprecated-non-prototype] 1850 | emergency_disrobe(lostsome) | ^ trap.c:1951:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1951 | else | ^ trap.c:2036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2036 | 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 C23 [-Wdeprecated-non-prototype] 2076 | 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 C23 [-Wdeprecated-non-prototype] 2096 | 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 C23 [-Wdeprecated-non-prototype] 2114 | 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 C23 [-Wdeprecated-non-prototype] 2140 | 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 C23 [-Wdeprecated-non-prototype] 2189 | 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 C23 [-Wdeprecated-non-prototype] 2209 | 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 C23 [-Wdeprecated-non-prototype] 2232 | 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 C23 [-Wdeprecated-non-prototype] 2248 | 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 C23 [-Wdeprecated-non-prototype] 2282 | 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 C23 [-Wdeprecated-non-prototype] 2297 | 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 C23 [-Wdeprecated-non-prototype] 2320 | 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 C23 [-Wdeprecated-non-prototype] 2385 | 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 C23 [-Wdeprecated-non-prototype] 2543 | 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 C23 [-Wdeprecated-non-prototype] 2709 | 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 C23 [-Wdeprecated-non-prototype] 2724 | 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 C23 [-Wdeprecated-non-prototype] 2738 | 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 C23 [-Wdeprecated-non-prototype] 2772 | 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 C23 [-Wdeprecated-non-prototype] 2790 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 606 | 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 C23 [-Wdeprecated-non-prototype] 617 | 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 C23 [-Wdeprecated-non-prototype] 627 | 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] 715 | (void) time((long *)&u.ubirthday); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here 123 | 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 C23 [-Wdeprecated-non-prototype] 1209 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 30 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 150 | attack(mtmp) | ^ uhitm.c:217:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 217 | 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 C23 [-Wdeprecated-non-prototype] 242 | 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 C23 [-Wdeprecated-non-prototype] 305 | 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 C23 [-Wdeprecated-non-prototype] 322 | hmon(mon, obj, thrown) /* return TRUE if mon still alive */ | ^ uhitm.c:584:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 584 | else | ^ uhitm.c:992:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 992 | 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 C23 [-Wdeprecated-non-prototype] 1047 | 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 C23 [-Wdeprecated-non-prototype] 1128 | 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 C23 [-Wdeprecated-non-prototype] 1425 | 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 C23 [-Wdeprecated-non-prototype] 1505 | 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 C23 [-Wdeprecated-non-prototype] 1528 | gulpum(mdef,mattk) | ^ uhitm.c:1583:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1583 | } else pline(msgbuf); | ^~~~~~ uhitm.c:1583:17: note: treat the string as an argument to avoid this 1583 | } 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 C23 [-Wdeprecated-non-prototype] 1662 | 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 C23 [-Wdeprecated-non-prototype] 1677 | hmonas(mon, tmp) /* attack monster as a monster. */ | ^ uhitm.c:1784:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1784 | } 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 C23 [-Wdeprecated-non-prototype] 1853 | passive(mon, mhit, malive, kicked) | ^ uhitm.c:1916:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1916 | } else | ^ uhitm.c:2043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2043 | 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 C23 [-Wdeprecated-non-prototype] 2066 | 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 C23 [-Wdeprecated-non-prototype] 2087 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 19 | 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 C23 [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 66 | 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 C23 [-Wdeprecated-non-prototype] 84 | 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 C23 [-Wdeprecated-non-prototype] 113 | 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 C23 [-Wdeprecated-non-prototype] 319 | 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 C23 [-Wdeprecated-non-prototype] 335 | 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 C23 [-Wdeprecated-non-prototype] 420 | gd_move(grd) | ^ vault.c:501:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 501 | } 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 256 | 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 C23 [-Wdeprecated-non-prototype] 299 | rogue_vision(next, rmin, rmax) | ^ vision.c:351:25: warning: '/*' within block comment [-Wcomment] 351 | /*#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 C23 [-Wdeprecated-non-prototype] 491 | 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 C23 [-Wdeprecated-non-prototype] 794 | 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 C23 [-Wdeprecated-non-prototype] 817 | 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 C23 [-Wdeprecated-non-prototype] 877 | 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 C23 [-Wdeprecated-non-prototype] 958 | 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 C23 [-Wdeprecated-non-prototype] 1296 | _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 C23 [-Wdeprecated-non-prototype] 1340 | _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 C23 [-Wdeprecated-non-prototype] 1384 | _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 C23 [-Wdeprecated-non-prototype] 1428 | _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 C23 [-Wdeprecated-non-prototype] 1478 | 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 C23 [-Wdeprecated-non-prototype] 1556 | 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 C23 [-Wdeprecated-non-prototype] 1585 | 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 C23 [-Wdeprecated-non-prototype] 1625 | 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 C23 [-Wdeprecated-non-prototype] 1881 | 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 C23 [-Wdeprecated-non-prototype] 2063 | 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 C23 [-Wdeprecated-non-prototype] 2566 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 251 | 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 C23 [-Wdeprecated-non-prototype] 278 | 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 C23 [-Wdeprecated-non-prototype] 386 | 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 C23 [-Wdeprecated-non-prototype] 424 | 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 C23 [-Wdeprecated-non-prototype] 473 | 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 C23 [-Wdeprecated-non-prototype] 630 | 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 C23 [-Wdeprecated-non-prototype] 652 | 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 C23 [-Wdeprecated-non-prototype] 677 | 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 C23 [-Wdeprecated-non-prototype] 689 | 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 C23 [-Wdeprecated-non-prototype] 785 | 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 C23 [-Wdeprecated-non-prototype] 803 | 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 C23 [-Wdeprecated-non-prototype] 817 | 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 C23 [-Wdeprecated-non-prototype] 832 | 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 C23 [-Wdeprecated-non-prototype] 856 | 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 C23 [-Wdeprecated-non-prototype] 988 | 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 C23 [-Wdeprecated-non-prototype] 1027 | 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 C23 [-Wdeprecated-non-prototype] 1058 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 10 | 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 69 | 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 C23 [-Wdeprecated-non-prototype] 101 | 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 C23 [-Wdeprecated-non-prototype] 170 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 34 | 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 C23 [-Wdeprecated-non-prototype] 57 | 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 C23 [-Wdeprecated-non-prototype] 64 | 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 C23 [-Wdeprecated-non-prototype] 71 | setutempwep(obj) | ^ wield.c:178:57: warning: if statement has empty body [-Wempty-body] 178 | 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 C23 [-Wdeprecated-non-prototype] 330 | 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 C23 [-Wdeprecated-non-prototype] 357 | 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 C23 [-Wdeprecated-non-prototype] 437 | 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 C23 [-Wdeprecated-non-prototype] 448 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 65 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 102 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 98 | 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 C23 [-Wdeprecated-non-prototype] 109 | 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 C23 [-Wdeprecated-non-prototype] 135 | 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 C23 [-Wdeprecated-non-prototype] 154 | 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 C23 [-Wdeprecated-non-prototype] 172 | 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 C23 [-Wdeprecated-non-prototype] 186 | 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 C23 [-Wdeprecated-non-prototype] 201 | 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 C23 [-Wdeprecated-non-prototype] 216 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 293 | 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 C23 [-Wdeprecated-non-prototype] 399 | 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 C23 [-Wdeprecated-non-prototype] 559 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 111 | initworm(worm, wseg_count) | ^ worm.c:118:24: warning: '/*' within block comment [-Wcomment] 118 | /* 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 196 | worm_move(worm) | ^ worm.c:203:24: warning: '/*' within block comment [-Wcomment] 203 | /* 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 C23 [-Wdeprecated-non-prototype] 244 | 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 C23 [-Wdeprecated-non-prototype] 263 | wormgone(worm) | ^ worm.c:268:24: warning: '/*' within block comment [-Wcomment] 268 | /* 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 C23 [-Wdeprecated-non-prototype] 288 | wormhitu(worm) | ^ worm.c:294:24: warning: '/*' within block comment [-Wcomment] 294 | /* 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 C23 [-Wdeprecated-non-prototype] 315 | 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 C23 [-Wdeprecated-non-prototype] 440 | see_wsegs(worm) | ^ worm.c:445:32: warning: '/*' within block comment [-Wcomment] 445 | /* 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 C23 [-Wdeprecated-non-prototype] 461 | 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 C23 [-Wdeprecated-non-prototype] 507 | 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 C23 [-Wdeprecated-non-prototype] 540 | place_wsegs(worm) | ^ worm.c:545:32: warning: '/*' within block comment [-Wcomment] 545 | /* 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 C23 [-Wdeprecated-non-prototype] 562 | remove_worm(worm) | ^ worm.c:567:32: warning: '/*' within block comment [-Wcomment] 567 | /* 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 C23 [-Wdeprecated-non-prototype] 586 | place_worm_tail_randomly(worm, x, y) | ^ worm.c:595:24: warning: '/*' within block comment [-Wcomment] 595 | /* 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 C23 [-Wdeprecated-non-prototype] 643 | 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 C23 [-Wdeprecated-non-prototype] 678 | count_wsegs(mtmp) | ^ worm.c:684:34: warning: '/*' within block comment [-Wcomment] 684 | /* 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 C23 [-Wdeprecated-non-prototype] 700 | 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 C23 [-Wdeprecated-non-prototype] 732 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 115 | 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 C23 [-Wdeprecated-non-prototype] 128 | 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 C23 [-Wdeprecated-non-prototype] 157 | 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 C23 [-Wdeprecated-non-prototype] 188 | 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 C23 [-Wdeprecated-non-prototype] 223 | 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 C23 [-Wdeprecated-non-prototype] 320 | 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 C23 [-Wdeprecated-non-prototype] 333 | 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 C23 [-Wdeprecated-non-prototype] 348 | mon_break_armor(mon) | ^ worn.c:401:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 401 | else | ^ worn.c:412:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 412 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 12 | 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 C23 [-Wdeprecated-non-prototype] 70 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 97 | bhitm(mtmp, otmp) | ^ zap.c:252:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 252 | 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 C23 [-Wdeprecated-non-prototype] 285 | 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 C23 [-Wdeprecated-non-prototype] 317 | 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 C23 [-Wdeprecated-non-prototype] 355 | 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 C23 [-Wdeprecated-non-prototype] 379 | 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 C23 [-Wdeprecated-non-prototype] 475 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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 C23 [-Wdeprecated-non-prototype] 528 | 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 C23 [-Wdeprecated-non-prototype] 560 | cancel_item(obj) | ^ zap.c:597:27: warning: '/*' within block comment [-Wcomment] 597 | /* 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 C23 [-Wdeprecated-non-prototype] 657 | 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 C23 [-Wdeprecated-non-prototype] 675 | 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 C23 [-Wdeprecated-non-prototype] 703 | polyuse(objhdr, mat, minwt) | ^ zap.c:718:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 718 | else | ^ zap.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | 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 C23 [-Wdeprecated-non-prototype] 799 | do_osshock(obj) | ^ zap.c:822:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 822 | else | ^ zap.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | 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 C23 [-Wdeprecated-non-prototype] 962 | 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 C23 [-Wdeprecated-non-prototype] 1095 | 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 C23 [-Wdeprecated-non-prototype] 1144 | 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 C23 [-Wdeprecated-non-prototype] 1160 | 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 C23 [-Wdeprecated-non-prototype] 1211 | backfire(otmp) | ^ zap.c:1235:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1235 | if(!zappable(obj)) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:1235:27: note: treat the string as an argument to avoid this 1235 | if(!zappable(obj)) pline(nothing_happens); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'nothing_happens' 302 | #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 C23 [-Wdeprecated-non-prototype] 1274 | 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 C23 [-Wdeprecated-non-prototype] 1532 | 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 C23 [-Wdeprecated-non-prototype] 1590 | 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 C23 [-Wdeprecated-non-prototype] 1701 | 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 C23 [-Wdeprecated-non-prototype] 1762 | 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 C23 [-Wdeprecated-non-prototype] 1772 | 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 C23 [-Wdeprecated-non-prototype] 1783 | 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 C23 [-Wdeprecated-non-prototype] 1810 | 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 C23 [-Wdeprecated-non-prototype] 1954 | 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 C23 [-Wdeprecated-non-prototype] 2011 | 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 C23 [-Wdeprecated-non-prototype] 2141 | 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 C23 [-Wdeprecated-non-prototype] 2271 | 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 C23 [-Wdeprecated-non-prototype] 2334 | 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 C23 [-Wdeprecated-non-prototype] 2571 | 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 C23 [-Wdeprecated-non-prototype] 2613 | zap_over_floor(x, y, type, shopdamage) | ^ zap.c:2639:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2639 | Norep(msgtxt); | ^~~~~~ zap.c:2639:9: note: treat the string as an argument to avoid this 2639 | Norep(msgtxt); | ^ | "%s", zap.c:2762:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2762 | pline(see_txt); | ^~~~~~~ zap.c:2762:10: note: treat the string as an argument to avoid this 2762 | pline(see_txt); | ^ | "%s", zap.c:2765:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2765 | You(sense_txt); | ^~~~~~~~~ zap.c:2765:8: note: treat the string as an argument to avoid this 2765 | You(sense_txt); | ^ | "%s", zap.c:2767:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2767 | if (flags.soundok) You_hear(hear_txt); | ^~~~~~~~ zap.c:2767:32: note: treat the string as an argument to avoid this 2767 | 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 C23 [-Wdeprecated-non-prototype] 2799 | 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 C23 [-Wdeprecated-non-prototype] 2818 | 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 C23 [-Wdeprecated-non-prototype] 2847 | 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 C23 [-Wdeprecated-non-prototype] 2971 | 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 C23 [-Wdeprecated-non-prototype] 3066 | resist(mtmp, oclass, damage, tell) | ^ zap.c:3122:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3122 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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 3122 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:303:28: note: expanded from macro 'thats_enough_tries' 303 | #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] 2 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 98 | 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 C23 [-Wdeprecated-non-prototype] 117 | chdirx(dir,1); | ^ ../sys/unix/unixmain.c:185:18: warning: '/*' within block comment [-Wcomment] 185 | #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 C23 [-Wdeprecated-non-prototype] 44 | 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 C23 [-Wdeprecated-non-prototype] 263 | process_options(argc, argv) | ^ ../sys/unix/unixmain.c:381:17: warning: '/*' within block comment [-Wcomment] 381 | #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 C23 [-Wdeprecated-non-prototype] 350 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | 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] 2 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 137 | 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 C23 [-Wdeprecated-non-prototype] 198 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 24 | gethdate(name) | ^ ../sys/unix/unixunix.c:29:1: warning: '/*' within block comment [-Wcomment] 29 | /* register char *np; | ^ ../sys/unix/unixunix.c:30:1: warning: '/*' within block comment [-Wcomment] 30 | /* if(stat(name, &hbuf)) | ^ ../sys/unix/unixunix.c:31:1: warning: '/*' within block comment [-Wcomment] 31 | /* error("Cannot get status of %s.", | ^ ../sys/unix/unixunix.c:32:1: warning: '/*' within block comment [-Wcomment] 32 | /* (np = rindex(name, '/')) ? np+1 : name); | ^ ../sys/unix/unixunix.c:33:1: warning: '/*' within block comment [-Wcomment] 33 | /* | ^ ../sys/unix/unixunix.c:34:1: warning: '/*' within block comment [-Wcomment] 34 | /* 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] 113 | (void) time((long *)(&date)); | ^~~~~~~~~~~~~~~ /usr/include/time.h:123:21: note: passing argument to parameter here 123 | time_t time(time_t *); | ^ ../sys/unix/unixunix.c:129:3: warning: '/*' within block comment [-Wcomment] 129 | /* This will work on 4.1cbsd, 4.2bsd and system 3? & 5. | ^ ../sys/unix/unixunix.c:130:3: warning: '/*' within block comment [-Wcomment] 130 | /* 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 C23 [-Wdeprecated-non-prototype] 103 | 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 C23 [-Wdeprecated-non-prototype] 263 | regularize(s) /* normalize file name - we don't like .'s, /'s, spaces */ | ^ ../sys/unix/unixunix.c:308:17: warning: '/*' within block comment [-Wcomment] 308 | #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 C23 [-Wdeprecated-non-prototype] 312 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 34 | 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 C23 [-Wdeprecated-non-prototype] 42 | 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 C23 [-Wdeprecated-non-prototype] 128 | 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 C23 [-Wdeprecated-non-prototype] 163 | ext_cmd_getlin_hook(base) | ^ ../win/tty/getline.c:173:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 173 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 87 | 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 C23 [-Wdeprecated-non-prototype] 346 | 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 C23 [-Wdeprecated-non-prototype] 468 | 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 C23 [-Wdeprecated-non-prototype] 515 | 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 C23 [-Wdeprecated-non-prototype] 525 | 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 C23 [-Wdeprecated-non-prototype] 536 | 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 C23 [-Wdeprecated-non-prototype] 1017 | 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 C23 [-Wdeprecated-non-prototype] 1032 | 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 C23 [-Wdeprecated-non-prototype] 1048 | 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 C23 [-Wdeprecated-non-prototype] 1058 | 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 C23 [-Wdeprecated-non-prototype] 1091 | 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 C23 [-Wdeprecated-non-prototype] 1099 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 60 | 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 C23 [-Wdeprecated-non-prototype] 97 | 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 C23 [-Wdeprecated-non-prototype] 165 | 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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 243 | 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 C23 [-Wdeprecated-non-prototype] 251 | 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 C23 [-Wdeprecated-non-prototype] 261 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 242 | 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 C23 [-Wdeprecated-non-prototype] 516 | 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 C23 [-Wdeprecated-non-prototype] 532 | 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 C23 [-Wdeprecated-non-prototype] 556 | 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 C23 [-Wdeprecated-non-prototype] 665 | 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 C23 [-Wdeprecated-non-prototype] 683 | 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 C23 [-Wdeprecated-non-prototype] 727 | 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 C23 [-Wdeprecated-non-prototype] 772 | 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 C23 [-Wdeprecated-non-prototype] 792 | 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 C23 [-Wdeprecated-non-prototype] 806 | 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 C23 [-Wdeprecated-non-prototype] 821 | 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 C23 [-Wdeprecated-non-prototype] 837 | 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 C23 [-Wdeprecated-non-prototype] 861 | 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 C23 [-Wdeprecated-non-prototype] 891 | 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 C23 [-Wdeprecated-non-prototype] 1175 | 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 C23 [-Wdeprecated-non-prototype] 1225 | 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 C23 [-Wdeprecated-non-prototype] 1293 | 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 C23 [-Wdeprecated-non-prototype] 1333 | 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 C23 [-Wdeprecated-non-prototype] 1354 | 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 C23 [-Wdeprecated-non-prototype] 1430 | 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 C23 [-Wdeprecated-non-prototype] 1459 | 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 C23 [-Wdeprecated-non-prototype] 1482 | 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 C23 [-Wdeprecated-non-prototype] 1625 | 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 C23 [-Wdeprecated-non-prototype] 1700 | 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 C23 [-Wdeprecated-non-prototype] 1713 | 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 C23 [-Wdeprecated-non-prototype] 1757 | 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 C23 [-Wdeprecated-non-prototype] 1778 | 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 C23 [-Wdeprecated-non-prototype] 1873 | 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 C23 [-Wdeprecated-non-prototype] 1916 | tty_message_menu(let, how, mesg) | ^ ../win/tty/wintty.c:1923:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1923 | pline(mesg); | ^~~~ ../win/tty/wintty.c:1923:8: note: treat the string as an argument to avoid this 1923 | 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 C23 [-Wdeprecated-non-prototype] 1981 | 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 C23 [-Wdeprecated-non-prototype] 2039 | 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 C23 [-Wdeprecated-non-prototype] 2081 | 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 C23 [-Wdeprecated-non-prototype] 2121 | 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 C23 [-Wdeprecated-non-prototype] 2261 | 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 C23 [-Wdeprecated-non-prototype] 2273 | 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 C23 [-Wdeprecated-non-prototype] 2335 | 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 C23 [-Wdeprecated-non-prototype] 2368 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 19 | getversionstring(buf) | ^ version.c:30:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 30 | pline(getversionstring(buf)); | ^~~~~~~~~~~~~~~~~~~~~ version.c:30:8: note: treat the string as an argument to avoid this 30 | 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 C23 [-Wdeprecated-non-prototype] 51 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 106 | store_version(fd) | ^ 57 warnings generated. Loading ... ld: warning: apply.c(apply.o:(doapply)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: apply.c(apply.o:(doapply)): warning: sprintf() is often misused, please use snprintf() ld: warning: wintty.c(wintty.o:(tty_player_selection)): warning: strcat() is almost always misused, please use strlcat() ld: warning: rumors.c(rumors.o:(getrumor)): warning: random() may return deterministic values, is that what you want? ld: warning: pline.c(pline.o:(vpline)): warning: vsprintf() is often misused, please use vsnprintf() slash is up to date. ( cd doc ; /usr/bin/make Guidebook ) tbl tmac.n Guidebook.mn | nroff | col -bx > Guidebook ( cd dat ; /usr/bin/make data ) /bin/sh: tbl: not found /bin/sh: nroff: not found ../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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 153 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 C23 [-Wdeprecated-non-prototype] 51 | 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 C23 [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 170 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 ld: warning: alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() ld: warning: dgn_main.c(dgn_main.o:(main)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: dgn_main.c(dgn_main.o:(main)): warning: strcat() is almost always misused, please use strlcat() ( 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 249 | 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 295 | 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 C23 [-Wdeprecated-non-prototype] 310 | 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 C23 [-Wdeprecated-non-prototype] 330 | 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 C23 [-Wdeprecated-non-prototype] 348 | 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 C23 [-Wdeprecated-non-prototype] 364 | 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 C23 [-Wdeprecated-non-prototype] 380 | 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 C23 [-Wdeprecated-non-prototype] 400 | 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 C23 [-Wdeprecated-non-prototype] 419 | 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 C23 [-Wdeprecated-non-prototype] 429 | 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 C23 [-Wdeprecated-non-prototype] 439 | 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 C23 [-Wdeprecated-non-prototype] 478 | 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 C23 [-Wdeprecated-non-prototype] 643 | 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 C23 [-Wdeprecated-non-prototype] 934 | 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 C23 [-Wdeprecated-non-prototype] 962 | 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 C23 [-Wdeprecated-non-prototype] 1001 | 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 C23 [-Wdeprecated-non-prototype] 1034 | 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 C23 [-Wdeprecated-non-prototype] 1066 | 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 C23 [-Wdeprecated-non-prototype] 1100 | 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 C23 [-Wdeprecated-non-prototype] 1294 | 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 C23 [-Wdeprecated-non-prototype] 1403 | 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 ld: warning: alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() ld: warning: lev_lex.c(lev_lex.o:(yylex)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: lev_main.c(lev_main.o:(write_level_file)): warning: strcat() is almost always misused, please use strlcat() ( 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] 11 | /* | ^ ../include/config.h:29:18: warning: '/*' within block comment [-Wcomment] 29 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:127:17: warning: '/*' within block comment [-Wcomment] 127 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:129:19: warning: '/*' within block comment [-Wcomment] 129 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:131:21: warning: '/*' within block comment [-Wcomment] 131 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:137:25: warning: '/*' within block comment [-Wcomment] 137 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:139:24: warning: '/*' within block comment [-Wcomment] 139 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:140:25: warning: '/*' within block comment [-Wcomment] 140 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:216:25: warning: '/*' within block comment [-Wcomment] 216 | /* #define X11_GRAPHICS /* X11 interface */ | ^ ../include/config.h:302:47: warning: '/*' within block comment [-Wcomment] 302 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:303:42: warning: '/*' within block comment [-Wcomment] 303 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:306:46: warning: '/*' within block comment [-Wcomment] 306 | /* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ | ^ ../include/config.h:307:43: warning: '/*' within block comment [-Wcomment] 307 | /* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ | ^ ../include/config.h:320:17: warning: '/*' within block comment [-Wcomment] 320 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:351:19: warning: '/*' within block comment [-Wcomment] 351 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:373:21: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:380:22: warning: '/*' within block comment [-Wcomment] 380 | /* #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] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #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] 422 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:481:18: warning: '/*' within block comment [-Wcomment] 481 | /* #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] 76 | /* #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] 26 | /* #define BSD 1 /* define for 4.n BSD */ | ^ ../include/unixconf.h:28:19: warning: '/*' within block comment [-Wcomment] 28 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:32:18: warning: '/*' within block comment [-Wcomment] 32 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:40:19: warning: '/*' within block comment [-Wcomment] 40 | /* #define SUNOS4 /* SunOS 4.x */ | ^ ../include/unixconf.h:41:18: warning: '/*' within block comment [-Wcomment] 41 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:42:18: warning: '/*' within block comment [-Wcomment] 42 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:43:18: warning: '/*' within block comment [-Wcomment] 43 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:44:17: warning: '/*' within block comment [-Wcomment] 44 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:45:19: warning: '/*' within block comment [-Wcomment] 45 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:46:19: warning: '/*' within block comment [-Wcomment] 46 | /* #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] 63 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:66:24: warning: '/*' within block comment [-Wcomment] 66 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:67:23: warning: '/*' within block comment [-Wcomment] 67 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:68:26: warning: '/*' within block comment [-Wcomment] 68 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:69:30: warning: '/*' within block comment [-Wcomment] 69 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:72:23: warning: '/*' within block comment [-Wcomment] 72 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:74:19: warning: '/*' within block comment [-Wcomment] 74 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:78:25: warning: '/*' within block comment [-Wcomment] 78 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:80:23: warning: '/*' within block comment [-Wcomment] 80 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:92:26: warning: '/*' within block comment [-Wcomment] 92 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:93:48: warning: '/*' within block comment [-Wcomment] 93 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:134:19: warning: '/*' within block comment [-Wcomment] 134 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:146:18: warning: '/*' within block comment [-Wcomment] 146 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:155:26: warning: '/*' within block comment [-Wcomment] 155 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:191:34: warning: '/*' within block comment [-Wcomment] 191 | /* #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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | 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 C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 335 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | 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 C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 121 | 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 C23 [-Wdeprecated-non-prototype] 135 | 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 C23 [-Wdeprecated-non-prototype] 163 | 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 C23 [-Wdeprecated-non-prototype] 180 | restore_savefile(basename) | ^ 56 warnings generated. cc -o recover recover.o ld: warning: recover.c(recover.o:(restore_savefile)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: recover.c(recover.o:(restore_savefile)): warning: sprintf() is often misused, please use snprintf() >>> Running package in games/slash,no_x11 at 1764832811.00 ===> 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|*********************************************** | 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|********************************************************* | 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 1764832815.92 ===> games/slash,no_x11 ===> Cleaning for slash-3.2.2.e8p8-no_x11 >>> Ended at 1764832816.50 max_stuck=0.79/build=56.91/package=4.88/clean=0.67