>>> Building on amd64-1 under games/slash DIST = [games/slash:Slash-Unix.tar.gz;games/slash:nethack-322.tgz;games/slash:nh-3.2.2-3.2.3.diff] FULLPKGNAME = slash-3.2.2.e8p8 RDEPENDS = [games/hackdata] distfiles size=2984835 >>> Running patch in games/slash at 1779821461.57 ===> games/slash ===> Building from scratch slash-3.2.2.e8p8 ===> Verifying specs: c curses X11 Xaw Xext Xmu Xpm Xt xcb ===> found c.103.0 curses.16.0 X11.19.0 Xaw.16.0 Xext.13.0 Xmu.11.1 Xpm.10.0 Xt.11.1 xcb.4.1 ===> Checking files for slash-3.2.2.e8p8 `/usr/ports/distfiles/Slash-Unix.tar.gz' is up to date. `/usr/ports/distfiles/nethack-322.tgz' is up to date. `/usr/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 ===> Patching for slash-3.2.2.e8p8 ===> Applying distribution patches for slash-3.2.2.e8p8 ===> 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++ >>> Running configure in games/slash at 1779821465.63 ===> games/slash ===> Generating configure for slash-3.2.2.e8p8 ===> Configuring for slash-3.2.2.e8p8 Lucky you! Symbolic links. >>> Running build in games/slash at 1779821466.09 ===> games/slash ===> Building for slash-3.2.2.e8p8 ( 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 -DX11_GRAPHICS -I/usr/X11R6/include -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); | ^ 50 warnings generated. cc -O2 -pipe -DX11_GRAPHICS -I/usr/X11R6/include -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c objects.c In file included from objects.c:8: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] 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 -DX11_GRAPHICS -I/usr/X11R6/include -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) | ^ cc -L/usr/X11R6/lib -o makedefs makedefs.o ../src/monst.o ../src/objects.o 85 warnings generated. 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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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) | ^ cc -O2 -pipe -DX11_GRAPHICS -I/usr/X11R6/include -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c attrib.c 71 warnings generated. 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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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) | ^ 68 warnings generated. cc -O2 -pipe -DX11_GRAPHICS -I/usr/X11R6/include -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c display.c In file included from display.c:116: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] 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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 /**/ | ^ 57 warnings generated. cc -O2 -pipe -DX11_GRAPHICS -I/usr/X11R6/include -DHACKDIR=\"/usr/local/lib/slashdir\" -DHAVE_SYS_PARAM_H -I../include -c files.c In file included from files.c:5: In file included from ../include/hack.h:9: ../include/config.h:11:1: warning: '/*' within block comment [-Wcomment] 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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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 -DX11_GRAPHICS -I/usr/X11R6/include -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: error: 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: error: 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: error: 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: error: 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: error: 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) | ^ 78 warnings and 5 errors generated. *** Error 1 in src (:87 'hacklib.o') *** Error 2 in /usr/obj/ports/slash-3.2.2.e8/slash-e8 (Makefile:84 'slash') *** Error 2 in games/slash (/usr/ports/infrastructure/mk/bsd.port.mk:3079 '/usr/obj/ports/slash-3.2.2.e8/.build_done': @cd /usr/obj/ports/sl...) *** Error 2 in games/slash (/usr/ports/infrastructure/mk/bsd.port.mk:2722 'build': @lock=slash-3.2.2.e8p8; export _LOCKS_HELD=" slash-3.2.2...) ===> Exiting games/slash with an error *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144 'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...) >>> Ended at 1779821476.62 max_stuck=1.08/patch=4.08/configure=0.45/build=10.55 Error: job failed with 512 on amd64-1 at 1779821476