=>> Building games/nethack32 build started at Sat Jan 24 07:11:50 EST 2026 port directory: /usr/ports/games/nethack32 package name: nethack32-3.2.3_8 building for: FreeBSD pkg.DaveG.ca 13.5-RELEASE-p7 FreeBSD 13.5-RELEASE-p7 1305000 amd64 maintained by: glewis@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 2338 Oct 16 2024 /usr/ports/games/nethack32/Makefile Ports top last git commit: 076a295eb33c Ports top unclean checkout: no Port dir last git commit: 4485bd8221c2 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1305000 Job Id: 05 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1305000 UNAME_v=FreeBSD 13.5-RELEASE-p7 1305000 UNAME_r=13.5-RELEASE-p7 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/05/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_13_5_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for nethack32-3.2.3_8: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- glewis@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/nethack32/work/.cache HOME=/wrkdirs/usr/ports/games/nethack32/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/nethack32/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/nethack32/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/nethack32/work/.cache HOME=/wrkdirs/usr/ports/games/nethack32/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/nethack32/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/nethack32/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- HACKNAME="nethack32" HACKEXT="32" PORTDOCS="" HACKLINK="" OSREL=13.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/nethack32" EXAMPLESDIR="share/examples/nethack32" DATADIR="share/nethack32" WWWDIR="www/nethack32" ETCDIR="etc/nethack32" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/nethack32 DOCSDIR=/usr/local/share/doc/nethack32 EXAMPLESDIR=/usr/local/share/examples/nethack32 WWWDIR=/usr/local/www/nethack32 ETCDIR=/usr/local/etc/nethack32 --End SUB_LIST-- ---Begin make.conf--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> nethack32-3.2.3_8 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.5.1.pkg [pkg.DaveG.ca] Installing pkg-2.5.1... [pkg.DaveG.ca] Extracting pkg-2.5.1: .......... done ===> nethack32-3.2.3_8 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of nethack32-3.2.3_8 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by nethack32-3.2.3_8 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by nethack32-3.2.3_8 for building => SHA256 Checksum OK for nethack-322.tgz. => SHA256 Checksum OK for nh-3.2.2-3.2.3.diff. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by nethack32-3.2.3_8 for building ===> Extracting for nethack32-3.2.3_8 => SHA256 Checksum OK for nethack-322.tgz. => SHA256 Checksum OK for nh-3.2.2-3.2.3.diff. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for nethack32-3.2.3_8 ===> Applying distribution patches for nethack32-3.2.3_8 ===> Applying FreeBSD patches for nethack32-3.2.3_8 from /usr/ports/games/nethack32/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> nethack32-3.2.3_8 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - not found ===> Installing existing package /packages/All/libXaw-1.0.16,2.pkg [pkg.DaveG.ca] Installing libXaw-1.0.16,2... [pkg.DaveG.ca] `-- Installing libX11-1.8.12,1... [pkg.DaveG.ca] | `-- Installing libxcb-1.17.0... [pkg.DaveG.ca] | | `-- Installing libXau-1.0.12... [pkg.DaveG.ca] | | `-- Extracting libXau-1.0.12: .......... done [pkg.DaveG.ca] | | `-- Installing libXdmcp-1.1.5... [pkg.DaveG.ca] | | `-- Installing xorgproto-2024.1... [pkg.DaveG.ca] | | `-- Extracting xorgproto-2024.1: .......... done [pkg.DaveG.ca] | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg.DaveG.ca] | `-- Extracting libxcb-1.17.0: .......... done [pkg.DaveG.ca] `-- Extracting libX11-1.8.12,1: .......... done [pkg.DaveG.ca] `-- Installing libXext-1.3.6,1... [pkg.DaveG.ca] `-- Extracting libXext-1.3.6,1: .......... done [pkg.DaveG.ca] `-- Installing libXmu-1.1.4,1... [pkg.DaveG.ca] | `-- Installing libXt-1.3.0,1... [pkg.DaveG.ca] | | `-- Installing libICE-1.1.2,1... [pkg.DaveG.ca] | | `-- Extracting libICE-1.1.2,1: .......... done [pkg.DaveG.ca] | | `-- Installing libSM-1.2.6,1... [pkg.DaveG.ca] | | `-- Extracting libSM-1.2.6,1: ........ done [pkg.DaveG.ca] | `-- Extracting libXt-1.3.0,1: .......... done [pkg.DaveG.ca] `-- Extracting libXmu-1.1.4,1: .......... done [pkg.DaveG.ca] `-- Installing libXpm-3.5.17_1... [pkg.DaveG.ca] | `-- Installing gettext-runtime-0.26... [pkg.DaveG.ca] | | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] | `-- Extracting gettext-runtime-0.26: .......... done [pkg.DaveG.ca] `-- Extracting libXpm-3.5.17_1: .......... done [pkg.DaveG.ca] Extracting libXaw-1.0.16,2: .......... done ===> nethack32-3.2.3_8 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> Returning to build of nethack32-3.2.3_8 ===> nethack32-3.2.3_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> nethack32-3.2.3_8 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> nethack32-3.2.3_8 depends on file: /usr/local/bin/ccache - found ===> Returning to build of nethack32-3.2.3_8 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for nethack32-3.2.3_8 Copying Makefiles. =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for nethack32-3.2.3_8 ( 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 cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c monst.c In file included from monst.c:5: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from monst.c:5: In file included from ../include/config.h:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from monst.c:5: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 48 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c objects.c In file included from objects.c:8: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from objects.c:8: In file included from ../include/config.h:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from objects.c:8: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 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 */ | ^ 50 warnings generated. cc -O -I../include -c makedefs.c -o makedefs.o 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:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from makedefs.c:10: In file included from ../include/config.h:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from makedefs.c:10: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from makedefs.c:16: ../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:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | main(argc, argv) | ^ makedefs.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | do_makedefs(options) | ^ makedefs.c:321:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | char *xcrypt(str) | ^ makedefs.c:353:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 353 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:353:14: note: treat the string as an argument to avoid this 353 | Fprintf(ofp,Dont_Edit_Data); | ^ | "%s", makedefs.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | version_id_string(outbuf, build_date) | ^ makedefs.c:540:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 540 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:540:14: note: treat the string as an argument to avoid this 540 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:796:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | d_filter(line) | ^ makedefs.c:925:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | h_filter(line) | ^ makedefs.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 | check_control(s) | ^ makedefs.c:1121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1121 | without_control(s) | ^ makedefs.c:1146:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1146 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:1146:14: note: treat the string as an argument to avoid this 1146 | Fprintf(ofp,Dont_Edit_Data); | ^ | "%s", makedefs.c:1177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1177 | ranged_attk(ptr) /* returns TRUE if monster can attack at range */ | ^ makedefs.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 | mstrength(ptr) | ^ makedefs.c:1268:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1268 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1268:17: note: treat the string as an argument to avoid this 1268 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1309:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1309 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1309:14: note: treat the string as an argument to avoid this 1309 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1347 | qt_comment(s) | ^ makedefs.c:1356:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1356 | qt_control(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 | get_hdr(c) | ^ makedefs.c:1377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | known_id(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 | new_id(c) | ^ makedefs.c:1402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1402 | known_msg(c, s) | ^ makedefs.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 | new_msg(s) | ^ makedefs.c:1436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1436 | do_qt_control(s) | ^ makedefs.c:1467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1467 | do_qt_text(s) | ^ makedefs.c:1601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1601 | limit(name,pref) /* limit a name to 30 characters length */ | ^ makedefs.c:1630:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1630 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1630:14: note: treat the string as an argument to avoid this 1630 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1731:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1731 | tmpdup(str) | ^ makedefs.c:1742:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1742 | eos(str) | ^ makedefs.c:1785:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1785 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1785:17: note: treat the string as an argument to avoid this 1785 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1810:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1810 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1810:17: note: treat the string as an argument to avoid this 1810 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", 81 warnings generated. cc -o makedefs makedefs.o ../src/monst.o ../src/objects.o ./makedefs -p touch ../include/youprop.h ./makedefs -o touch ../include/decl.h touch ../include/hack.h cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c allmain.c -o allmain.o In file included from allmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from allmain.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 50 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c alloc.c -o alloc.o In file included from alloc.c:11: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from alloc.c:11: In file included from ../include/config.h:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from alloc.c:11: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 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) | ^ 50 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c apply.c -o apply.o In file included from apply.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from apply.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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 | use_camera(obj) | ^ apply.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 | use_towel(obj) | ^ apply.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | its_dead(rx, ry, resp) | ^ apply.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | use_stethoscope(obj) | ^ apply.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | use_whistle(obj) | ^ apply.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | use_magic_whistle(obj) | ^ apply.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | um_dist(x,y,n) | ^ apply.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 | o_unleash(otmp) /* otmp is about to be destroyed or stolen */ | ^ apply.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | m_unleash(mtmp) /* mtmp is about to die, or become untame */ | ^ apply.c:361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | use_leash(obj) | ^ apply.c:429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | get_mleash(mtmp) /* assuming mtmp->mleashed has been checked */ | ^ apply.c:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | check_leash(x, y) | ^ apply.c:522:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | wield_tool(obj) | ^ apply.c:552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | use_mirror(obj) | ^ apply.c:688:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | use_bell(obj) | ^ apply.c:747:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 747 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:747:13: note: treat the string as an argument to avoid this 747 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:772:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 772 | case 0: pline(nothing_happens); break; | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:772:20: note: treat the string as an argument to avoid this 772 | case 0: pline(nothing_happens); break; | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:784:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 784 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:784:14: note: treat the string as an argument to avoid this 784 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.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 | use_candelabrum(obj) | ^ apply.c:850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | use_candle(obj) | ^ apply.c:862:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 862 | You(no_elbow_room); | ^~~~~~~~~~~~~ apply.c:862:7: note: treat the string as an argument to avoid this 862 | You(no_elbow_room); | ^ | "%s", apply.c:931:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 931 | snuff_candle(otmp) /* call in drop, throw, and put in box, etc. */ | ^ apply.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | snuff_lit(obj) | ^ apply.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | use_lamp(obj) | ^ apply.c:1032:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | light_cocktail(obj) | ^ apply.c:1038:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1038 | You(no_elbow_room); | ^~~~~~~~~~~~~ apply.c:1038:10: note: treat the string as an argument to avoid this 1038 | You(no_elbow_room); | ^ | "%s", apply.c:1098:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1098 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1098:17: note: treat the string as an argument to avoid this 1098 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1103:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1103 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1103:15: note: treat the string as an argument to avoid this 1103 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1213 | tinnable(corpse) | ^ apply.c:1222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1222 | use_tinning_kit(obj) | ^ apply.c:1279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1279 | use_unicorn_horn(obj) | ^ apply.c:1350:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1350 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1350:12: note: treat the string as an argument to avoid this 1350 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1428:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1428 | use_figurine(obj) | ^ apply.c:1468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1468 | use_grease(obj) | ^ apply.c:1530:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1530 | use_trap(otmp) | ^ apply.c:1579:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1579 | use_whip(obj) | ^ apply.c:1630:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1630 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1630:11: note: treat the string as an argument to avoid this 1630 | pline(msg_slipsfree); | ^ | "%s", apply.c:1675:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1675 | else pline(msg_snap); | ^~~~~~~~ apply.c:1675:16: note: treat the string as an argument to avoid this 1675 | else pline(msg_snap); | ^ | "%s", apply.c:1675:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1675 | else pline(msg_snap); | ^ apply.c:1696:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1696 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1696:11: note: treat the string as an argument to avoid this 1696 | pline(msg_slipsfree); | ^ | "%s", apply.c:1697:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1697 | } else pline(msg_snap); | ^~~~~~~~ apply.c:1697:16: note: treat the string as an argument to avoid this 1697 | } else pline(msg_snap); | ^ | "%s", apply.c:1765:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1765 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:1765:11: note: treat the string as an argument to avoid this 1765 | pline(msg_slipsfree); | ^ | "%s", apply.c:1772:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1772 | pline(msg_snap); | ^~~~~~~~ apply.c:1772:11: note: treat the string as an argument to avoid this 1772 | pline(msg_snap); | ^ | "%s", apply.c:1771:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1771 | else | ^ apply.c:1778:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1778 | pline(msg_snap); | ^~~~~~~~ apply.c:1778:9: note: treat the string as an argument to avoid this 1778 | pline(msg_snap); | ^ | "%s", apply.c:1787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1787 | do_break_wand(obj) | ^ apply.c:1948:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1948 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1948:10: note: treat the string as an argument to avoid this 1948 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:2076:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2076 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2076:13: note: treat the string as an argument to avoid this 2076 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ 98 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c artifact.c -o artifact.o In file included from artifact.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from artifact.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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 | save_artifacts(fd) | ^ artifact.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 | restore_artifacts(fd) | ^ artifact.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | artiname(artinum) | ^ artifact.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | mk_artifact(otmp, alignment) | ^ artifact.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | artifact_name(name, otyp) | ^ artifact.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | exist_artifact(otyp, name) | ^ artifact.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 | artifact_exists(otmp, name, mod) | ^ artifact.c:221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | spec_ability(otmp, abil) | ^ artifact.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 | restrict_name(otmp, name) /* returns 1 if name is restricted for otmp->otyp */ | ^ artifact.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | attacks(adtyp, otmp) | ^ artifact.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 | defends(adtyp, otmp) | ^ artifact.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 | protects(adtyp, otmp) | ^ artifact.c:302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | set_artifact_intrinsic(otmp,on,wp_mask) | ^ artifact.c:417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | touch_artifact(obj,mon) | ^ artifact.c:479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | spec_applies(weap, mtmp) | ^ artifact.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | spec_abon(otmp, mon) | ^ artifact.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | spec_dbon(otmp, mon, tmp) | ^ artifact.c:584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 584 | artifact_hit(magr, mdef, otmp, dmgptr, dieroll) | ^ artifact.c:975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | arti_invoke(obj) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c attrib.c -o attrib.o In file included from attrib.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from attrib.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | adjattrib(ndx, incr, msgflg) | ^ attrib.c:221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | gainstr(otmp, incr) | ^ attrib.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | losestr(num) /* may kill you; cause may be poison or monster like 'a' */ | ^ attrib.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 | change_luck(n) | ^ 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 | stone_luck(parameter) | ^ attrib.c:316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | exercise(i, inc_or_dec) | ^ attrib.c:550:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | init_attr(np) | ^ attrib.c:620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | adjabil(oldlevel,newlevel) | ^ attrib.c:709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | acurr(x) | ^ attrib.c:757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | adjalign(n) | ^ 61 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ball.c -o ball.o In file included from ball.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ball.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c bones.c -o bones.o In file included from bones.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from bones.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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 | goodfruit(id) | ^ bones.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 | resetobjs(ochain,restore) | ^ bones.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | drop_upon_death(mtmp, cont) | ^ 54 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c botl.c -o botl.o In file included from botl.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from botl.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | rank_array(pc) | ^ botl.c:217:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | int xlev_to_rank(xlev) | ^ botl.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 | rank_of(lev, pc, female) | ^ botl.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | title_to_mon(str, rank_indx, title_length) | ^ botl.c:338:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 338 | Sprintf(nb = eos(nb), mbot); | ^~~~ botl.c:338:25: note: treat the string as an argument to avoid this 338 | Sprintf(nb = eos(nb), mbot); | ^ | "%s", botl.c:340:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 340 | Sprintf(nb = eos(nb), rank()); | ^~~~~~ botl.c:340:25: note: treat the string as an argument to avoid this 340 | Sprintf(nb = eos(nb), rank()); | ^ | "%s", 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c cmd.c -o cmd.o In file included from cmd.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from cmd.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | set_occupation(fn, txt, xtime) | ^ cmd.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | pushch(ch) | ^ cmd.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | savech(ch) | ^ cmd.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 | enlght_line(start, middle, end) | ^ cmd.c:552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | enlightenment(final) | ^ cmd.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 | count_obj(chain, total_count, total_size, top, recurse) | ^ cmd.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 | obj_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1031:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1031 | mon_invent_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1051:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | contained(win, src, total_count, total_size) | ^ cmd.c:1077:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | mon_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1173 | rhack(cmd) | ^ cmd.c:1328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1328 | xytod(x, y) /* convert an x,y pair into a direction code */ | ^ cmd.c:1340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | dtoxy(cc,dd) /* convert a direction code into an x,y pair */ | ^ cmd.c:1350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1350 | movecmd(sym) /* also sets u.dz, but returns false for <> */ | ^ cmd.c:1370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1370 | getdir(s) | ^ cmd.c:1412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1412 | isok(x,y) | ^ 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 | click_to_cmd(x, y, mod) | ^ cmd.c:1478:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1478 | pline(in_line); | ^~~~~~~ cmd.c:1478:10: note: treat the string as an argument to avoid this 1478 | pline(in_line); | ^ | "%s", 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dbridge.c -o dbridge.o In file included from dbridge.c:13: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dbridge.c:13: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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) | ^ 73 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c decl.c -o decl.o In file included from decl.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from decl.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 50 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c detect.c -o detect.o In file included from detect.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from detect.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:826:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 826 | findone(zx,zy,num) | ^ detect.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | openone(zx,zy,num) | ^ detect.c:941:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 941 | dosearch0(aflag) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dig.c -o dig.o In file included from dig.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dig.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:563:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | dighole(pit_only) | ^ dig.c:674:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 674 | use_pick_axe(obj) | ^ dig.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | mdig_tunnel(mtmp) | ^ dig.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | bury_an_obj(otmp) | ^ dig.c:1072:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1072 | bury_objs(x, y) | ^ dig.c:1091:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1091 | unearth_objs(x, y) | ^ dig.c:1124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1124 | rot_organic(arg, timeout) | ^ dig.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 | rot_corpse(arg, timeout) | ^ 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c display.c -o display.o In file included from display.c:116: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from display.c:116: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from display.c:116: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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:1105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | flush_screen(cursor_on_u) | ^ display.c:1151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1151 | back_to_glyph(x,y) | ^ display.c:1243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | swallow_to_glyph(mnum, loc) | ^ display.c:1269:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1269 | zapdir_to_glyph(dx, dy, beam_type) | ^ display.c:1289:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1289 | glyph_at(x, y) | ^ display.c:1301:22: warning: '/*' within block comment [-Wcomment] 1301 | /*#define WA_VERBOSE /* give (x,y) locations for all "bad" spots */ | ^ display.c:1347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1347 | check_pos(x, y, which) | ^ display.c:1360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1360 | more_than_one(x, y, a, b, c) | ^ display.c:1374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1374 | set_twall(x0,y0, x1,y1, x2,y2, x3,y3) | ^ display.c:1392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1392 | set_wall(x, y, horiz) | ^ display.c:1415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | set_corn(x1,y1, x2,y2, x3,y3, x4,y4) | ^ display.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 | set_crosswall(x, y) | ^ display.c:1562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1562 | set_seenv(lev, x0, y0, x, y) | ^ display.c:1629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1629 | t_warn(lev) | ^ display.c:1658:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1658 | wall_angle(lev) | ^ 80 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dlb.c -o dlb.o In file included from dlb.c:5: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from dlb.c:5: In file included from ../include/config.h:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dlb.c:5: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 48 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c do.c -o do.o In file included from do.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from do.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | flooreffects(obj,x,y,verb) | ^ do.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | doaltarobj(obj) /* obj is an object dropped on an altar */ | ^ do.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | trycall(obj) | ^ do.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 | dosinkring(obj) /* obj is a ring being dropped over a kitchen sink */ | ^ do.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | canletgo(obj,word) | ^ do.c:407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | drop(obj) | ^ do.c:453:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | dropx(obj) | ^ do.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 | dropy(obj) | ^ do.c:506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | menu_drop(retry) | ^ do.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 | goto_level(newlevel, at_stairs, falling, portal) | ^ do.c:1068:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1068 | if (mesg) pline(mesg); | ^~~~ do.c:1068:22: note: treat the string as an argument to avoid this 1068 | if (mesg) pline(mesg); | ^ | "%s", do.c:1181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | schedule_goto(tolev, at_stairs, falling, portal_flag, pre_msg, post_msg) | ^ do.c:1216:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1216 | if (dfr_pre_msg) pline(dfr_pre_msg); | ^~~~~~~~~~~ do.c:1216:29: note: treat the string as an argument to avoid this 1216 | if (dfr_pre_msg) pline(dfr_pre_msg); | ^ | "%s", do.c:1226:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1226 | if (dfr_post_msg) pline(dfr_post_msg); | ^~~~~~~~~~~~ do.c:1226:30: note: treat the string as an argument to avoid this 1226 | if (dfr_post_msg) pline(dfr_post_msg); | ^ | "%s", do.c:1243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | revive_corpse(corpse) | ^ do.c:1299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1299 | revive_mon(arg, timeout) | ^ do.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 | set_wounded_legs(side, timex) | ^ 68 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c do_name.c -o do_name.o In file included from do_name.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from do_name.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | self_pronoun(str, pronoun) | ^ do_name.c:815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | hcolor(colorpref) | ^ 67 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c do_wear.c -o do_wear.o In file included from do_wear.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from do_wear.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:549:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | Ring_on(obj) | ^ do_wear.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 | Ring_off_or_gone(obj,gone) | ^ do_wear.c:719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | Ring_off(obj) | ^ do_wear.c:726:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | Ring_gone(obj) | ^ do_wear.c:733:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | Blindf_on(otmp) | ^ do_wear.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 | Blindf_off(otmp) | ^ do_wear.c:780:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | donning(otmp) | ^ do_wear.c:944:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | cursed(otmp) | ^ do_wear.c:959:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | armoroff(otmp) | ^ do_wear.c:1011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1011 | already_wearing(cc) | ^ do_wear.c:1360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1360 | erode_armor(acid_dmg) | ^ do_wear.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 | select_off(otmp) | ^ do_wear.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 | menu_remarm(retry) | ^ do_wear.c:1651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | destroy_arm(atmp) | ^ do_wear.c:1702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1702 | adj_abon(otmp, delta) | ^ 67 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dog.c -o dog.o In file included from dog.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dog.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | initedog(mtmp) | ^ dog.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | make_familiar(otmp,x,y) | ^ dog.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | mon_arrive(mtmp, with_you) | ^ dog.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 | mon_catchup_elapsed_time(mtmp, nmv) | ^ dog.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | keepdogs(pets_only) | ^ dog.c:456:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | migrate_to_level(mtmp, tolev, xyloc, cc) | ^ dog.c:518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | dogfood(mon,obj) | ^ dog.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | tamedog(mtmp, obj) | ^ dog.c:690:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | abuse_dog(mtmp) | ^ 59 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dogmove.c -o dogmove.o In file included from dogmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dogmove.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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(x, y) | ^ dogmove.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | dog_nutrition(mtmp, obj) | ^ dogmove.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | dog_eat(mtmp, obj, x, y, devour) | ^ dogmove.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 | dog_hunger(mtmp, edog) | ^ dogmove.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | dog_invent(mtmp, edog, udist) | ^ dogmove.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 | dog_goal(mtmp, edog, after, udist, whappr) | ^ dogmove.c:429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | dog_move(mtmp, after) | ^ dogmove.c:707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | wantdoor(x, y, distance) | ^ dogmove.c:711:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 711 | register ndist; | ~~~~~~~~ ^ | int 60 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dokick.c -o dokick.o In file included from dokick.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dokick.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | kick_monster(x, y) | ^ dokick.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | ghitm(mtmp, gold) | ^ dokick.c:281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | kick_object(x, y) | ^ dokick.c:498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | kickstr(buf) | ^ dokick.c:915:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 915 | drop_to(cc, loc) | ^ dokick.c:948:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | impact_drop(missile, x, y, dlev) | ^ dokick.c:1068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1068 | ship_object(otmp, x, y, shop_floor_obj) | ^ dokick.c:1198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1198 | otransit_msg(otmp, nodrop, num) | ^ dokick.c:1221:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1221 | pline(obuf); | ^~~~ dokick.c:1221:12: note: treat the string as an argument to avoid this 1221 | pline(obuf); | ^ | "%s", dokick.c:1229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | down_gate(x, y) | ^ 61 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dothrow.c -o dothrow.o In file included from dothrow.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dothrow.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | hitfloor(obj) | ^ dothrow.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 | hurtle(dx, dy, range) | ^ dothrow.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | check_shop_obj(obj, x, y, broken) | ^ dothrow.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | toss_up(obj, hitsroof) | ^ dothrow.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 | throwit(obj) | ^ dothrow.c:554:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | omon_adj(mon, obj, mon_notices) | ^ dothrow.c:599:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | thitmonst(mon, obj) | ^ dothrow.c:767:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 767 | gem_accept(mon, obj) | ^ dothrow.c:834:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 834 | if(!Blind) pline(buf); | ^~~ dothrow.c:834:19: note: treat the string as an argument to avoid this 834 | if(!Blind) pline(buf); | ^ | "%s", dothrow.c:872:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 872 | hero_breaks(obj, x, y, from_invent) | ^ dothrow.c:890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | breaks(obj, x, y) | ^ dothrow.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 | breakobj(obj, x, y, heros_fault, from_invent) | ^ dothrow.c:938:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 938 | else | ^ dothrow.c:976:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | breaktest(obj) | ^ dothrow.c:998:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | breakmsg(obj, in_view) | ^ dothrow.c:1036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1036 | throw_gold(obj) | ^ 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c drawing.c -o drawing.o In file included from drawing.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from drawing.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:593:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | def_char_to_objclass(ch) | ^ drawing.c:607:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | def_char_to_monclass(ch) | ^ drawing.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 | assign_graphics(graph_chars, glth, maxlen, offset) | ^ 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 | switch_graphics(gr_set_flag) | ^ drawing.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | assign_rogue_graphics(is_rlevel) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c dungeon.c -o dungeon.o In file included from dungeon.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from dungeon.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | dunlev(lev) /* return the level number for lev in *this* dungeon */ | ^ dungeon.c:855:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | dunlevs_in_dungeon(lev) /* return the lowest level number for *this* dungeon*/ | ^ dungeon.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | deepest_lev_reached(noquest) /* return the lowest level explored in the game*/ | ^ dungeon.c:897:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | ledger_no(lev) | ^ dungeon.c:922:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | ledger_to_dnum(ledgerno) | ^ dungeon.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 | ledger_to_dlev(ledgerno) | ^ dungeon.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 | depth(lev) | ^ dungeon.c:959:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | on_level(lev1, lev2) /* are "lev1" and "lev2" actually the same? */ | ^ dungeon.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 | Is_special(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 | Is_branchlev(lev) | ^ dungeon.c:1000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | next_level(at_stairs ) | ^ dungeon.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | prev_level(at_stairs) | ^ dungeon.c:1035:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1035 | u_on_newpos(x, y) | ^ dungeon.c:1090:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1090 | On_stairs(x, y) | ^ dungeon.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | Is_botlevel(lev) | ^ dungeon.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 | Can_dig_down(lev) | ^ dungeon.c:1121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1121 | Can_fall_thru(lev) | ^ dungeon.c:1134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1134 | Can_rise_up(x, y, lev) | ^ dungeon.c:1158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | get_level(newlevel, levnum) | ^ dungeon.c:1209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1209 | In_quest(lev) /* are you in the quest dungeon? */ | ^ dungeon.c:1219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1219 | In_mines(lev) /* are you in the mines dungeon? */ | ^ dungeon.c:1234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1234 | dungeon_branch(s) | ^ dungeon.c:1260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1260 | at_dgn_entrance(s) | ^ 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 | In_V_tower(lev) /* is `lev' part of Vlad's tower? */ | ^ dungeon.c:1277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1277 | On_W_tower_level(lev) /* is `lev' a level containing the Wizard's tower? */ | ^ dungeon.c:1286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1286 | In_W_tower(x, y, lev) /* is of `lev' inside the Wizard's tower? */ | ^ dungeon.c:1308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1308 | In_hell(lev) /* are you in one of the Hell levels? */ | ^ dungeon.c:1318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1318 | find_hell(lev) /* sets *lev to be the gateway to Gehennom... */ | ^ dungeon.c:1326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1326 | goto_hell(at_stairs, falling) /* go directly to hell... */ | ^ dungeon.c:1336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | assign_level(dest, src) /* equivalent to dest = source */ | ^ 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 | assign_rnd_level(dest, src, range) /* dest = src + rn1(range) */ | ^ dungeon.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 | induced_align(pct) | ^ dungeon.c:1381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1381 | Invocation_lev(lev) | ^ dungeon.c:1407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | lev_by_name(nam) | ^ dungeon.c:1476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | br_string(type) | ^ dungeon.c:1490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1490 | print_branch(win, dnum, lower_bound, upper_bound) | ^ 103 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c eat.c -o eat.o In file included from eat.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from eat.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | food_xname(food, the_pfx) | ^ eat.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 | choke(food) /* To a full belly all food is bad. (It.) */ | ^ eat.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 | touchfood(otmp) | ^ eat.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | food_disappears(obj) | ^ eat.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | done_eating(message) | ^ eat.c:384:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 384 | if (message) pline(nomovemsg); | ^~~~~~~~~ eat.c:384:22: note: treat the string as an argument to avoid this 384 | if (message) pline(nomovemsg); | ^ | "%s", eat.c:401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | cprefx(pm) | ^ eat.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | intrinsic_possible(type, ptr) | ^ eat.c:583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | givit(type, ptr) | ^ eat.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | cpostfx(pm) /* called after completely consuming a corpse */ | ^ eat.c:981:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | start_tin(otmp) /* called when starting to open a tin */ | ^ eat.c:1049:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1049 | rottenfood(obj) | ^ eat.c:1080:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | eatcorpse(otmp) /* called when a corpse is selected as food */ | ^ eat.c:1159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1159 | start_eating(otmp) /* called as you start to eat */ | ^ eat.c:1192:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1192 | fprefx(otmp) /* called on "first bite" of (non-corpse) food */ | ^ eat.c:1258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1258 | eataccessory(otmp) | ^ eat.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 | foodword(otmp) | ^ eat.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 | fpostfx(otmp) /* called after consuming (non-corpse) food */ | ^ eat.c:1570:6: warning: converting the result of '?:' with integer constants to a boolean always evaluates to 'true' [-Wtautological-constant-compare] 1570 | (((monstermoves - otmp->age) > (int) otmp->blessed ? 50:30) && | ^ eat.c:1685:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1685 | morehungry(num) /* called after vomiting and after performing feats of magic */ | ^ eat.c:1694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1694 | lesshungry(num) /* called after eating (and after drinking fruit juice) */ | ^ eat.c:1706:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1706 | } else | ^ eat.c:1781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1781 | newuhs(incr) /* compute and comment on your (new?) hunger status */ | ^ eat.c:1913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1913 | floorfood(verb,corpsecheck) /* get food from floor or pack */ | ^ eat.c:1999:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1999 | eaten_stat(base, obj) | ^ 77 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c end.c -o end.o In file included from end.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from end.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | disclose(how,taken) | ^ end.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | savelife(how) | ^ end.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | get_valuables(list) | ^ end.c:372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | sort_valuables(list, size) | ^ 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 | done(how) | ^ end.c:692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | container_contents(list, identified, all_containers) | ^ end.c:731:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 731 | terminate(status) | ^ 61 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c engrave.c -o engrave.o In file included from engrave.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from engrave.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:31:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | random_engraving(outbuf) | ^ engrave.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 | wipeout_text(engr, cnt, seed) | ^ engrave.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 | surface(x, y) | ^ engrave.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | ceiling(x, y) | ^ engrave.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 | engr_at(x, y) | ^ engrave.c:210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | sengr_at(s, x, y) | ^ engrave.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | u_wipe_engr(cnt) | ^ engrave.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | wipe_engr_at(x,y,cnt) | ^ engrave.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | read_engr_at(x,y) | ^ engrave.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 | make_engr_at(x,y,s,e_time,e_type) | ^ engrave.c:347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | del_engr_at(x, y) | ^ engrave.c:716:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 716 | else | ^ engrave.c:844:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 844 | } else | ^ engrave.c:1017:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1017 | if (post_engr_text[0]) pline(post_engr_text); | ^~~~~~~~~~~~~~ engrave.c:1017:31: note: treat the string as an argument to avoid this 1017 | if (post_engr_text[0]) pline(post_engr_text); | ^ | "%s", engrave.c:1028:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | save_engravings(fd, mode) | ^ engrave.c:1052:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1052 | rest_engravings(fd) | ^ engrave.c:1075:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | del_engr(ep) | ^ engrave.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 | rloc_engr(ep) | ^ 68 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c exper.c -o exper.o In file included from exper.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from exper.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | enermod(en) | ^ exper.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | experience(mtmp, nk) /* return # of exp points for mtmp after nk killed */ | ^ exper.c:43:56: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses] 43 | if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; | ~~~~~~~~~~~~~~~~~ ^ exper.c:43:56: note: place parentheses around the '*' expression to silence this warning 43 | if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; | ^ | ( ) exper.c:43:56: note: place parentheses around the '?:' expression to evaluate it first 43 | if((i = find_mac(mtmp)) < 3) tmp += (7 - i) * (i < 0) ? 2 : 1; | ^ | ( ) exper.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | more_experienced(exp, rexp) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c explode.c -o explode.o In file included from explode.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from explode.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | scatter(sx,sy,blastforce,scflags) | ^ explode.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 | splatter_burning_oil(x, y) | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c extralev.c -o extralev.o In file included from extralev.c:9: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from extralev.c:9: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 /**/ | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c files.c -o files.o In file included from files.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from files.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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 | set_bonesfile_name(file, lev) | ^ files.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | create_bonesfile(lev, bonesid) | ^ files.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 | commit_bonesfile(lev) | ^ files.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 | open_bonesfile(lev, bonesid) | ^ files.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | delete_bonesfile(lev) | ^ files.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | save_savefile_name(fd) | ^ files.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 | redirect(filename, mode, stream, uncomp) | ^ files.c:587:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | docompress_file(filename, uncomp) | ^ files.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | compress(filename) | ^ files.c:691:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 691 | docompress_file(filename, FALSE); | ^~~~~~~~ files.c:698:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | uncompress(filename) | ^ files.c:705:18: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 705 | docompress_file(filename, TRUE); | ^~~~~~~~ files.c:723:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | make_lockname(filename, lockname) | ^ files.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 | lock_file(filename, retryct) | ^ files.c:856:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 856 | unlock_file(filename) | ^ files.c:907:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | fopen_config_file(filename) | ^ files.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 | get_uchars(fp, buf, bufp, list, size, name) | ^ files.c:1021:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1021 | parse_config_line(fp, buf, tmp_ramdisk, tmp_levels) | ^ files.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 | read_config_file(filename) | ^ files.c:1305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1305 | check_recordfile(dir) | ^ 75 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c fountain.c -o fountain.o In file included from fountain.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from fountain.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | dogushforth(drinking) /* Gushing forth along LOS from (u.ux, u.uy) */ | ^ fountain.c:97:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 97 | else | ^ fountain.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | gush(x, y, poolcnt) | ^ fountain.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 | dryup(x,y) | ^ fountain.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 | dipfountain(obj) | ^ fountain.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 | breaksink(x,y) | ^ 57 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c hack.c -o hack.o In file included from hack.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from hack.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | revive_nasty(x, y, msg) | ^ hack.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 | still_chewing(x,y) | ^ hack.c:337:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 337 | if (digtxt) You(digtxt); /* after newsym */ | ^~~~~~ hack.c:337:21: note: treat the string as an argument to avoid this 337 | if (digtxt) You(digtxt); /* after newsym */ | ^ | "%s", hack.c:347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | movobj(obj, ox, oy) | ^ hack.c:403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | may_dig(x,y) | ^ hack.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 | may_passwall(x,y) | ^ hack.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | bad_rock(mdat,x,y) | ^ hack.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | invocation_pos(x, y) | ^ hack.c:1025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | monstinroom(mdat,roomno) | ^ hack.c:1039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | in_rooms(x, y, typewanted) | ^ hack.c:1107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | move_update(newlev) | ^ hack.c:1149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1149 | check_special_room(newlev) | ^ hack.c:1449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | nomul(nval) | ^ hack.c:1460:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1460 | void unmul(msg_override) | ^ hack.c:1466:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1466 | if (*nomovemsg) pline(nomovemsg); | ^~~~~~~~~ hack.c:1466:24: note: treat the string as an argument to avoid this 1466 | if (*nomovemsg) pline(nomovemsg); | ^ | "%s", hack.c:1477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1477 | losehp(n, knam, k_format) | ^ hack.c:1591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1591 | calc_capacity(xtra_wt) | ^ hack.c:1617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1617 | check_capacity(str) | ^ hack.c:1622:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1622 | pline(str); | ^~~ hack.c:1622:12: note: treat the string as an argument to avoid this 1622 | pline(str); | ^ | "%s", 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c hacklib.c -o hacklib.o In file included from hacklib.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #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:375: ../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:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../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:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from hacklib.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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: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: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) | ^ 76 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c invent.c -o invent.o In file included from invent.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ invent.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | assigninvlet(otmp) | ^ invent.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | merge_choice(objlist, obj) | ^ invent.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | merged(potmp, pobj) | ^ invent.c:200:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | addinv(obj) | ^ invent.c:271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | hold_another_object(obj, drop_fmt, drop_arg, hold_msg) | ^ invent.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | useup(obj) | ^ invent.c:329:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | freeinv(obj) | ^ invent.c:370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | delallobj(x, y) | ^ invent.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 | delobj(obj) | ^ invent.c:417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | sobj_at(n,x,y) | ^ invent.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 | carrying(type) | ^ invent.c:455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | o_on(id, objchn) | ^ invent.c:471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | obj_here(obj, x, y) | ^ invent.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | g_at(x,y) | ^ invent.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | mkgoldobj(q) | ^ invent.c:519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | compactify(buf) | ^ invent.c:555:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | getobj(let,word) | ^ invent.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | ckunpaid(otmp) | ^ invent.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 | is_worn(otmp) | ^ invent.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | ggetobj(word, fn, mx, combo) | ^ invent.c:974:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | askchain(objchn, olets, allflag, fn, ckfn, mx, word) | ^ invent.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | fully_identify_obj(otmp) | ^ invent.c:1080:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | identify(otmp) | ^ invent.c:1090:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1090 | menu_identify(id_limit) | ^ invent.c:1120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | identify_pack(id_limit) | ^ invent.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | obj_to_let(obj) /* should of course only be called for things in invent */ | ^ invent.c:1179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1179 | prinv(prefix, obj, quan) | ^ invent.c:1197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1197 | xprname(obj, txt, let, dot, cost) | ^ invent.c:1253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1253 | find_unpaid(list, last_found) | ^ invent.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 | display_inventory(lets, want_reply) | ^ invent.c:1377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | count_unpaid(list) | ^ invent.c:1483:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1483 | this_type_only(obj) | ^ invent.c:1691:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1691 | if (dfeature) pline(fbuf); | ^~~~ invent.c:1691:23: note: treat the string as an argument to avoid this 1691 | if (dfeature) pline(fbuf); | ^ | "%s", invent.c:1699:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1699 | if (dfeature) pline(fbuf); | ^~~~ invent.c:1699:26: note: treat the string as an argument to avoid this 1699 | if (dfeature) pline(fbuf); | ^ | "%s", invent.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 | feel_cockatrice(otmp, force_touch) | ^ invent.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 | stackobj(obj) | ^ invent.c:1753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1753 | mergable(otmp, obj) /* returns TRUE if obj & otmp can be merged */ | ^ invent.c:1921:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1921 | useupf(obj) | ^ invent.c:1966:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1966 | let_to_name(let,unpaid) | ^ invent.c:2041:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2041 | else alphabet[(otmp->invlet) - 'a'] = ' '; | ^ invent.c:2101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2101 | invdisp_nothing(hdr, txt) | ^ invent.c:2123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2123 | worn_wield_only(obj) | ^ invent.c:2145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2145 | display_minventory(mon, dflags) | ^ invent.c:2210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2210 | display_cinventory(obj) | ^ invent.c:2239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2239 | only_here(obj) | ^ invent.c:2252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2252 | display_binventory(x, y, as_if_seen) | ^ 96 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c light.c -o light.o In file included from light.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from light.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ light.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | new_light_source(x, y, range, type, id) | ^ light.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | del_light_source(type, id) | ^ light.c:111:30: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 111 | case LS_OBJECT: tmp_id = (genericptr_t)(((struct obj *)id)->o_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:113:31: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 113 | case LS_MONSTER: tmp_id = (genericptr_t)(((struct monst *)id)->m_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | do_light_sources(cs_rows) | ^ light.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | find_mid(nid) | ^ light.c:237:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | save_light_sources(fd, mode, range) | ^ light.c:287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | restore_light_sources(fd) | ^ light.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | relink_light_sources(ghostly) | ^ light.c:317:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 317 | if (!lookup_id_mapping((unsigned)ls->id, &nid)) | ^~~~~~~~~~~~~~~~ light.c:320:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 320 | nid = (unsigned) ls->id; | ^~~~~~~~~~~~~~~~~ light.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | maybe_write_ls(fd, range, write_it) | ^ light.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | write_ls(fd, ls) | ^ light.c:398:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 398 | ls->id = (genericptr_t)otmp->o_id; | ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:405:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 405 | ls->id = (genericptr_t)mtmp->m_id; | ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | obj_move_light_source(src, dest) | ^ light.c:447:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | snuff_light_source(x, y) | ^ light.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | obj_sheds_light(obj) | ^ light.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | obj_is_burning(obj) | ^ light.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | obj_split_light_source(src, dest) | ^ 70 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c lock.c -o lock.o In file included from lock.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ lock.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | picking_lock(x, y) | ^ lock.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | picking_at(x, y) | ^ lock.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | pick_lock(pick) /* pick a lock with a given object */ | ^ lock.c:575:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | obstructed(x,y) | ^ lock.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 | boxlock(obj, otmp) /* returns true if something happened */ | ^ lock.c:712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | doorlock(otmp,x,y) /* returns true if something happened */ | ^ lock.c:835:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 835 | if (msg && cansee(x,y)) pline(msg); | ^~~ lock.c:835:32: note: treat the string as an argument to avoid this 835 | if (msg && cansee(x,y)) pline(msg); | ^ | "%s", lock.c:851:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | chest_shatter_msg(otmp) | ^ 58 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mail.c -o mail.o In file included from mail.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 50 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c makemon.c -o makemon.o In file included from makemon.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ makemon.c:35:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | is_home_elemental(ptr) | ^ makemon.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 | wrong_elem_type(ptr) | ^ makemon.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | m_initgrp(mtmp, x, y, n) /* make a group just like mtmp */ | ^ makemon.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | m_initthrow(mtmp,otyp,oquan) | ^ makemon.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | m_initweap(mtmp) | ^ makemon.c:455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | m_initinv(mtmp) | ^ makemon.c:594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | clone_mon(mon) | ^ makemon.c:667:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | makemon(ptr, x, y, mmflags) | ^ makemon.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 | create_critters(cnt, mptr) | ^ makemon.c:942:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 942 | uncommon(mndx) | ^ makemon.c:959:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | align_shift(ptr) | ^ makemon.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 | reset_rndmonst(mndx) | ^ makemon.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | mkclass(class,spc) | ^ makemon.c:1152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1152 | adj_lev(ptr) /* adjust strength of monsters based on u.uz and u.ulevel */ | ^ makemon.c:1183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1183 | grow_up(mtmp, victim) /* `mtmp' might "grow up" into a bigger version */ | ^ makemon.c:1265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1265 | mongets(mtmp, otyp) | ^ makemon.c:1315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1315 | golemhp(type) | ^ makemon.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 | peace_minded(ptr) | ^ makemon.c:1379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1379 | set_malign(mtmp) | ^ makemon.c:1438:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1438 | set_mimic_sym(mtmp) /* KAA, modified by ERS */ | ^ 70 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mcastu.c -o mcastu.o In file included from mcastu.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mcastu.c:15:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | cursetxt(mtmp) | ^ mcastu.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | castmu(mtmp, mattk) /* monster casts spell at you */ | ^ mcastu.c: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 | buzzmu(mtmp, mattk) /* monster uses spell (ranged) */ | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mhitm.c -o mhitm.o In file included from mhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mhitm.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | mon_nam_too(outbuf, mon, other_mon) | ^ mhitm.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | noises(magr, mattk) | ^ mhitm.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | missmm(magr, mdef, mattk) | ^ mhitm.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | fightm(mtmp) /* have monsters fight each other */ | ^ mhitm.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | mattackm(magr, mdef) | ^ mhitm.c:318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | hitmm(magr, mdef, mattk) | ^ mhitm.c:371:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | gazemm(magr, mdef, mattk) | ^ mhitm.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | gulpmm(magr, mdef, mattk) | ^ mhitm.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | explmm(magr, mdef, mattk) | ^ mhitm.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | mdamagem(magr, mdef, mattk) | ^ mhitm.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | noattacks(ptr) /* returns 1 if monster doesn't attack */ | ^ mhitm.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | sleep_monst(mon, amt, how) | ^ mhitm.c:935:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | slept_monst(mon) | ^ mhitm.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 | mrustm(magr, mdef, obj) | ^ mhitm.c:973:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | mswingsm(magr, mdef, otemp) | ^ mhitm.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 | passivemm(magr,mdef,mhit,mdead) | ^ 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mhitu.c -o mhitu.o In file included from mhitu.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mhitu.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | hitmsg(mtmp, mattk) | ^ mhitu.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 | missmu(mtmp, nearmiss, mattk) /* monster missed you */ | ^ mhitu.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | mswings(mtmp, otemp) /* monster swings obj */ | ^ mhitu.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | mpoisons_subj(mtmp, mattk) | ^ mhitu.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 | wildmiss(mtmp, mattk) /* monster attacked your displaced image */ | ^ mhitu.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 | expels(mtmp, mdat, message) | ^ mhitu.c:270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | mattacku(mtmp) | ^ mhitu.c:623:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | hurtarmor(mdat, attk) | ^ mhitu.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 | diseasemu(mdat) | ^ mhitu.c:712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | u_slip_free(mtmp, mattk) | ^ mhitu.c:751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | hitmu(mtmp, mattk) | ^ mhitu.c:1252:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1252 | else pline("%s chuckles.", Monnam(mtmp)); | ^ mhitu.c:1367:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1367 | gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */ | ^ mhitu.c:1523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1523 | explmu(mtmp, mattk, ufound) /* monster explodes in your face */ | ^ mhitu.c:1594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1594 | gazemu(mtmp, mattk) /* monster gazes at you */ | ^ mhitu.c:1694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1694 | mdamageu(mtmp, n) /* mtmp hits you for n points damage */ | ^ mhitu.c:1712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | urustm(mon, obj) | ^ mhitu.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 | could_seduce(magr,mdef,mattk) | ^ mhitu.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 | doseduce(mon) | ^ mhitu.c:2023:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2023 | mayberem(obj, str) | ^ mhitu.c:2067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2067 | passiveum(olduasmon,mtmp,mattk) | ^ 71 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c minion.c -o minion.o In file included from minion.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ minion.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | msummon(ptr) /* ptr summons a monster */ | ^ minion.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | summon_minion(alignment, talk) | ^ minion.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | demon_talk(mtmp) /* returns 1 if it won't attack. */ | ^ minion.c: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 | bribe(mtmp) | ^ minion.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | dprince(atyp) | ^ minion.c:205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | dlord(atyp) | ^ minion.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | ndemon(atyp) | ^ 57 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mklev.c -o mklev.o In file included from mklev.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mklev.c:6:18: warning: '/*' within block comment [-Wcomment] 6 | /* #define DEBUG /* uncomment to enable code debugging */ | ^ mklev.c: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 | do_comp(vx,vy) | ^ mklev.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 | finddpos(cc, xl,yl,xh,yh) | ^ mklev.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | do_room_or_subroom(croom, lowx, lowy, hix, hiy, lit, rtype, special, is_room) | ^ mklev.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | add_room(lowx, lowy, hix, hiy, lit, rtype, special) | ^ mklev.c:205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | add_subroom(proom, lowx, lowy, hix, hiy, lit, rtype, special) | ^ mklev.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 | join(a,b,nxcor) | ^ mklev.c:347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | add_door(x,y,aroom) | ^ mklev.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | dosdoor(x,y,aroom,type) | ^ mklev.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 | place_niche(aroom,dy,xx,yy) | ^ mklev.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | makeniche(trap_type) | ^ mklev.c:922:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | topologize(croom) | ^ mklev.c:985:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 985 | find_branch_room(mp) | ^ mklev.c:1015:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1015 | pos_to_room(x, y) | ^ mklev.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 | place_branch(br, x, y) | ^ mklev.c:1087:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1087 | bydoor(x, y) | ^ mklev.c:1113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1113 | okdoor(x,y) | ^ mklev.c:1123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1123 | dodoor(x,y,aroom) | ^ mklev.c:1136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1136 | occupied(x, y) | ^ mklev.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 | mktrap(num, mazeflag, croom, tm) | ^ mklev.c:1240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1240 | mkstairs(x, y, up, croom) | ^ mklev.c:1275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | mkfount(mazeflag,croom) | ^ mklev.c:1301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1301 | mksink(croom) | ^ mklev.c:1318:17: warning: '/*' within block comment [-Wcomment] 1318 | #endif /* SINKS /**/ | ^ mklev.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 | mkaltar(croom) | ^ mklev.c:1402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1402 | mkinvpos(x,y,dist) | ^ mklev.c:1481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1481 | mk_knox_portal(x, y) | ^ 77 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mkmap.c -o mkmap.o In file included from mkmap.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mkmap.c:27:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | init_map(bg_typ) | ^ mkmap.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | init_fill(bg_typ, fg_typ) | ^ mkmap.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | get_map(col,row, bg_typ) | ^ mkmap.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | pass_one(bg_typ, fg_typ) | ^ mkmap.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | pass_two(bg_typ, fg_typ) | ^ mkmap.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | pass_three(bg_typ, fg_typ) | ^ mkmap.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | flood_fill_rm(sx, sy, rmno, lit, anyroom) | ^ mkmap.c:208:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 208 | } else { | ^ mkmap.c:225:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 225 | } else { | ^ mkmap.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | join_map(bg_typ, fg_typ) | ^ mkmap.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | finish_map(fg_typ, bg_typ, lit, walled) | ^ mkmap.c:361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | mkmap(init_lev) | ^ 62 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mkmaze.c -o mkmaze.o In file included from mkmaze.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mkmaze.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | iswall(x,y) | ^ mkmaze.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | iswall_or_stone(x,y) | ^ mkmaze.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | is_solid(x,y) | ^ mkmaze.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | extend_spine(locale, wall_there, dx, dy) | ^ mkmaze.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | wallification(x1, y1, x2, y2) | ^ mkmaze.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | okay(x,y,dir) | ^ mkmaze.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | maze0xy(cc) /* find random starting point for maze generation */ | ^ mkmaze.c:222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | bad_location(x, y, lx, ly, hx, hy) | ^ mkmaze.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | place_lregion(lx, ly, hx, hy, nlx, nly, nhx, nhy, rtype, lev) | ^ mkmaze.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | put_lregion_here(x,y,nlx,nly,nhx,nhy,rtype,oneshot,lev) | ^ mkmaze.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | makemaz(s) | ^ mkmaze.c:673:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | walkfrom(x,y) | ^ mkmaze.c:708:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | move(x,y,dir) | ^ mkmaze.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | mazexy(cc) /* find random point in generated corridors, | ^ mkmaze.c:847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 847 | mkportal(x, y, todnum, todlevel) | ^ mkmaze.c:1066:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1066 | save_waterlevel(fd, mode) | ^ mkmaze.c:1089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1089 | restore_waterlevel(fd) | ^ mkmaze.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1175 | mk_bubble(x,y,n) | ^ mkmaze.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | mv_bubble(b,dx,dy,ini) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mkobj.c -o mkobj.o In file included from mkobj.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mkobj.c:19:26: warning: '/*' within block comment [-Wcomment] 19 | /*#define DEBUG_EFFECTS /* show some messages for debugging */ | ^ mkobj.c: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 | mkobj_at(let,x,y, artif) | ^ mkobj.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 | mksobj_at(otyp,x,y,init) | ^ mkobj.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | mkobj(oclass, artif) | ^ mkobj.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 | mkbox_cnts(box) | ^ mkobj.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 | splitobj(obj, num) | ^ mkobj.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 | bill_dummy_object(otmp) | ^ mkobj.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | mksobj(otyp, init, artif) | ^ mkobj.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | start_corpse_timeout(body) | ^ mkobj.c:601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | bless(otmp) | ^ mkobj.c:615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | unbless(otmp) | ^ mkobj.c:627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | curse(otmp) | ^ mkobj.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 | uncurse(otmp) | ^ mkobj.c:656:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | blessorcurse(otmp, chance) | ^ mkobj.c:665:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 665 | } else { | ^ mkobj.c:675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | bcsign(otmp) | ^ mkobj.c:693:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 693 | weight(obj) | ^ mkobj.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | mkgold(amount, x, y) | ^ mkobj.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 | mkcorpstat(objtype, mtmp, ptr, x, y, init) | ^ mkobj.c:867:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | mk_tt_object(objtype, x, y) | ^ mkobj.c:885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | mk_named_object(objtype, ptr, x, y, nm) | ^ mkobj.c:901:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | is_flammable(otmp) | ^ mkobj.c:922:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | place_object(otmp, x, y) | ^ mkobj.c:961:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | obj_ice_effects(x, y, do_buried) | ^ mkobj.c:987:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 987 | peek_at_iced_corpse_age(otmp) | ^ mkobj.c:1007:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1007 | obj_timer_checks(otmp, x, y, force) | ^ mkobj.c:1076:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | remove_object(otmp) | ^ mkobj.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | discard_minvent(mtmp) | ^ mkobj.c:1120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | obj_extract_self(obj) | ^ mkobj.c:1157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1157 | extract_nobj(obj, head_ptr) | ^ mkobj.c:1184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1184 | extract_nexthere(obj, head_ptr) | ^ mkobj.c:1204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1204 | add_to_minv(mon, obj) | ^ mkobj.c:1225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1225 | add_to_container(container, obj) | ^ mkobj.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 | add_to_migration(obj) | ^ mkobj.c:1250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1250 | add_to_buried(obj) | ^ mkobj.c:1263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1263 | container_weight(container) | ^ mkobj.c:1280:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1280 | dealloc_obj(obj) | ^ mkobj.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | where_name(where) | ^ mkobj.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 | check_contained(container, mesg) | ^ 89 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mkroom.c -o mkroom.o In file included from mkroom.c:16: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mkroom.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | isbig(sroom) | ^ mkroom.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | mkroom(roomtype) | ^ mkroom.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | pick_room(strict) | ^ mkroom.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | mkzoo(type) | ^ mkroom.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 | fill_zoo(sroom) | ^ mkroom.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 | mkundead(mm, revive_corpses, mm_flags) | ^ mkroom.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | shrine_pos(roomno) | ^ mkroom.c:459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | nexttodoor(sx,sy) | ^ mkroom.c:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | has_dnstairs(sroom) | ^ mkroom.c:485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | has_upstairs(sroom) | ^ mkroom.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | somex(croom) | ^ mkroom.c:506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | somey(croom) | ^ mkroom.c:513:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 513 | inside_room(croom, x, y) | ^ mkroom.c:522:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | somexy(croom, c) | ^ mkroom.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | search_special(type) | ^ mkroom.c:652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | save_room(fd, r) | ^ mkroom.c:672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | save_rooms(fd) | ^ mkroom.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | rest_room(fd, r) | ^ mkroom.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | rest_rooms(fd) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mon.c -o mon.o In file included from mon.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mon.c: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 | undead_to_corpse(mndx) | ^ mon.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 | make_corpse(mtmp) | ^ mon.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | minwater(mtmp) | ^ mon.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 | meatgold(mtmp) | ^ mon.c:472:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | meatobj(mtmp) /* for gelatinous cubes */ | ^ mon.c:545:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | mpickgold(mtmp) | ^ mon.c:564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | mpickstuff(mtmp, str) | ^ mon.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | curr_mon_load(mtmp) | ^ mon.c:625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | max_mon_load(mtmp) | ^ mon.c:654:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | can_carry(mtmp,otmp) | ^ mon.c:686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | mfndpos(mon, poss, info, flag) | ^ mon.c:874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | monnear(mon, x, y) | ^ mon.c:902:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | monfree(mtmp) | ^ mon.c:915:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 915 | replmon(mtmp, mtmp2) | ^ mon.c:950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | relmon(mon) | ^ mon.c:969:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 969 | m_detach(mtmp, mptr) | ^ mon.c:991:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 991 | mlifesaver(mon) | ^ mon.c:1004:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1004 | lifesaved_monster(mtmp) | ^ mon.c:1042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | mondead(mtmp) | ^ mon.c:1118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1118 | corpse_chance(mon) | ^ mon.c:1151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1151 | mondied(mdef) | ^ mon.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 | mongone(mdef) | ^ mon.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 | monstone(mdef) | ^ mon.c:1228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1228 | monkilled(mdef, fltxt, how) | ^ mon.c:1256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1256 | unstuck(mtmp) | ^ mon.c:1274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1274 | killed(mtmp) | ^ mon.c:1282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1282 | xkilled(mtmp, dest) | ^ mon.c:1433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1433 | mon_to_stone(mtmp) | ^ mon.c:1448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | mnexto(mtmp) /* Make monster mtmp next to you (if possible) */ | ^ mon.c:1465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1465 | mnearto(mtmp,x,y,move_other) | ^ mon.c:1516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1516 | poisontell(typ) | ^ mon.c:1524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1524 | poisoned(string, typ, pname, fatal) | ^ mon.c:1569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1569 | m_respond(mtmp) | ^ mon.c:1600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1600 | setmangry(mtmp) | ^ mon.c:1638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1638 | wakeup(mtmp) | ^ mon.c:1663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1663 | wake_nearto(x, y, distance) | ^ mon.c:1677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1677 | seemimic(mtmp) | ^ mon.c:1734:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1734 | restrap(mtmp) | ^ mon.c:1755:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1755 | newcham(mtmp, mdat) | ^ mon.c:1924:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1924 | can_be_hatched(mnum) | ^ mon.c:1941:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1941 | egg_type_from_parent(mnum, force_ordinary) | ^ mon.c:1955:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1955 | dead_species(m_idx, egg) | ^ mon.c:1975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1975 | kill_eggs(obj_list) | ^ mon.c:2046:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2046 | golemeffects(mon, damtype, dam) | ^ mon.c:2083:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2083 | angry_guards(silent) | ^ 95 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mondata.c -o mondata.o In file included from mondata.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mondata.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | set_mon_data(mon, ptr, flag) | ^ mondata.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | attacktype(ptr, atyp) | ^ mondata.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | poly_when_stoned(ptr) | ^ mondata.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | resists_drli(mon) /* returns TRUE if monster is drain-life resistant */ | ^ mondata.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | resists_magm(mon) /* TRUE if monster is magic-missile resistant */ | ^ mondata.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | resists_blnd(mon) | ^ mondata.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | ranged_attk(ptr) /* returns TRUE if monster can attack at range */ | ^ mondata.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | hates_silver(ptr) | ^ mondata.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | can_track(ptr) /* returns TRUE if monster can track well */ | ^ mondata.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 | sliparm(ptr) /* creature will slide out of armor */ | ^ mondata.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | breakarm(ptr) /* creature will break out of armor */ | ^ mondata.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | sticks(ptr) /* creature sticks other creatures it hits */ | ^ mondata.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 | dmgtype(ptr, dtyp) | ^ mondata.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 | max_passive_dmg(mdef, magr) | ^ mondata.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 | monsndx(ptr) /* return an index into the mons array */ | ^ mondata.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | name_to_mon(in_str) | ^ mondata.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 | webmaker(ptr) /* creature can spin a web */ | ^ mondata.c:374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | gender(mtmp) | ^ mondata.c:384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | pronoun_gender(mtmp) | ^ mondata.c:396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | levl_follower(mtmp) | ^ mondata.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 | little_to_big(montype) | ^ mondata.c:503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | big_to_little(montype) | ^ mondata.c:520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 520 | locomotion(ptr, def) | ^ 73 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c monmove.c -o monmove.o In file included from monmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ monmove.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | mb_trapped(mtmp) | ^ monmove.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | watch_on_duty(mtmp) | ^ monmove.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | dochugw(mtmp) | ^ monmove.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | onscary(x, y, mtmp) | ^ monmove.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 | mon_regen(mon, digest_meal) | ^ monmove.c:161:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | disturb(mtmp) | ^ monmove.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | distfleeck(mtmp,inrange,nearby,scared) | ^ monmove.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 | m_arrival(mon) | ^ monmove.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | dochug(mtmp) | ^ monmove.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 | itsstuck(mtmp) | ^ monmove.c:514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | m_move(mtmp, after) | ^ monmove.c:1080:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | closed_door(x, y) | ^ monmove.c:1088:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1088 | accessible(x, y) | ^ monmove.c:1099:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1099 | set_apparxy(mtmp) | ^ 64 warnings generated. ./makedefs -m cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c monstr.c -o monstr.o In file included from monstr.c:2: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from monstr.c:2: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from monstr.c:2: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from monstr.c:2: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from monstr.c:2: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 48 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mplayer.c -o mplayer.o In file included from mplayer.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mplayer.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | get_mplname(mtmp, nam) | ^ mplayer.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | mk_mplayer_armor(mon, range1, range2) | ^ mplayer.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | mk_mplayer(ptr, x, y, special) | ^ mplayer.c: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 | create_mplayers(num, special) | ^ mplayer.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | mplayer_talk(mtmp) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c mthrowu.c -o mthrowu.o In file included from mthrowu.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ mthrowu.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | thitu(tlev, dam, obj, name) /* u is hit by sth, but not a monster */ | ^ mthrowu.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | drop_throw(obj, ohit, x, y) | ^ mthrowu.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ohitmon(mtmp, otmp, range, verbose) | ^ mthrowu.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | m_throw(mon, x, y, dx, dy, range, obj) | ^ mthrowu.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | m_useup(mon, obj) | ^ mthrowu.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | thrwmu(mtmp) /* monster throws item at you */ | ^ mthrowu.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | spitmu(mtmp, mattk) /* monster spits substance at you */ | ^ mthrowu.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | breamu(mtmp, mattk) /* monster breathes at you (ranged) */ | ^ mthrowu.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | linedup(ax, ay, bx, by) | ^ mthrowu.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | lined_up(mtmp) /* is mtmp in position to use ranged attack? */ | ^ mthrowu.c:584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 584 | m_carrying(mtmp, type) | ^ 61 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c muse.c -o muse.o In file included from muse.c:9: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ muse.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | precheck(mon, obj) | ^ muse.c:79:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 79 | if (vis) pline(empty); | ^~~~~ muse.c:79:22: note: treat the string as an argument to avoid this 79 | if (vis) pline(empty); | ^ | "%s", muse.c:101:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 101 | if (vis) pline(empty); | ^~~~~ muse.c:101:22: note: treat the string as an argument to avoid this 101 | if (vis) pline(empty); | ^ | "%s", muse.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | mzapmsg(mtmp, otmp, self) | ^ muse.c:161:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | mreadmsg(mtmp, otmp) | ^ muse.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | mquaffmsg(mtmp, otmp) | ^ muse.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | find_defensive(mtmp) | ^ muse.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | use_defensive(mtmp) | ^ muse.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | rnd_defensive_item(mtmp) | ^ muse.c:854:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 854 | find_offensive(mtmp) | ^ muse.c:957:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | mbhitm(mtmp, otmp) | ^ muse.c:1022:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1022 | mbhit(mon,range,fhitm,fhito,obj) | ^ muse.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 | use_offensive(mtmp) | ^ muse.c:1231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1231 | rnd_offensive_item(mtmp) | ^ muse.c:1271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | find_misc(mtmp) | ^ muse.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 | use_misc(mtmp) | ^ muse.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 | you_aggravate(mtmp) | ^ muse.c:1574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1574 | rnd_misc_item(mtmp) | ^ muse.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 | searches_for_item(mon, obj) | ^ muse.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 | mon_reflects(mon,str) | ^ muse.c:1677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1677 | munstone(mon, by_you) | ^ 71 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c music.c -o music.o In file included from music.c:29: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from music.c:29: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ music.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | awaken_monsters(distance) | ^ music.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | put_monsters_to_sleep(distance) | ^ music.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | charm_snakes(distance) | ^ music.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | calm_nymphs(distance) | ^ music.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | charm_monsters(distance) | ^ music.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | do_earthquake(force) | ^ music.c: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 | do_improvisation(instr) | ^ music.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | do_play_instrument(instr) | ^ 58 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c o_init.c -o o_init.o In file included from o_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ o_init.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | shuffle(o_low, o_high, domaterial) | ^ o_init.c: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 | savenames(fd, mode) | ^ o_init.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | restnames(fd) | ^ o_init.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 | discover_object(oindx, mark_as_known) | ^ o_init.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 | undiscover_object(oindx) | ^ o_init.c:349:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | interesting_to_discover(i) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c objnam.c -o objnam.o In file included from objnam.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ objnam.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | strprepend(s,pref) | ^ objnam.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | typename(otyp) | ^ objnam.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | obj_is_pname(obj) | ^ objnam.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | distant_name(obj, func) | ^ objnam.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | xname(obj) | ^ objnam.c:429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | the_unique_obj(obj) | ^ objnam.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 | doname(obj) | ^ objnam.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 | not_fully_identified(otmp) | ^ objnam.c:688:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | corpse_xname(otmp, ignore_oquan) | ^ objnam.c:707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | singular(otmp, func) | ^ objnam.c:726:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | an(str) | ^ objnam.c:750:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | An(str) | ^ objnam.c:763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | the(str) | ^ objnam.c:810:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | The(str) | ^ objnam.c:819:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | aobjnam(otmp,verb) | ^ objnam.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | Doname2(obj) | ^ objnam.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | yname(obj) | ^ objnam.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 | Yname2(obj) | ^ objnam.c:907:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | makeplural(oldstr) | ^ objnam.c:995:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 995 | else if (len >= 5 && !strncmp(spot-4, "staf", 4)) | ^ objnam.c:1158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | makesingular(oldstr) | ^ objnam.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 | readobjnam(bp) | ^ objnam.c:2098:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2098 | rnd_class(first,last) | ^ objnam.c:2114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2114 | Japanese_item_name(i) | ^ 74 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c options.c -o options.o In file included from options.c:13: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from options.c:13: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ options.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | match_optname(user_string, opt_name, min_length, val_allowed) | ^ options.c:445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 445 | nmcpy(dest, src, maxlen) | ^ options.c:467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | escapes(cp, tp) | ^ options.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | boolopt_only_initial(i) | ^ options.c:540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | rejectoption(optname) | ^ options.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | badoption(opts) | ^ options.c:582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | string_for_opt(opts, val_optional) | ^ options.c:597:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 597 | string_for_env_opt(optname, opts, val_optional) | ^ options.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | bad_negation(optname, with_parameter) | ^ options.c:629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | change_inv_order(op) | ^ options.c:663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | graphics_opts(opts, optype, maxlen, offset) | ^ options.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | parseoptions(opts, tinitial, tfrom_file) | ^ options.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | oc_to_str(src,dest) | ^ options.c:1427:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1427 | add_menu_cmd_alias(from_ch, to_ch) | ^ options.c:1446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1446 | map_menu_cmd(ch) | ^ options.c:1465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1465 | doset_add_menu(win, option, value, indexoffset) | ^ options.c:1735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1735 | next_opt(datawin, str) | ^ options.c:1770:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1770 | fruitadd(str) | ^ options.c:1859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1859 | choose_classes_menu(prompt, category, way, class_list, class_select) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c pager.c -o pager.o In file included from pager.c:8: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ pager.c:23:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | is_swallow_sym(c) | ^ pager.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | append_str(buf, new_str) | ^ pager.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | lookat(x, y, buf) | ^ pager.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | checkfile(inp, user_typed_name) | ^ pager.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | do_look(quick) | ^ pager.c:648:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 648 | help_menu(sel) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c pickup.c -o pickup.o In file included from pickup.c:9: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ pickup.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | simple_look(otmp, here) | ^ pickup.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | collect_obj_classes(ilets, otmp, here, incl_gold, filter) | ^ pickup.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | query_classes(oclasses, one_at_a_time, everything, action, objs, | ^ pickup.c:210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | check_here(picked_some) | ^ pickup.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | n_or_more(obj) | ^ pickup.c:254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | add_valid_menu_class(c) | ^ pickup.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | all_but_uchain(obj) | ^ pickup.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | allow_all(obj) | ^ pickup.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | allow_category(obj) | ^ pickup.c:311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | is_worn_by_type(otmp) | ^ pickup.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | pickup(what) | ^ pickup.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | autopick(olist, follow, pick_list) | ^ pickup.c:543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | query_objlist(qstr, olist, qflags, pick_list, how, allow) | ^ pickup.c:635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | query_category(qstr, olist, qflags, pick_list, how) | ^ pickup.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | count_categories(olist, qflags) | ^ pickup.c:778:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | long carry_count(obj, container, count, telekinesis, wt_before, wt_after) | ^ pickup.c:908:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | int lift_object(obj, container, cnt_p, telekinesis) | ^ pickup.c:963:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 963 | pickup_object(obj, count, telekinesis) | ^ pickup.c:1079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1079 | pick_obj(otmp) | ^ pickup.c:1241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1241 | mbag_explodes(obj, depthin) | ^ pickup.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 | in_container(obj) | ^ pickup.c:1400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1400 | ck_bag(obj) | ^ pickup.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | out_container(obj) | ^ pickup.c:1470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1470 | use_container(obj, held) | ^ pickup.c:1675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1675 | menu_loot(retry, container, put_in) | ^ pickup.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 | in_or_out_menu(prompt, obj) | ^ 76 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c pline.c -o pline.o In file included from pline.c:6: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ pline.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | You_buf(siz) int siz; { | ^ pline.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | align_str(alignment) | ^ pline.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | mstatusline(mtmp) | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c polyself.c -o polyself.o In file included from polyself.c:13: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ polyself.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | polyman(fmt, arg) | ^ polyself.c:190:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 190 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:190:7: note: treat the string as an argument to avoid this 190 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ polyself.c:214:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 214 | if (tries==5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:214:23: note: treat the string as an argument to avoid this 214 | if (tries==5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ polyself.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | polymon(mntmp) /* returns 1 if polymorph successful */ | ^ polyself.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | drop_weapon(alone) | ^ polyself.c:905:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | body_part(part) | ^ polyself.c:998:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | ugolemeffects(damtype, dam) | ^ polyself.c:1026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1026 | armor_to_dragon(atyp) | ^ 58 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c potion.c -o potion.o In file included from potion.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ potion.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | itimeout(val) | ^ potion.c:31:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | itimeout_incr(old, incr) | ^ potion.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | set_itimeout(which, val) | ^ potion.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | incr_itimeout(which, incr) | ^ potion.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | make_confused(xtime,talk) | ^ potion.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | make_stunned(xtime,talk) | ^ potion.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | make_sick(xtime, cause, talk, type) | ^ potion.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | make_vomiting(xtime, talk) | ^ potion.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | make_blinded(xtime, talk) | ^ potion.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | make_hallucinated(xtime, talk, mask) | ^ potion.c:230:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 230 | if (!Blind && talk) pline(message); | ^~~~~~~ potion.c:230:32: note: treat the string as an argument to avoid this 230 | if (!Blind && talk) pline(message); | ^ | "%s", potion.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | dopotion(otmp) | ^ potion.c:339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | peffects(otmp) | ^ potion.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 | healup(nhp, nxtra, curesick, cureblind) | ^ potion.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 | strange_feeling(obj,txt) | ^ potion.c:762:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 762 | pline(txt); | ^~~ potion.c:762:9: note: treat the string as an argument to avoid this 762 | pline(txt); | ^ | "%s", potion.c:778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | potionhit(mon, obj) | ^ potion.c:936:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | potionbreathe(obj) | ^ potion.c:1041:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1041 | else if (!objects[obj->otyp].oc_name_known && | ^ potion.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 | mixtype(o1, o2) | ^ potion.c:1136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1136 | get_wet(obj) | ^ potion.c:1514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1514 | djinni_from_bottle(obj) | ^ 72 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c pray.c -o pray.o In file included from pray.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ pray.c: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 | fix_worst_trouble(trouble) | ^ pray.c:370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | god_zaps_you(resp_god) | ^ pray.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 | fry_by_god(resp_god) | ^ pray.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | angrygods(resp_god) | ^ pray.c:535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | pleased(g_align) | ^ pray.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | water_prayer(bless_water) | ^ pray.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 | godvoice(g_align, words) | ^ pray.c:873:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | gods_angry(g_align) | ^ pray.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 | gods_upset(g_align) | ^ pray.c:892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 892 | consume_offering(otmp) | ^ pray.c:1104:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1104 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pray.c:1104:8: note: treat the string as an argument to avoid this 1104 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ pray.c:1287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1287 | can_pray(praying) | ^ pray.c:1515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1515 | a_gname_at(x,y) /* returns the name of an altar's deity */ | ^ pray.c:1530:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1530 | align_gname(alignment) | ^ pray.c:1551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1551 | altar_wrath(x, y) | ^ 65 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c priest.c -o priest.o In file included from priest.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ priest.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | move_special(mtmp,in_his_shop,appr,uondoor,avoid,omx,omy,gx,gy) | ^ priest.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | temple_occupied(array) | ^ priest.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | histemple_at(priest, x, y) | ^ priest.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | pri_move(priest) | ^ priest.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | priestini(lvl, sroom, sx, sy, sanctum) | ^ priest.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | priestname(mon, pname) | ^ priest.c:291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | p_coaligned(priest) | ^ priest.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | has_shrine(pri) | ^ priest.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | findpriest(roomno) | ^ priest.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | intemple(roomno) | ^ priest.c:359:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 359 | verbalize(msg1); | ^~~~ priest.c:359:17: note: treat the string as an argument to avoid this 359 | verbalize(msg1); | ^ | "%s", priest.c:360:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 360 | if (msg2) verbalize(msg2); | ^~~~ priest.c:360:27: note: treat the string as an argument to avoid this 360 | if (msg2) verbalize(msg2); | ^ | "%s", priest.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 395 | priest_talk(priest) | ^ priest.c:424:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 424 | verbalize(cranky_msg[rn2(3)]); | ^~~~~~~~~~~~~~~~~~ priest.c:424:16: note: treat the string as an argument to avoid this 424 | verbalize(cranky_msg[rn2(3)]); | ^ | "%s", priest.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | mk_roamer(ptr, alignment, x, y, peaceful) | ^ priest.c:531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | reset_hostility(roamer) | ^ priest.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | in_your_sanctuary(x, y) | ^ priest.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | ghod_hitsu(priest) /* when attacking "priest" in his temple */ | ^ priest.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | restpriest(mtmp, ghostly) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c quest.c -o quest.o In file included from quest.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ quest.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | is_pure(talk) | ^ quest.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | expulsion(seal) | ^ quest.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | leader_speaks(mtmp) | ^ quest.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | quest_chat(mtmp) | ^ quest.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | quest_talk(mtmp) | ^ quest.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 | quest_stat_check(mtmp) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c questpgr.c -o questpgr.o In file included from questpgr.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ questpgr.c:14:18: warning: '/*' within block comment [-Wcomment] 14 | /* #define DEBUG /* uncomment for debugging */ | ^ questpgr.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | Fread(ptr, size, nitems, stream) | ^ questpgr.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | construct_qtlist(hdr_offset) | ^ questpgr.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 | quest_info(typ) | ^ questpgr.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | is_quest_artifact(otmp) | ^ questpgr.c:347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | msg_in(qtm_list, msgnum) | ^ questpgr.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | convert_arg(c) | ^ questpgr.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 | deliver_by_pline(qt_msg) | ^ questpgr.c:496:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 496 | pline(out_line); | ^~~~~~~~ questpgr.c:496:12: note: treat the string as an argument to avoid this 496 | pline(out_line); | ^ | "%s", questpgr.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | deliver_by_window(qt_msg, how) | ^ questpgr.c:519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | com_pager(msgnum) | ^ questpgr.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 | qt_pager(msgnum) | ^ 62 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c read.c -o read.o In file included from read.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from read.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ read.c: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 | stripspe(obj) | ^ read.c:143:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 143 | if (obj->blessed) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:143:26: note: treat the string as an argument to avoid this 143 | if (obj->blessed) pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:150:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 150 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:150:16: note: treat the string as an argument to avoid this 150 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | p_glow1(otmp) | ^ read.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | p_glow2(otmp,color) | ^ read.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | is_chargeable(obj) | ^ read.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | recharge(obj, curse_bless) | ^ read.c:223:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 223 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:223:20: note: treat the string as an argument to avoid this 223 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:284:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 284 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:284:10: note: treat the string as an argument to avoid this 284 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:328:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 328 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:328:20: note: treat the string as an argument to avoid this 328 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | forget_single_object(obj_id) | ^ read.c:403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | randomize(indices, count) | ^ read.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | forget_objects(percent) | ^ read.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 | forget_map(howmuch) | ^ read.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 | forget_levels(percent) | ^ read.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 | forget(howmuch) | ^ read.c:556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | seffects(sobj) | ^ read.c:1010:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1010 | wand_explode(obj) | ^ read.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 | set_lit(x,y,val) | ^ read.c:1037:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1037 | litroom(on,obj) | ^ read.c:1134:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1134 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1134:10: note: treat the string as an argument to avoid this 1134 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ read.c:1241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1241 | do_genocide(how) | ^ read.c:1261:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1261 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1261:13: note: treat the string as an argument to avoid this 1261 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ read.c:1352:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1352 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1352:9: note: treat the string as an argument to avoid this 1352 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:1357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1357 | punish(sobj) | ^ read.c:1404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1404 | cant_create(mtype) | ^ read.c:1433:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1433 | if (tries == 5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1433:24: note: treat the string as an argument to avoid this 1433 | if (tries == 5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ 77 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c rect.c -o rect.o In file included from rect.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ rect.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | get_rect_ind(r) | ^ rect.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | get_rect(r) | ^ rect.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | intersect(r1, r2, r3) | ^ rect.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | remove_rect(r) | ^ rect.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | add_rect(r) | ^ rect.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | split_rects(r1, r2) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c restore.c -o restore.o In file included from restore.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ restore.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | restlevchn(fd) | ^ restore.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | restdamage(fd, ghostly) | ^ restore.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | restobjchn(fd, ghostly, frozen) | ^ restore.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | restmonchn(fd, ghostly) | ^ restore.c:300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | loadfruitchn(fd) | ^ restore.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | freefruitchn(flist) | ^ restore.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | ghostfruit(otmp) | ^ restore.c:344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | restgamestate(fd, mid) | ^ restore.c:434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | restlevelstate(mid) | ^ restore.c:449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | restlevelfile(fd, ltmp) | ^ restore.c:507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | dorecover(fd) | ^ restore.c:630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 630 | getlev(fd, pid, lev, ghostly) | ^ restore.c:857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | add_id_mapping(gid, nid) | ^ restore.c:882:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | lookup_id_mapping(gid, nidp) | ^ restore.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | mread(fd, buf, len) | ^ 65 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c rip.c -o rip.o In file included from rip.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ rip.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | center(line, text) | ^ rip.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | genl_outrip(tmpwin, how) | ^ 52 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c rnd.c -o rnd.o In file included from rnd.c:4: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ rnd.c:22:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | rn2(x) /* 0 <= rn2(x) < x */ | ^ rnd.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | rnl(x) /* 0 <= rnl(x) < x; sometimes subtracting Luck */ | ^ rnd.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | rnd(x) /* 1 <= rnd(x) <= x */ | ^ rnd.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | d(n,x) /* n <= d(n,x) <= (n*x) */ | ^ rnd.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | rne(x) | ^ rnd.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | rnz(i) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c rumors.c -o rumors.o In file included from rumors.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ rumors.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | init_rumors(fp) | ^ rumors.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | getrumor(truth, rumor_buf) | ^ rumors.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | outrumor(truth, cookie) | ^ rumors.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | init_oracles(fp) | ^ rumors.c:177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | save_oracles(fd, mode) | ^ rumors.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | restore_oracles(fd) | ^ rumors.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | outoracle(special) | ^ rumors.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | doconsult(oracl) | ^ 58 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c save.c -o save.o In file included from save.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from save.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ save.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | hangup(sig_unused) /* called as signal() handler, so sent at least one arg */ | ^ save.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | savegamestate(fd, mode) | ^ save.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | savelev(fd,lev,mode) | ^ save.c:624:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | bufon(fd) | ^ save.c:638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | bufoff(fd) | ^ save.c:646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | bflush(fd) | ^ save.c:659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 659 | bwrite(fd,loc,num) | ^ save.c:699:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | bclose(fd) | ^ save.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | savelevchn(fd, mode) | ^ save.c:738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | savedamage(fd, mode) | ^ save.c:763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | saveobjchn(fd, otmp, mode) | ^ save.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | savemonchn(fd, mtmp, mode) | ^ save.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | savetrapchn(fd, trap, mode) | ^ save.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | savefruitchn(fd, mode) | ^ 64 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c shk.c -o shk.o In file included from shk.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ shk.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | next_shkp(shkp, withbill) | ^ shk.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 | shkname(mtmp) /* called in do_name.c */ | ^ shk.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | shkgone(mtmp) /* called in mon.c */ | ^ shk.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 | set_residency(shkp, zero_out) | ^ shk.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | replshk(mtmp,mtmp2) | ^ shk.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 | restshk(shkp, ghostly) | ^ shk.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 | clear_unpaid(list) | ^ shk.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | setpaid(shkp) /* either you paid or left the shop or the shopkeeper died */ | ^ shk.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | addupbill(shkp) | ^ shk.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 | call_kops(shkp, nearshop) | ^ shk.c:280:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | inside_shop(x, y) | ^ shk.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | u_left_shop(leavestring, newlev) | ^ shk.c:362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | u_entered_shop(enterstring) | ^ shk.c:460:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | boolean same_price(obj1, obj2) | ^ shk.c:492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | shop_debt(eshkp) | ^ shk.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 | inhishop(mtmp) | ^ shk.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | shop_keeper(rmno) | ^ shk.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | tended_shop(sroom) | ^ shk.c:582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | onbill(obj, shkp, silent) | ^ shk.c:603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | delete_contents(obj) | ^ shk.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 | obfree(obj, merge) | ^ shk.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 | check_credit(tmp, shkp) | ^ shk.c:682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | pay(tmp,shkp) | ^ shk.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | home_shk(shkp, killkops) | ^ shk.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 | pacify_shk(shkp) | ^ shk.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 | rile_shk(shkp) | ^ shk.c:771:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 771 | make_happy_shk(shkp, silentkops) | ^ shk.c:813:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 813 | hot_pursuit(shkp) | ^ shk.c:828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | make_angry_shk(shkp, ox, oy) | ^ shk.c:869:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | cheapest_item(shkp) /* delivers the cheapest item on the list */ | ^ shk.c:1087:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1087 | pline(sbuf); | ^~~~ shk.c:1087:9: note: treat the string as an argument to avoid this 1087 | pline(sbuf); | ^ | "%s", shk.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 | dopayobj(shkp, bp, obj_p, which, itemize) | ^ shk.c:1300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1300 | paybill(croaked) | ^ shk.c:1334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1334 | inherits(shkp, numsk, croaked) | ^ shk.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 | set_repo_loc(eshkp) | ^ shk.c:1465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1465 | bp_to_obj(bp) | ^ shk.c:1484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1484 | find_oid(id) | ^ shk.c:1513:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1513 | get_cost(obj, shkp) | ^ shk.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 | contained_cost(obj, shkp, price, usell) | ^ shk.c:1594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1594 | contained_gold(obj) | ^ shk.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 | dropped_container(obj, shkp, sale) | ^ shk.c:1631:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1631 | picked_container(obj) | ^ shk.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 | set_cost(obj, shkp) | ^ shk.c:1690:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1690 | unpaid_cost(unp_obj) | ^ shk.c:1707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | add_one_tobill(obj, dummy) | ^ shk.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 | add_to_billobjs(obj) | ^ shk.c:1765:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1765 | bill_box_content(obj, ininv, dummy, shkp) | ^ shk.c:1786:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1786 | shk_names_obj(shkp, obj, fmt, amt, arg) | ^ shk.c:1821:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1821 | addtobill(obj, ininv, dummy, silent) | ^ shk.c:1929:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1929 | splitbill(obj, otmp) | ^ shk.c:1967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1967 | sub_one_frombill(obj, shkp) | ^ shk.c:2010:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2010 | subfrombill(obj, shkp) | ^ shk.c:2033:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2033 | stolen_container(obj, shkp, price, ininv) | ^ shk.c:2078:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2078 | stolen_value(obj, x, y, peaceful, silent) | ^ shk.c:2138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2138 | sellobj_state(deliberate) /* called from dodrop(do.c) and doddrop() */ | ^ shk.c:2152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2152 | sellobj(obj, x, y) | ^ shk.c:2361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2361 | doinvbill(mode) | ^ shk.c:2451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2451 | getprice(obj, shk_buying) | ^ shk.c:2486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2486 | shkcatch(obj, x, y) | ^ shk.c:2516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2516 | add_damage(x, y, cost) | ^ shk.c:2564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2564 | remove_damage(shkp, croaked) | ^ shk.c:2659:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2659 | repair_damage(shkp, tmp_dam, catchup) | ^ shk.c:2787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2787 | shk_move(shkp) | ^ shk.c:2887:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2887 | is_fshk(mtmp) | ^ shk.c:2895:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2895 | shopdig(fall) | ^ shk.c:2945:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2945 | makekops(mm) | ^ shk.c:2971:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2971 | pay_for_damage(dmgstr) | ^ shk.c:3121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3121 | costly_spot(x, y) | ^ shk.c:3140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3140 | shop_object(x, y) | ^ shk.c:3160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3160 | price_quote(first_obj) | ^ shk.c:3209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3209 | shk_embellish(itm, cost) | ^ shk.c:3254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3254 | shk_chat(shkp) | ^ shk.c:3296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3296 | kops_gone(silent) | ^ shk.c:3319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3319 | cost_per_charge(shkp, otmp) | ^ shk.c:3363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3363 | check_unpaid(otmp) | ^ shk.c:3397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3397 | costly_gold(x, y, amount) | ^ shk.c:3434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3434 | block_door(x,y) | ^ shk.c:3466:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3466 | block_entry(x,y) | ^ shk.c:3503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3503 | shk_your(buf, obj) | ^ shk.c:3513:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3513 | Shk_Your(buf, obj) | ^ shk.c:3523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3523 | shk_owns(buf, obj) | ^ shk.c:3540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3540 | mon_owns(buf, obj) | ^ 132 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c shknam.c -o shknam.o In file included from shknam.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ shknam.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | mkshobj_at(shp, sx, sy) | ^ shknam.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | nameshk(shk, nlp) | ^ shknam.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | shkinit(shp, sroom) /* create a new shopkeeper in the given room */ | ^ shknam.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 | stock_room(shp_indx, sroom) | ^ shknam.c:482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | saleable(shkp, obj) | ^ shknam.c:500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | get_shop_item(type) | ^ 56 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c sit.c -o sit.o In file included from sit.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 50 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c sounds.c -o sounds.o In file included from sounds.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ sounds.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | mon_in_room(mon, rmtyp) | ^ sounds.c:51:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 51 | You_hear(fountain_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:51:11: note: treat the string as an argument to avoid this 51 | You_hear(fountain_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:60:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 60 | You_hear(sink_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:60:11: note: treat the string as an argument to avoid this 60 | You_hear(sink_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:78:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 78 | if (which != 2) You_hear(throne_msg[which]); | ^~~~~~~~~~~~~~~~~ sounds.c:78:28: note: treat the string as an argument to avoid this 78 | if (which != 2) You_hear(throne_msg[which]); | ^ | "%s", sounds.c:89:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 89 | You(swamp_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:89:6: note: treat the string as an argument to avoid this 89 | You(swamp_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:192:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 192 | You_hear(barracks_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:192:12: note: treat the string as an argument to avoid this 192 | You_hear(barracks_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:205:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 205 | You_hear(zoo_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~ sounds.c:205:12: note: treat the string as an argument to avoid this 205 | You_hear(zoo_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:222:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 222 | You_hear(shop_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:222:15: note: treat the string as an argument to avoid this 222 | You_hear(shop_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:240:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 240 | You_hear(ora_msg[rn2(3)+hallu*2]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:240:15: note: treat the string as an argument to avoid this 240 | You_hear(ora_msg[rn2(3)+hallu*2]); | ^ | "%s", sounds.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | growl_sound(mtmp) | ^ sounds.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | growl(mtmp) | ^ sounds.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | yelp(mtmp) | ^ sounds.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 | whimper(mtmp) | ^ sounds.c:390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | beg(mtmp) | ^ sounds.c:403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | domonnoise(mtmp) | ^ sounds.c:698:35: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 698 | else if (verbl_msg) verbalize(verbl_msg); | ^~~~~~~~~ sounds.c:698:35: note: treat the string as an argument to avoid this 698 | else if (verbl_msg) verbalize(verbl_msg); | ^ | "%s", 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c sp_lev.c -o sp_lev.o In file included from sp_lev.c:12: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ sp_lev.c:14:18: warning: '/*' within block comment [-Wcomment] 14 | /* #define DEBUG /* uncomment to enable code debugging */ | ^ sp_lev.c: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 | set_wall_property(x1,y1,x2,y2, prop) | ^ sp_lev.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | get_location(x, y, humidity) | ^ sp_lev.c:209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | is_ok_location(x, y, humidity) | ^ sp_lev.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 | sp_lev_shuffle(list1, list2, n) | ^ sp_lev.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | get_room_loc(x,y, croom) | ^ sp_lev.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 | get_free_room_loc(x,y, croom) | ^ sp_lev.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 | check_room(lowx, ddx, lowy, ddy, vault) | ^ sp_lev.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | create_room(x,y,w,h,xal,yal,rtype,rlit) | ^ sp_lev.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | create_subroom(proom, x, y, w, h, rtype, rlit) | ^ sp_lev.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | create_door(dd, broom) | ^ sp_lev.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 | create_secret_door(croom, walls) | ^ sp_lev.c:707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | create_trap(t,croom) | ^ sp_lev.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 | create_monster(m,croom) | ^ sp_lev.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 | create_object(o,croom) | ^ sp_lev.c:948:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 948 | else | ^ sp_lev.c:1019:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | create_engraving(e, croom) | ^ sp_lev.c:1041:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1041 | create_stairs(s,croom) | ^ sp_lev.c:1057:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | create_altar(a, croom) | ^ sp_lev.c:1123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1123 | create_gold(g,croom) | ^ sp_lev.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 | create_feature(fx, fy, croom, typ) | ^ sp_lev.c:1186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1186 | search_door(croom,x,y,wall,cnt) | ^ sp_lev.c:1239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1239 | dig_corridor(org,dest,nxcor,ftyp,btyp) | ^ sp_lev.c:1349:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1349 | register i; | ~~~~~~~~ ^ | int sp_lev.c:1389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | create_corridor(c) | ^ sp_lev.c:1431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1431 | fill_room(croom, prefilled) | ^ sp_lev.c:1492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1492 | free_rooms(ro, n) | ^ sp_lev.c:1564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1564 | build_room(r, pr) | ^ sp_lev.c:1645:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1645 | light_region(tmpregion) | ^ sp_lev.c:1671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1671 | load_common_data(fd, typ) | ^ sp_lev.c:1717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1717 | load_one_monster(fd, m) | ^ sp_lev.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 | load_one_object(fd, o) | ^ sp_lev.c:1755:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1755 | load_one_engraving(fd, e) | ^ sp_lev.c:1769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1769 | load_rooms(fd) | ^ sp_lev.c:1999:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1999 | maze1xy(m, humidity) | ^ sp_lev.c:2025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2025 | load_maze(fd) | ^ sp_lev.c:2074:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2074 | } else { | ^ sp_lev.c:2522:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2522 | else | ^ sp_lev.c:2585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2585 | load_special(name) | ^ 89 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c spell.c -o spell.o In file included from spell.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ spell.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | cursed_book(lev) | ^ spell.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 | deadbook(book2) | ^ spell.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 | study_book(spellbook) | ^ spell.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | getspell(spell_no) | ^ spell.c:519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | spelleffects(spell, atme) | ^ spell.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | dospellmenu(how, spell_no) | ^ spell.c:764:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | percent_success(spell) | ^ 57 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c steal.c -o steal.o In file included from steal.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ steal.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | equipname(otmp) | ^ steal.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | stealgold(mtmp) | ^ steal.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | lose_worn_item(obj) | ^ steal.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | steal(mtmp) | ^ steal.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | mpickobj(mtmp,otmp) | ^ steal.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | stealamulet(mtmp) | ^ steal.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | relobj(mtmp,show,is_pet) | ^ 57 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c teleport.c -o teleport.o In file included from teleport.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ teleport.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | goodpos(x, y, mtmp, mdat) | ^ teleport.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | enexto(cc, xx, yy, mdat) | ^ teleport.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | tele_jump_ok(x1, y1, x2, y2) | ^ teleport.c:169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | teleok(x, y, trapok) | ^ teleport.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | teleds(nux, nuy) | ^ teleport.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | teleport_pet(mtmp) | ^ teleport.c:426:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 426 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:426:7: note: treat the string as an argument to avoid this 426 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:487:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 487 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:487:7: note: treat the string as an argument to avoid this 487 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:504:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 504 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:504:7: note: treat the string as an argument to avoid this 504 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:510:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 510 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:510:7: note: treat the string as an argument to avoid this 510 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | domagicportal(ttmp) | ^ teleport.c:604:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 604 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:604:7: note: treat the string as an argument to avoid this 604 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 630 | tele_trap(trap) | ^ teleport.c:638:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 638 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:638:7: note: treat the string as an argument to avoid this 638 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:285:28: note: expanded from macro 'shudder_for_moment' 285 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:648:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 648 | level_tele_trap(trap) | ^ teleport.c:672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | rloc_pos_ok(x, y, mtmp) | ^ teleport.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | rloc_to(mtmp, x, y) | ^ teleport.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | rloc(mtmp) | ^ teleport.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 809 | mvault_tele(mtmp) | ^ teleport.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | tele_restrict(mon) | ^ teleport.c:837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 837 | mtele_trap(mtmp, trap, in_sight) | ^ teleport.c:868:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | mlevel_tele_trap(mtmp, trap, in_sight) | ^ teleport.c:937:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 937 | rloco(obj) | ^ 73 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c timeout.c -o timeout.o In file included from timeout.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ timeout.c:32:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 32 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:32:9: note: treat the string as an argument to avoid this 32 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^ | "%s", timeout.c:56:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 56 | pline(vomiting_texts[SIZE(vomiting_texts) - i - 1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:56:9: note: treat the string as an argument to avoid this 56 | pline(vomiting_texts[SIZE(vomiting_texts) - i - 1]); | ^ | "%s", timeout.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | fall_asleep(how_long, wakeup_msg) | ^ timeout.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 | attach_egg_hatch_timeout(egg) | ^ timeout.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | kill_egg(egg) | ^ timeout.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | hatch_egg(arg, timeout) | ^ timeout.c:465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | learn_egg_type(mnum) | ^ timeout.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | see_lamp_flicker(obj, tailer) | ^ timeout.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 | lantern_message(obj) | ^ timeout.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 | burn_object(arg, timeout) | ^ timeout.c:868:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | begin_burn(obj, already_lit) | ^ timeout.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 | end_burn(obj, timer_attached) | ^ timeout.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 | kind_name(kind) | ^ timeout.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 | print_queue(win, base) | ^ timeout.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 | start_timer(when, kind, func_index, arg) | ^ timeout.c:1272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1272 | stop_timer(func_index, arg) | ^ timeout.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 | obj_move_timers(src, dest) | ^ timeout.c:1318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1318 | obj_split_timers(src, dest) | ^ timeout.c:1338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1338 | obj_stop_timers(obj) | ^ timeout.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 | insert_timer(gnu) | ^ timeout.c:1378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | remove_timer(base, func_index, arg) | ^ timeout.c:1419:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 1419 | timer->arg = (genericptr_t)((struct obj *)timer->arg)->o_id; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1433:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 1433 | timer->arg = (genericptr_t)((struct monst *)timer->arg)->m_id; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1400 | write_timer(fd, timer) | ^ timeout.c:1453:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1453 | obj_is_local(obj) | ^ timeout.c:1474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1474 | mon_is_local(mon) | ^ timeout.c:1493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1493 | timer_is_local(timer) | ^ timeout.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 | maybe_write_timer(fd, range, write_it) | ^ timeout.c:1557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1557 | save_timers(fd, mode, range) | ^ timeout.c:1596:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1596 | restore_timers(fd, range, ghostly, adjust) | ^ timeout.c:1621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1621 | relink_timers(ghostly) | ^ timeout.c:1631:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1631 | if (!lookup_id_mapping((unsigned)curr->arg, &nid)) | ^~~~~~~~~~~~~~~~~~~ timeout.c:1634:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1634 | nid = (unsigned) curr->arg; | ^~~~~~~~~~~~~~~~~~~~ 83 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c topten.c -o topten.o In file included from topten.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ topten.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | topten_print(x) | ^ topten.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | topten_print_bold(x) | ^ topten.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | observable_depth(lev) | ^ topten.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | readentry(rfile,tt) | ^ topten.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | writeentry(rfile,tt) | ^ topten.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | free_ttlist(tt) | ^ topten.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | topten(how) | ^ topten.c:280:18: warning: call to undeclared function 'yyyymmdd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 280 | t0->birthdate = yyyymmdd(u.ubirthday); | ^ topten.c:498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | outentry(rank, t1, so) | ^ topten.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 | score_wanted(current_ver, rank, t1, playerct, players, uid) | ^ topten.c:667:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | prscore(argc,argv) | ^ topten.c:798:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 798 | classmon(plch, fem) | ^ topten.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | tt_oname(otmp) | ^ 63 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c track.c -o track.o In file included from track.c:6: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from track.c:6: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ track.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | gettrack(x, y) | ^ 51 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c trap.c -o trap.o In file included from trap.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ trap.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | rust_dmg(otmp, ostr, type, print) | ^ trap.c: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 | grease_protect(otmp,ostr,plu) | ^ trap.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | maketrap(x,y,typ) | ^ trap.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | fall_through(td) | ^ trap.c:277:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 277 | You(dont_fall); | ^~~~~~~~~ trap.c:277:10: note: treat the string as an argument to avoid this 277 | You(dont_fall); | ^ | "%s", trap.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 | activate_statue_trap(trap, x, y, shatter) | ^ trap.c:356:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | dotrap(trap) | ^ trap.c:764:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | blow_up_landmine(trap) | ^ trap.c:790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | launch_obj(otyp, x1, y1, x2, y2, style) | ^ trap.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | seetrap(trap) | ^ trap.c:926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 926 | mkroll_launch(ttmp, x, y, otyp, ocount) | ^ trap.c:988:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 988 | isclearpath(cc,distance,dx,dy) | ^ trap.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 | mintrap(mtmp) | ^ trap.c:1398:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1398 | instapetrify(str) | ^ trap.c:1411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1411 | minstapetrify(mon,byplayer) | ^ trap.c:1429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1429 | selftouch(arg) | ^ trap.c:1439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1439 | mselftouch(mon,arg,byplayer) | ^ trap.c:1492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1492 | fill_pit(x, y) | ^ trap.c:1507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1507 | float_down(override_mask) | ^ trap.c:1592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1592 | dofiretrap(box) | ^ trap.c:1732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1732 | water_damage(obj, force, here) | ^ trap.c:1791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1791 | emergency_disrobe(lostsome) | ^ trap.c:1891:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1891 | else | ^ trap.c:1966:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1966 | drain_en(n) | ^ trap.c:2006:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2006 | untrap_prob(ttmp) | ^ trap.c:2026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2026 | cnv_trap_obj(otyp, cnt, ttmp) | ^ trap.c:2044:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2044 | move_into_trap(ttmp) | ^ trap.c:2070:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2070 | try_disarm(ttmp, force_failure) | ^ trap.c:2119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2119 | reward_untrap(ttmp, mtmp) | ^ trap.c:2139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2139 | disarm_beartrap(ttmp) /* Helge Hafting */ | ^ trap.c:2162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2162 | disarm_landmine(ttmp) /* Helge Hafting */ | ^ trap.c:2178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2178 | disarm_squeaky_board(ttmp) | ^ trap.c:2212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2212 | disarm_shooting_trap(ttmp, otyp) | ^ trap.c:2227:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2227 | try_lift(mtmp, ttmp, wt, stuff) | ^ trap.c:2250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2250 | help_monster_out(mtmp, ttmp) | ^ trap.c:2315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2315 | untrap(force) | ^ trap.c:2473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2473 | chest_trap(obj, bodypart, disarm) | ^ trap.c:2638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2638 | t_at(x,y) | ^ trap.c:2653:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2653 | deltrap(trap) | ^ trap.c:2667:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2667 | boolean delfloortrap(ttmp) | ^ trap.c:2701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2701 | b_trapped(item, bodypart) | ^ trap.c:2719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2719 | thitm(tlev, mon, obj, d_override) | ^ 92 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c u_init.c -o u_init.o In file included from u_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ u_init.c:384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | knows_object(obj) | ^ u_init.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 | knows_class(sym) | ^ u_init.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | role_index(pc) | ^ u_init.c:701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | ini_inv(trop) | ^ 54 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c uhitm.c -o uhitm.o In file included from uhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ uhitm.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | attack_checks(mtmp, wep) | ^ uhitm.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | find_roll_to_hit(mtmp) | ^ uhitm.c:132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | attack(mtmp) | ^ uhitm.c:199:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 199 | else if (!cantwield(uasmon)) | ^ uhitm.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | known_hitum(mon, mhit, uattk) /* returns TRUE if monster still lives */ | ^ uhitm.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | hitum(mon, tmp, uattk) /* returns TRUE if monster still lives */ | ^ uhitm.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 | hmon(mon, obj, thrown) /* return TRUE if mon still alive */ | ^ uhitm.c:523:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 523 | else | ^ uhitm.c:798:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 798 | m_slips_free(mdef, mattk) | ^ uhitm.c:853:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | steal_it(mdef, mattk) | ^ uhitm.c:933:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 933 | damageum(mdef, mattk) | ^ uhitm.c:1199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1199 | explum(mdef, mattk) | ^ uhitm.c:1245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1245 | start_engulf(mdef) | ^ uhitm.c:1268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1268 | gulpum(mdef,mattk) | ^ uhitm.c:1323:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1323 | } else pline(msgbuf); | ^~~~~~ uhitm.c:1323:17: note: treat the string as an argument to avoid this 1323 | } else pline(msgbuf); | ^ | "%s", uhitm.c:1402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1402 | missum(mdef,mattk) | ^ uhitm.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 | hmonas(mon, tmp) /* attack monster as a monster. */ | ^ uhitm.c:1524:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1524 | } else if(i >= 2 && sum[i-1] && sum[i-2]) { | ^ uhitm.c:1592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1592 | passive(mon, mhit, malive, kicked) | ^ uhitm.c:1651:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1651 | } else | ^ uhitm.c:1765:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1765 | stumble_onto_mimic(mtmp) | ^ uhitm.c:1788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1788 | nohandglow(mon) | ^ uhitm.c:1809:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1809 | int flash_hits_mon(mtmp, otmp) | ^ 73 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c vault.c -o vault.o In file included from vault.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ vault.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | clear_fcorr(grd, forceshow) | ^ vault.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | restfakecorr(grd) | ^ vault.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | grddead(grd) /* called in mon.c */ | ^ vault.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | in_fcorridor(grd, x, y) | ^ vault.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | vault_occupied(array) | ^ vault.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | move_gold(gold, vroom) | ^ vault.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | wallify_vault(grd) | ^ vault.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | gd_move(grd) | ^ vault.c:501:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 501 | } else { | ^ 59 warnings generated. ./makedefs -z cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c vision.c -o vision.o In file included from vision.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ vision.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | does_block(x,y,lev) | ^ vision.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | get_unused_cs(rows, rmin, rmax) | ^ vision.c:299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | rogue_vision(next, rmin, rmax) | ^ vision.c:351:25: warning: '/*' within block comment [-Wcomment] 351 | /*#define EXTEND_SPINE /* possibly better looking wall-angle */ | ^ vision.c:491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | vision_recalc(control) | ^ vision.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | block_point(x,y) | ^ vision.c:817:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 817 | unblock_point(x,y) | ^ vision.c:877:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 877 | dig_point(row,col) | ^ vision.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | fill_point(row,col) | ^ vision.c:1478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1478 | clear_path(col1,row1,col2,row2) | ^ vision.c:2159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2159 | right_side(row, left, right_mark, limits) | ^ vision.c:2341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2341 | left_side(row, left_mark, right, limits) | ^ vision.c:2463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2463 | view_from(srow, scol, loc_cs_rows, left_most, right_most, range, func, arg) | ^ vision.c:2558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2558 | do_clear_area(scol,srow,range,func,arg) | ^ 64 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c vis_tab.c -o vis_tab.o In file included from vis_tab.c:2: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from vis_tab.c:2: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from vis_tab.c:2: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from vis_tab.c:2: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from vis_tab.c:2: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 48 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c weapon.c -o weapon.o In file included from weapon.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ weapon.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | hitval(otmp, mon) | ^ weapon.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | dmgval(otmp, mon) | ^ weapon.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 | oselect(mtmp, x) | ^ weapon.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 | select_rwep(mtmp) /* select a ranged weapon for the monster */ | ^ weapon.c:372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | select_hwep(mtmp) /* select a hand to hand weapon for the monster */ | ^ weapon.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 | possibly_unwield(mon) | ^ weapon.c:459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | mon_wield_item(mon) | ^ weapon.c:591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | skill_level_name(skill, buf) | ^ weapon.c:613:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | slots_required(skill) | ^ weapon.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 | can_advance(skill) | ^ weapon.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | skill_advance(skill) | ^ weapon.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 | unrestrict_weapon_skill(skill) | ^ weapon.c:762:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | use_skill(skill) | ^ weapon.c:776:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 776 | add_weapon_skill(n) | ^ weapon.c:791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | lose_weapon_skill(n) | ^ weapon.c:815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | weapon_type(obj) | ^ weapon.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 | weapon_hit_bonus(weapon) | ^ weapon.c:950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | weapon_dam_bonus(weapon) | ^ weapon.c:981:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | skill_init(class_skill) | ^ 69 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c were.c -o were.o In file included from were.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from were.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ were.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | were_change(mon) | ^ were.c: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 | counter_were(pm) | ^ were.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 | new_were(mon) | ^ were.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | were_summon(ptr,yours) /* were-creature (even you) summons a horde */ | ^ were.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | you_unwere(purify) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c wield.c -o wield.o In file included from wield.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ wield.c: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 | setuwep(obj) | ^ wield.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 | erode_weapon(acid_dmg) | ^ wield.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 | chwepon(otmp, amount) | ^ wield.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 | welded(obj) | ^ wield.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | weldmsg(obj) | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c windows.c -o windows.o In file included from windows.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ windows.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | def_raw_print(s) | ^ windows.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | choose_windows(s) | ^ windows.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | genl_message_menu(let, how, mesg) | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c wizard.c -o wizard.o In file included from wizard.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ wizard.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | mon_has_amulet(mtmp) | ^ wizard.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 | mon_has_special(mtmp) | ^ wizard.c:132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | which_arti(mask) | ^ wizard.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 | mon_has_arti(mtmp, otyp) | ^ wizard.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 | other_mon_has_arti(mtmp, otyp) | ^ wizard.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | on_ground(otyp) | ^ wizard.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 | you_have(mask) | ^ wizard.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 | target_on(mask, mtmp) | ^ wizard.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | strategy(mtmp) | ^ wizard.c:290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | tactics(mtmp) | ^ wizard.c:396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | nasty(mcast) | ^ wizard.c:556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | cuss(mtmp) | ^ 62 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c worm.c -o worm.o In file included from worm.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ worm.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | initworm(worm, wseg_count) | ^ worm.c:118:24: warning: '/*' within block comment [-Wcomment] 118 | /* if (!wnum) return; /* bullet proofing */ | ^ worm.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | toss_wsegs(curr, display_update) | ^ worm.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | shrink_worm(wnum) | ^ worm.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | worm_move(worm) | ^ worm.c:203:24: warning: '/*' within block comment [-Wcomment] 203 | /* if (!wnum) return; /* bullet proofing */ | ^ worm.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | worm_nomove(worm) | ^ worm.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | wormgone(worm) | ^ worm.c:268:24: warning: '/*' within block comment [-Wcomment] 268 | /* if (!wnum) return; /* bullet proofing */ | ^ worm.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | wormhitu(worm) | ^ worm.c:294:24: warning: '/*' within block comment [-Wcomment] 294 | /* if (!wnum) return; /* bullet proofing */ | ^ worm.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | cutworm(worm, x, y, weap) | ^ worm.c:440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | see_wsegs(worm) | ^ worm.c:445:32: warning: '/*' within block comment [-Wcomment] 445 | /* if (!mtmp->wormno) return; /* bullet proofing */ | ^ worm.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | save_worm(fd, mode) | ^ worm.c:507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | rest_worm(fd) | ^ worm.c:540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | place_wsegs(worm) | ^ worm.c:545:32: warning: '/*' within block comment [-Wcomment] 545 | /* if (!mtmp->wormno) return; /* bullet proofing */ | ^ worm.c:562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | remove_worm(worm) | ^ worm.c:567:32: warning: '/*' within block comment [-Wcomment] 567 | /* if (!mtmp->wormno) return; /* bullet proofing */ | ^ worm.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | place_worm_tail_randomly(worm, x, y) | ^ worm.c:595:24: warning: '/*' within block comment [-Wcomment] 595 | /* if (!wnum) return; /* bullet proofing */ | ^ worm.c:643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | random_dir(x, y, nx, ny) | ^ worm.c:678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | count_wsegs(mtmp) | ^ worm.c:684:34: warning: '/*' within block comment [-Wcomment] 684 | /* if (!mtmp->wormno) return 0; /* bullet proofing */ | ^ worm.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | create_worm_tail(num_segs) | ^ worm.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | worm_known(worm) | ^ 77 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c worn.c -o worn.o In file included from worn.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ worn.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | setworn(obj, mask) | ^ worn.c:90:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | setnotworn(obj) | ^ worn.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 | mon_set_minvis(mon) | ^ worn.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 | update_mon_intrinsics(mon, obj, on) | ^ worn.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | find_mac(mon) | ^ worn.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 | m_dowear(mon, creation) | ^ worn.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | m_dowear_type(mon, flag, creation) | ^ worn.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | which_armor(mon, flag) | ^ worn.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | m_lose_armor(mon, obj) | ^ worn.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | mon_break_armor(mon) | ^ worn.c:398:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 398 | else | ^ worn.c:409:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 409 | else | ^ 62 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c write.c -o write.o In file included from write.c:4: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from write.c:4: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ write.c:12:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | cost(otmp) | ^ write.c: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 | dowrite(pen) | ^ 52 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c zap.c -o zap.o In file included from zap.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ zap.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | bhitm(mtmp, otmp) | ^ zap.c:137:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 137 | else mtmp->mspeed = MFAST; | ^ zap.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 | probe_monster(mtmp) | ^ zap.c:281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | get_obj_location(obj, xp, yp, locflags) | ^ zap.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | get_mon_location(mon, xp, yp, locflags) | ^ zap.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | revive(obj) | ^ zap.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 | revive_egg(obj) | ^ zap.c:452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | unturn_dead(mon) | ^ zap.c:492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | costly_cancel(obj) | ^ zap.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | cancel_item(obj) | ^ zap.c:561:27: warning: '/*' within block comment [-Wcomment] 561 | /* case RIN_PROTECTION: /* not needed */ | ^ zap.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 | obj_resists(obj, ochance, achance) | ^ zap.c:635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | obj_shudders(obj) | ^ zap.c:663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | polyuse(objhdr, mat, minwt) | ^ zap.c:678:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 678 | else | ^ zap.c:692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | create_polymon(obj) | ^ zap.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | do_osshock(obj) | ^ zap.c:782:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 782 | else | ^ zap.c:791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | poly_obj(obj) | ^ zap.c:922:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | bhito(obj, otmp) /* object obj was hit by the effect of wand otmp */ | ^ zap.c:1051:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | bhitpile(obj,fhito,tx,ty) | ^ zap.c:1100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | zappable(wand) | ^ zap.c:1116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1116 | zapnodir(obj) | ^ zap.c:1154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1154 | backfire(otmp) | ^ zap.c:1178:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1178 | if(!zappable(obj)) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:1178:27: note: treat the string as an argument to avoid this 1178 | if(!zappable(obj)) pline(nothing_happens); | ^ | "%s", ../include/decl.h:282:28: note: expanded from macro 'nothing_happens' 282 | #define nothing_happens c_common_strings.c_nothing_happens | ^ zap.c:1213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1213 | zapyourself(obj, ordinary) | ^ zap.c:1448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | cancel_monst(mdef, obj, youattack, allow_cancel_kill, self_cancel) | ^ zap.c:1503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1503 | zap_updown(obj) | ^ zap.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 | weffects(obj) | ^ zap.c:1666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1666 | exclam(force) | ^ zap.c:1676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1676 | hit(str,mtmp,force) | ^ zap.c:1687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1687 | miss(str,mtmp) | ^ zap.c:1714:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1714 | bhit(ddx,ddy,range,weapon,fhitm,fhito,obj) | ^ zap.c:1858:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1858 | boomhit(dx, dy) | ^ zap.c:1915:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1915 | zhitm(mon, type, nd, ootmp) /* returns damage to mon */ | ^ zap.c:2039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2039 | zhitu(type, nd, fltxt, sx, sy) | ^ zap.c:2165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2165 | burn_floor_paper(x, y, give_feedback) | ^ zap.c:2206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2206 | zap_hit(ac) | ^ zap.c:2228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2228 | buzz(type,nd,sx,sy,dx,dy) | ^ zap.c:2457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2457 | melt_ice(x, y) | ^ zap.c:2499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2499 | zap_over_floor(x, y, type, shopdamage) | ^ zap.c:2525:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2525 | Norep(msgtxt); | ^~~~~~ zap.c:2525:9: note: treat the string as an argument to avoid this 2525 | Norep(msgtxt); | ^ | "%s", zap.c:2648:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2648 | pline(see_txt); | ^~~~~~~ zap.c:2648:10: note: treat the string as an argument to avoid this 2648 | pline(see_txt); | ^ | "%s", zap.c:2651:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2651 | You(sense_txt); | ^~~~~~~~~ zap.c:2651:8: note: treat the string as an argument to avoid this 2651 | You(sense_txt); | ^ | "%s", zap.c:2653:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2653 | if (flags.soundok) You_hear(hear_txt); | ^~~~~~~~ zap.c:2653:32: note: treat the string as an argument to avoid this 2653 | if (flags.soundok) You_hear(hear_txt); | ^ | "%s", zap.c:2685:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2685 | fracture_rock(obj) /* fractured by pick-axe or wand of striking */ | ^ zap.c:2704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2704 | break_statue(obj) | ^ zap.c:2733:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2733 | destroy_item(osym, dmgtyp) | ^ zap.c:2852:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2852 | destroy_mitem(mtmp, osym, dmgtyp) | ^ zap.c:2947:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2947 | resist(mtmp, oclass, damage, tell) | ^ zap.c:3003:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3003 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:3003:12: note: treat the string as an argument to avoid this 3003 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:283:28: note: expanded from macro 'thats_enough_tries' 283 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ 101 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../sys/share/ioctl.c ../sys/share/ioctl.c:2:1: warning: '/*' within block comment [-Wcomment] 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 51 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../sys/unix/unixmain.c In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../sys/unix/unixmain.c:98:9: warning: passing arguments to 'chdirx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | chdirx(dir,0); | ^ ../sys/unix/unixmain.c:117:8: warning: passing arguments to 'chdirx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | chdirx(dir,1); | ^ ../sys/unix/unixmain.c:185:18: warning: '/*' within block comment [-Wcomment] 185 | #endif /* WIZARD /**/ | ^ ../sys/unix/unixmain.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | main(argc,argv) | ^ ../sys/unix/unixmain.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | process_options(argc, argv) | ^ ../sys/unix/unixmain.c:383:17: warning: '/*' within block comment [-Wcomment] 383 | #endif /* CHDIR /**/ | ^ ../sys/unix/unixmain.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | chdirx(dir, wr) | ^ ../sys/unix/unixmain.c:28:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | static void chdirx(); | ^ 58 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../sys/share/unixtty.c ../sys/share/unixtty.c:2:1: warning: '/*' within block comment [-Wcomment] 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../sys/share/unixtty.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | speednum(speed) | ^ ../sys/share/unixtty.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | settty(s) | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../sys/unix/unixunix.c In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../sys/unix/unixunix.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | gethdate(name) | ^ ../sys/unix/unixunix.c:29:1: warning: '/*' within block comment [-Wcomment] 29 | /* register char *np; | ^ ../sys/unix/unixunix.c:30:1: warning: '/*' within block comment [-Wcomment] 30 | /* if(stat(name, &hbuf)) | ^ ../sys/unix/unixunix.c:31:1: warning: '/*' within block comment [-Wcomment] 31 | /* error("Cannot get status of %s.", | ^ ../sys/unix/unixunix.c:32:1: warning: '/*' within block comment [-Wcomment] 32 | /* (np = rindex(name, '/')) ? np+1 : name); | ^ ../sys/unix/unixunix.c:33:1: warning: '/*' within block comment [-Wcomment] 33 | /* | ^ ../sys/unix/unixunix.c:34:1: warning: '/*' within block comment [-Wcomment] 34 | /* version using PATH from: seismo!gregc@ucsf-cgl.ARPA (Greg Couch) */ | ^ ../sys/unix/unixunix.c:127:3: warning: '/*' within block comment [-Wcomment] 127 | /* This will work on 4.1cbsd, 4.2bsd and system 3? & 5. | ^ ../sys/unix/unixunix.c:128:3: warning: '/*' within block comment [-Wcomment] 128 | /* It will do nothing on V7 or 4.1bsd. */ | ^ ../sys/unix/unixunix.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | veryold(fd) | ^ ../sys/unix/unixunix.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | regularize(s) /* normalize file name - we don't like .'s, /'s, spaces */ | ^ ../sys/unix/unixunix.c:306:17: warning: '/*' within block comment [-Wcomment] 306 | #endif /* SHELL /**/ | ^ ../sys/unix/unixunix.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | child(wt) | ^ 63 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/tty/getline.c In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/tty/getline.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | tty_getlin(query, bufp) | ^ ../win/tty/getline.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | hooked_tty_getlin(query, bufp, hook) | ^ ../win/tty/getline.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | xwaitforspace(s) | ^ ../win/tty/getline.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | ext_cmd_getlin_hook(base) | ^ ../win/tty/getline.c:173:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 173 | else /* more than 1 match */ | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/tty/termcap.c In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/tty/termcap.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | tty_startup(wid, hgt) | ^ ../win/tty/termcap.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | tty_number_pad(state) | ^ ../win/tty/termcap.c:468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | nocmov(x, y) | ^ ../win/tty/termcap.c:515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | cmov(x, y) | ^ ../win/tty/termcap.c:525:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | xputc(c) | ^ ../win/tty/termcap.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | xputs(s) | ^ ../win/tty/termcap.c:853:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | analyze_seq (str, fg, bg) | ^ ../win/tty/termcap.c:1016:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | s_atr2str(n) | ^ ../win/tty/termcap.c:1031:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1031 | e_atr2str(n) | ^ ../win/tty/termcap.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 | term_start_attr(attr) | ^ ../win/tty/termcap.c:1057:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | term_end_attr(attr) | ^ ../win/tty/termcap.c:1090:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1090 | term_start_color(color) | ^ ../win/tty/termcap.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 | has_color(color) | ^ 63 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/tty/topl.c In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/tty/topl.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | redotoplin(str) | ^ ../win/tty/topl.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | addtopl(s) | ^ ../win/tty/topl.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 | update_topl(bp) | ^ ../win/tty/topl.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | topl_putsym(c) | ^ ../win/tty/topl.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 | putsyms(str) | ^ ../win/tty/topl.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 | removetopl(n) | ^ ../win/tty/topl.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | tty_yn_function(query,resp, def) | ^ 57 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/tty/wintty.c In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/tty/wintty.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | bail(mesg) | ^ ../win/tty/wintty.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | tty_init_nhwindows(argcp,argv) | ^ ../win/tty/wintty.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 | tty_suspend_nhwindows(str) | ^ ../win/tty/wintty.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | tty_exit_nhwindows(str) | ^ ../win/tty/wintty.c:551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | tty_create_nhwindow(type) | ^ ../win/tty/wintty.c:660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | erase_menu_or_text(window, cw, clear) | ^ ../win/tty/wintty.c:678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | free_window_info(cw, free_data) | ^ ../win/tty/wintty.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | tty_clear_nhwindow(window) | ^ ../win/tty/wintty.c:765:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | dmore(cw, s) | ^ ../win/tty/wintty.c:785:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 785 | set_item_state(window, lineno, item) | ^ ../win/tty/wintty.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | set_all_on_page(window, page_start, page_end) | ^ ../win/tty/wintty.c:814:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | unset_all_on_page(window, page_start, page_end) | ^ ../win/tty/wintty.c:830:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | invert_all_on_page(window, page_start, page_end, acc) | ^ ../win/tty/wintty.c:854:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 854 | invert_all(window, page_start, page_end, acc) | ^ ../win/tty/wintty.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | process_menu_window(window, cw) | ^ ../win/tty/wintty.c:1169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1169 | process_text_window(window, cw) | ^ ../win/tty/wintty.c:1219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1219 | tty_display_nhwindow(window, blocking) | ^ ../win/tty/wintty.c:1287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1287 | tty_dismiss_nhwindow(window) | ^ ../win/tty/wintty.c:1327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1327 | tty_destroy_nhwindow(window) | ^ ../win/tty/wintty.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 | tty_curs(window, x, y) | ^ ../win/tty/wintty.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | tty_putsym(window, x, y, ch) | ^ ../win/tty/wintty.c:1453:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1453 | compress_str(str) | ^ ../win/tty/wintty.c:1476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | tty_putstr(window, attr, str) | ^ ../win/tty/wintty.c:1619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1619 | tty_display_file(fname, complain) | ^ ../win/tty/wintty.c:1694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1694 | tty_start_menu(window) | ^ ../win/tty/wintty.c:1707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | tty_add_menu(window, glyph, identifier, ch, gch, attr, str, preselected) | ^ ../win/tty/wintty.c:1751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1751 | reverse(curr) | ^ ../win/tty/wintty.c:1772:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1772 | tty_end_menu(window, prompt) | ^ ../win/tty/wintty.c:1867:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1867 | tty_select_menu(window, how, menu_list) | ^ ../win/tty/wintty.c:1910:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1910 | tty_message_menu(let, how, mesg) | ^ ../win/tty/wintty.c:1917:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1917 | pline(mesg); | ^~~~ ../win/tty/wintty.c:1917:8: note: treat the string as an argument to avoid this 1917 | pline(mesg); | ^ | "%s", ../win/tty/wintty.c:1975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1975 | docorner(xmin, ymax) | ^ ../win/tty/wintty.c:2033:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2033 | g_putch(in_ch) | ^ ../win/tty/wintty.c:2075:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2075 | tty_cliparound(x, y) | ^ ../win/tty/wintty.c:2115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2115 | tty_print_glyph(window, x, y, glyph) | ^ ../win/tty/wintty.c:2219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2219 | tty_raw_print(str) | ^ ../win/tty/wintty.c:2231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2231 | tty_raw_print_bold(str) | ^ ../win/tty/wintty.c:2293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2293 | tty_nh_poskey(x, y, mod) | ^ ../win/tty/wintty.c:2326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2326 | copy_of(s) | ^ 89 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/Window.c In file included from ../win/X11/Window.c:34: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/Window.c:34: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/Window.c:34: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/Window.c:34: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/Window.c:34: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ ../win/X11/Window.c:89:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | static void no_op(w, event, params, num_params) | ^ ../win/X11/Window.c:107:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | static void Redisplay(w, event, region) | ^ ../win/X11/Window.c:117:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | static void Resize(w) | ^ ../win/X11/Window.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 | WindowFont(w) Widget w; { return ((WindowWidget)w)->window.font->fid; } | ^ In file included from ../win/X11/Window.c:32: In file included from ../include/WindowP.h:8: ../include/Window.h:80:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | extern Font WindowFont(/* Widget */); | ^ ../win/X11/Window.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | WindowFontStruct(w) Widget w; { return ((WindowWidget)w)->window.font; } | ^ In file included from ../win/X11/Window.c:32: In file included from ../include/WindowP.h:8: ../include/Window.h:79:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | extern XFontStruct *WindowFontStruct(/* Widget */); | ^ 55 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/dialogs.c In file included from ../win/X11/dialogs.c:64: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/dialogs.c:64: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/dialogs.c:64: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/dialogs.c:64: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/dialogs.c:64: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ ../win/X11/dialogs.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 | CreateDialog(parent, name, okay_callback, cancel_callback) | ^ ../win/X11/dialogs.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 | SetDialogPrompt(w, newprompt) | ^ ../win/X11/dialogs.c:221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | GetDialogResponse(w) | ^ ../win/X11/dialogs.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 | SetDialogResponse(w, s) | ^ ../win/X11/dialogs.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | positionpopup(w, bottom) | ^ 53 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winX.c In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winX.c:45: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winX.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | find_widget(w) | ^ ../win/X11/winX.c:217:26: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'Cardinal' (aka 'unsigned int') [-Wint-to-void-pointer-cast] 217 | {XtWidgetBaseOffset, (XtPointer)XtOffset(Widget, core.screen), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../win/X11/winX.c:219:26: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'Cardinal' (aka 'unsigned int') [-Wint-to-void-pointer-cast] 219 | {XtWidgetBaseOffset, (XtPointer)XtOffset(Widget, core.colormap), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../win/X11/winX.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 | nhApproxColor(screen, colormap, str, color) | ^ ../win/X11/winX.c:264:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 264 | register i, j; | ~~~~~~~~ ^ | int ../win/X11/winX.c:264:17: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 264 | register i, j; | ~~~~~~~~ ^ | int ../win/X11/winX.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | nhCvtStringToPixel(dpy, args, num_args, fromVal, toVal, closure_ret) | ^ ../win/X11/winX.c:421:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | nhFreePixel(app, toVal, closure, args, num_args) | ^ ../win/X11/winX.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 | X11_raw_print(str) | ^ ../win/X11/winX.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | X11_raw_print_bold(str) | ^ ../win/X11/winX.c:465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | X11_curs(window, x, y) | ^ ../win/X11/winX.c:485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | X11_putstr(window, attr, str) | ^ ../win/X11/winX.c:543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | X11_nh_poskey(x, y, mod) | ^ ../win/X11/winX.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | X11_create_nhwindow(type) | ^ ../win/X11/winX.c:623:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | X11_clear_nhwindow(window) | ^ ../win/X11/winX.c:646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | X11_display_nhwindow(window, blocking) | ^ ../win/X11/winX.c:709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | X11_destroy_nhwindow(window) | ^ ../win/X11/winX.c:804:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 804 | void X11_suspend_nhwindows(str) const char *str; { return; } | ^ ../win/X11/winX.c:808:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 808 | void X11_number_pad(state) int state; { return; } /* called from options.c */ | ^ ../win/X11/winX.c:815:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | void X11_outrip(window, how) | ^ ../win/X11/winX.c:897:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | X11_init_nhwindows(argcp,argv) | ^ ../win/X11/winX.c:985:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 985 | void X11_exit_nhwindows(dummy) | ^ ../win/X11/winX.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | d_timeout(client_data, id) | ^ ../win/X11/winX.c:1057:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | X11_hangup(w, event, params, num_params) | ^ ../win/X11/winX.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | askname_delete(w, event, params, num_params) | ^ ../win/X11/winX.c:1083:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1083 | askname_done(w, client_data, call_data) | ^ ../win/X11/winX.c:1152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1152 | done_button(w, client_data, call_data) | ^ ../win/X11/winX.c:1168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1168 | getline_delete(w, event, params, num_params) | ^ ../win/X11/winX.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 | abort_button(w, client_data, call_data) | ^ ../win/X11/winX.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 | X11_getlin(question, input) | ^ ../win/X11/winX.c:1246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1246 | delete_file(w, event, params, num_params) | ^ ../win/X11/winX.c:1259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1259 | dismiss_file(w, event, params, num_params) | ^ ../win/X11/winX.c:1271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | X11_display_file(str, complain) | ^ ../win/X11/winX.c:1411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1411 | key_event_to_char(key) | ^ ../win/X11/winX.c:1432:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1432 | yn_delete(w, event, params, num_params) | ^ ../win/X11/winX.c:1449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | yn_key(w, event, params, num_params) | ^ ../win/X11/winX.c:1518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1518 | X11_yn_function(ques, choices, def) | ^ ../win/X11/winX.c:1626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1626 | input_event(exit_condition) | ^ ../win/X11/winX.c:1642:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1642 | msgkey(w, data, event) | ^ ../win/X11/winX.c:1653:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1653 | win_visible(w, data, event, flag) /* only called for autofocus */ | ^ ../win/X11/winX.c:1879:46: warning: incompatible function pointer types passing 'XtErrorHandler' (aka 'void (*)(char *)') to parameter of type 'void (*)(String) __attribute__((noreturn))' (aka 'void (*)(char *) __attribute__((noreturn))') [-Wincompatible-function-pointer-types] 1879 | (void) XtAppSetErrorHandler(app_context, (XtErrorHandler) hangup); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/X11/Intrinsic.h:1786:1: note: passing argument to parameter here 1786 | ); | ^ ../win/X11/winX.c:1887:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1887 | nh_XtPopup(w, g, childwid) | ^ ../win/X11/winX.c:1898:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1898 | nh_XtPopdown(w) | ^ ../win/X11/winX.c:1930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1930 | nh_keyscroll(viewport, event, params, num_params) | ^ 94 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winmap.c In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winmap.c:39: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winmap.c:53:21: warning: '/*' within block comment [-Wcomment] 53 | /* #define VERBOSE /* print various info & events as they happen */ | ^ ../win/X11/winmap.c:54:27: warning: '/*' within block comment [-Wcomment] 54 | /* #define VERBOSE_UPDATE /* print screen update bounds */ | ^ ../win/X11/winmap.c:55:26: warning: '/*' within block comment [-Wcomment] 55 | /* #define VERBOSE_INPUT /* print input events */ | ^ ../win/X11/winmap.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 | X11_print_glyph(window, x, y, glyph) | ^ ../win/X11/winmap.c:192:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | void X11_cliparound(x, y) int x, y; { } | ^ ../win/X11/winmap.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | init_annotation(annotation, filename, colorpixel) | ^ ../win/X11/winmap.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 | init_tiles(wp) | ^ ../win/X11/winmap.c:582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | check_cursor_visibility(wp) | ^ ../win/X11/winmap.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 | map_check_size_change(wp) | ^ ../win/X11/winmap.c:743:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | set_gc(w, font, resource_name, bgpixel, regular, inverse) | ^ ../win/X11/winmap.c:778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | get_text_gc(wp, font) | ^ ../win/X11/winmap.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 | display_cursor(wp) | ^ ../win/X11/winmap.c:837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 837 | display_map_window(wp) | ^ ../win/X11/winmap.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 | map_all_stone(map_info) | ^ ../win/X11/winmap.c:891:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 891 | clear_map_window(wp) | ^ ../win/X11/winmap.c:921:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | get_char_info(wp) | ^ ../win/X11/winmap.c:927:26: warning: passing arguments to 'WindowFontStruct' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | fs = WindowFontStruct(wp->w); | ^ ../win/X11/winmap.c:969:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 969 | map_input(w, event, params, num_params) | ^ ../win/X11/winmap.c:1009:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1009 | (*input_func)(w, event, params, num_params); | ^ ../win/X11/winmap.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | set_button_values(w, x, y, button) | ^ ../win/X11/winmap.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 | map_exposed(w, client_data, widget_data) | ^ ../win/X11/winmap.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1175 | map_update(wp, start_row, stop_row, start_col, stop_col, inverted) | ^ ../win/X11/winmap.c:1324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1324 | set_map_size(wp, cols, rows) | ^ ../win/X11/winmap.c:1342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1342 | init_text(wp) | ^ ../win/X11/winmap.c:1360:31: warning: passing arguments to 'WindowFont' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1360 | get_text_gc(wp, WindowFont(wp->w)); | ^ ../win/X11/winmap.c:1376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1376 | create_map_window(wp, create_popup, parent) | ^ ../win/X11/winmap.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 | destroy_map_window(wp) | ^ ../win/X11/winmap.c:1585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1585 | x_event(exit_condition) | ^ 78 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winmenu.c ../win/X11/winmenu.c:10:20: warning: '/*' within block comment [-Wcomment] 10 | /*#define USE_FWF /* use FWF's list widget */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winmenu.c:39: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winmenu.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 | menu_select(w, client_data, call_data) | ^ ../win/X11/winmenu.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 | menu_delete(w, event, params, num_params) | ^ ../win/X11/winmenu.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | invert_line(wp, curr, which, how_many) | ^ ../win/X11/winmenu.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 | menu_key(w, event, params, num_params) | ^ ../win/X11/winmenu.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | menu_ok(w, client_data, call_data) | ^ ../win/X11/winmenu.c:339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | menu_cancel(w, client_data, call_data) | ^ ../win/X11/winmenu.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | menu_all(w, client_data, call_data) | ^ ../win/X11/winmenu.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 | menu_none(w, client_data, call_data) | ^ ../win/X11/winmenu.c:372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | menu_invert(w, client_data, call_data) | ^ ../win/X11/winmenu.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | menu_search(w, client_data, call_data) | ^ ../win/X11/winmenu.c:402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | select_all(wp) | ^ ../win/X11/winmenu.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 | select_none(wp) | ^ ../win/X11/winmenu.c:450:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | invert_all(wp) | ^ ../win/X11/winmenu.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | invert_match(wp, match) | ^ ../win/X11/winmenu.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | select_match(wp, match) | ^ ../win/X11/winmenu.c:519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | menu_popdown(wp) | ^ ../win/X11/winmenu.c:568:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | X11_start_menu(window) | ^ ../win/X11/winmenu.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | X11_add_menu(window, glyph, identifier, ch, gch, attr, str, preselected) | ^ ../win/X11/winmenu.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | X11_end_menu(window, query) | ^ ../win/X11/winmenu.c:666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | X11_select_menu(window, how, menu_list) | ^ ../win/X11/winmenu.c:1042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | copy_of(s) | ^ ../win/X11/winmenu.c:1051:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | move_menu(src_menu, dest_menu) | ^ ../win/X11/winmenu.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | free_menu(mp) | ^ ../win/X11/winmenu.c:1080:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | reset_menu_to_default(mp) | ^ ../win/X11/winmenu.c:1093:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1093 | clear_old_menu(wp) | ^ ../win/X11/winmenu.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 | create_menu_window(wp) | ^ ../win/X11/winmenu.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 | destroy_menu_window(wp) | ^ 78 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winmesg.c In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winmesg.c:35: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winmesg.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | set_message_slider(wp) | ^ ../win/X11/winmesg.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 | create_message_window(wp, create_popup, parent) | ^ ../win/X11/winmesg.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 | destroy_message_window(wp) | ^ ../win/X11/winmesg.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | display_message_window(wp) | ^ ../win/X11/winmesg.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | append_message(wp, str) | ^ ../win/X11/winmesg.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | get_previous(mark) | ^ ../win/X11/winmesg.c:281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | set_circle_buf(mesg_info, count) | ^ ../win/X11/winmesg.c:356:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | split(s, fs, pixel_width) | ^ ../win/X11/winmesg.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 | add_line(mesg_info, s) | ^ ../win/X11/winmesg.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | set_last_pause(wp) | ^ ../win/X11/winmesg.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 | redraw_message_window(wp) | ^ ../win/X11/winmesg.c:500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | mesg_check_size_change(wp) | ^ ../win/X11/winmesg.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 | mesg_exposed(w, client_data, widget_data) | ^ ../win/X11/winmesg.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | get_gc(w, mesg_info) | ^ ../win/X11/winmesg.c:574:35: warning: passing arguments to 'WindowFont' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | values.font = WindowFont(w); | ^ ../win/X11/winmesg.c:590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | mesg_resized(w, client_data, call_data) | ^ 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winmisc.c In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winmisc.c:32: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winmisc.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | ps_quit(w, client_data, call_data) | ^ ../win/X11/winmisc.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 | ps_random(w, client_data, call_data) | ^ ../win/X11/winmisc.c:98:19: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 98 | ps_selected = (int) client_data; | ^~~~~~~~~~~~~~~~~ ../win/X11/winmisc.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | ps_select(w, client_data, call_data) | ^ ../win/X11/winmisc.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | ps_key(w, event, params, num_params) | ^ ../win/X11/winmisc.c:222:20: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 222 | int selected = (int) client_data; | ^~~~~~~~~~~~~~~~~ ../win/X11/winmisc.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 | extend_select(w, client_data, call_data) | ^ ../win/X11/winmisc.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | extend_dismiss(w, client_data, call_data) | ^ ../win/X11/winmisc.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | extend_help(w, client_data, call_data) | ^ ../win/X11/winmisc.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 | ec_delete(w, event, params, num_params) | ^ ../win/X11/winmisc.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | ec_key(w, event, params, num_params) | ^ ../win/X11/winmisc.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | make_menu(popup_name, popup_label, popup_translations, | ^ ../win/X11/winmisc.c:519:51: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 519 | XtAddCallback(*curr, XtNcallback, name_callback, (XtPointer) i); | ^~~~~~~~~~~~~ 63 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winstat.c In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winstat.c:34: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winstat.c:45:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | create_status_window(wp, create_popup, parent) | ^ ../win/X11/winstat.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | destroy_status_window(wp) | ^ ../win/X11/winstat.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | adjust_status(wp, str) | ^ ../win/X11/winstat.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | hilight_label(w) | ^ ../win/X11/winstat.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 | update_val(attr_rec, new_value) | ^ ../win/X11/winstat.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | update_fancy_status(wp) | ^ ../win/X11/winstat.c:679:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 679 | width_string(sv_index) | ^ ../win/X11/winstat.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | create_widget(parent, sv, sv_index) | ^ ../win/X11/winstat.c:762:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | get_widths(sv, width1p, width2p) | ^ ../win/X11/winstat.c:787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | set_widths(sv, width1, width2) | ^ ../win/X11/winstat.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 809 | init_column(name, parent, top, left, col_indices) | ^ ../win/X11/winstat.c:885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | init_info_form(parent, top, left) | ^ ../win/X11/winstat.c:948:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | create_fancy_status(parent, top) | ^ ../win/X11/winstat.c:975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | destroy_fancy_status(wp) | ^ 64 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/wintext.c In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/wintext.c:31: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/wintext.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 | delete_text(w, event, params, num_params) | ^ ../win/X11/wintext.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | dismiss_text(w, event, params, num_params) | ^ ../win/X11/wintext.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | key_dismiss_text(w, event, params, num_params) | ^ ../win/X11/wintext.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | rip_dismiss_text(w, event, params, num_params) | ^ ../win/X11/wintext.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | add_to_text_window(wp, attr, str) | ^ ../win/X11/wintext.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 | display_text_window(wp, blocking) | ^ ../win/X11/wintext.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 | create_text_window(wp) | ^ ../win/X11/wintext.c:316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | destroy_text_window(wp) | ^ ../win/X11/wintext.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 | clear_text_window(wp) | ^ ../win/X11/wintext.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 | append_text_buffer(tb, str, concat) | ^ ../win/X11/wintext.c:409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 409 | init_text_buffer(tb) | ^ ../win/X11/wintext.c:421:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | clear_text_buffer(tb) | ^ ../win/X11/wintext.c:431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | free_text_buffer(tb) | ^ ../win/X11/wintext.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 | rip_exposed(w, client_data, widget_data) | ^ ../win/X11/wintext.c:555:29: warning: passing arguments to 'WindowFont' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | values.font = WindowFont(w); | ^ ../win/X11/wintext.c:568:36: warning: passing arguments to 'WindowFontStruct' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | XFontStruct* font=WindowFontStruct(w); | ^ 66 warnings generated. cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../win/X11/winval.c In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/winval.c:28: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/winval.c:36:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | create_value(parent, name_value) | ^ ../win/X11/winval.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | set_name(w, new_label) | ^ ../win/X11/winval.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 | set_name_width(w, new_width) | ^ ../win/X11/winval.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 | get_name_width(w) | ^ ../win/X11/winval.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | set_value(w, new_value) | ^ ../win/X11/winval.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | set_value_width(w, new_width) | ^ ../win/X11/winval.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 | get_value_width(w) | ^ ../win/X11/winval.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | hilight_value(w) | ^ ../win/X11/winval.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | swap_fg_bg(w) | ^ 59 warnings generated. cc -O -I../include -o tilemap ../win/share/tilemap.c In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/share/tilemap.c:332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | process_substitutions(ofp) | ^ 51 warnings generated. ./tilemap cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c ../src/./tile.c In file included from ../src/./tile.c:3: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../src/./tile.c:3: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../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 ../src/./tile.c:3: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../src/./tile.c:3: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../src/./tile.c:3: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../src/./tile.c:3: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ ../src/./tile.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 | substitute_tiles(plev) | ^ 51 warnings generated. ../util/makedefs -v cc -O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -O -I../include -I/usr/local/include -c version.c -o version.o In file included from version.c:5: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from version.c:5: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ version.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | getversionstring(buf) | ^ version.c:30:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 30 | pline(getversionstring(buf)); | ^~~~~~~~~~~~~~~~~~~~~ version.c:30:8: note: treat the string as an argument to avoid this 30 | pline(getversionstring(buf)); | ^ | "%s", version.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | check_version(version_data, filename, complain) | ^ version.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | uptodate(fd, name) | ^ version.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | store_version(fd) | ^ 55 warnings generated. Loading ... `nethack' is up to date. ( cd util ; /usr/bin/make recover ) cc -O -I../include -c recover.c -o recover.o In file included from recover.c:10: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from recover.c:10: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from recover.c:10: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from recover.c:10: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from recover.c:10: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ recover.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | main(argc, argv) | ^ recover.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | set_levelfile_name(lev) | ^ recover.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | open_levelfile(lev) | ^ recover.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | copy_bytes(ifd, ofd) | ^ recover.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | restore_savefile(basename) | ^ 53 warnings generated. cc -o recover recover.o ( cd doc ; /usr/bin/make Guidebook ) tbl tmac.n Guidebook.mn | nroff | col -bx > Guidebook /bin/sh: tbl: not found /bin/sh: nroff: not found ( cd dat ; /usr/bin/make data ) ../util/makedefs -d ( cd dat ; /usr/bin/make oracles ) ../util/makedefs -h ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) ../util/makedefs -q ( cd dat ; /usr/bin/make rumors ) ../util/makedefs -r ( cd util ; /usr/bin/make tile2x11 ) cp ../win/share/tile.h ../include/tile.h cc -O -I../include -c ../win/X11/tile2x11.c In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/X11/tile2x11.c:9: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/X11/tile2x11.c:14:26: warning: '/*' within block comment [-Wcomment] 14 | /*#define PRINT_COLORMAP /* define to print the colormap */ | ^ ../win/X11/tile2x11.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 | pix_to_colormap(pix) | ^ ../win/X11/tile2x11.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | convert_tiles(tb_ptr) | ^ ../win/X11/tile2x11.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 | process_file(fname) | ^ ../win/X11/tile2x11.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | xpm_write(fp) | ^ ../win/X11/tile2x11.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | main(argc, argv) | ^ 56 warnings generated. cc -O -I../include -c ../win/share/tiletext.c In file included from ../win/share/tiletext.c:1: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/share/tiletext.c:1: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/share/tiletext.c:1: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/share/tiletext.c:1: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/share/tiletext.c:1: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ ../win/share/tiletext.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 | read_text_colormap(txtfile) | ^ ../win/share/tiletext.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | write_text_colormap(txtfile) | ^ ../win/share/tiletext.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 | read_txttile(txtfile, pixels) | ^ ../win/share/tiletext.c:153:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | write_txttile(txtfile, pixels) | ^ ../win/share/tiletext.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 | fopen_text_file(filename, type) | ^ ../win/share/tiletext.c:281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | read_text_tile(pixels) | ^ ../win/share/tiletext.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | write_text_tile(pixels) | ^ 55 warnings generated. cc -O -I../include -c -DTILETEXT ../win/share/tilemap.c In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from ../win/share/tilemap.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ ../win/share/tilemap.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | tilename(set, entry) | ^ ../win/share/tilemap.c:154:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 154 | else { | ^ 52 warnings generated. mv tilemap.o tiletxt.o cc -o tile2x11 tile2x11.o tiletext.o tiletxt.o ../src/drawing.o ../src/decl.o ../src/monst.o ../src/objects.o ( cd dat ; /usr/bin/make x11tiles ) ../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt ../win/share/other.txt ../win/share/monsters.txt: 341 tiles ../win/share/objects.txt: 393 tiles ../win/share/other.txt: 154 tiles Total tiles: 888 ( cd dat ; /usr/bin/make pet_mark.xbm ) cp ../win/X11/pet_mark.xbm pet_mark.xbm ( cd dat ; /usr/bin/make rip.xpm ) cp ../win/X11/rip.xpm rip.xpm ( cd util ; /usr/bin/make dgn_comp ) `../include/date.h' is up to date. yacc -d dgn_comp.y mv y.tab.c dgn_yacc.c mv y.tab.h ../include/dgn_comp.h cc -O -I../include -c dgn_yacc.c -o dgn_yacc.o In file included from dgn_comp.y:25: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from dgn_comp.y:25: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ dgn_comp.y:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | getchain(s) | ^ 49 warnings generated. lex dgn_comp.l mv lex.yy.c dgn_lex.c cc -c -O -I../include dgn_lex.c In file included from dgn_comp.l:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from dgn_comp.l:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ dgn_comp.l:141:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | void init_yyin( input_f ) | ^ dgn_comp.l:152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | void init_yyout( output_f ) | ^ 50 warnings generated. cc -O -I../include -c dgn_main.c -o dgn_main.o In file included from dgn_main.c:11: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from dgn_main.c:11: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ dgn_main.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | main(argc, argv) | ^ dgn_main.c:156:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | void yyerror(s) | ^ dgn_main.c:170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | void yywarning(s) | ^ 51 warnings generated. cc -O -I../include -c panic.c -o panic.o In file included from panic.c:11: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from panic.c:11: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from panic.c:11: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from panic.c:11: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from panic.c:11: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ 48 warnings generated. cc -o dgn_comp dgn_yacc.o dgn_lex.o dgn_main.o panic.o ../src/alloc.o ( cd dat ; /usr/bin/make dungeon ) ../util/makedefs -e ../util/dgn_comp dungeon.pdf ( cd util ; /usr/bin/make lev_comp ) yacc -d lev_comp.y mv y.tab.c lev_yacc.c mv y.tab.h ../include/lev_comp.h cc -O -I../include -c lev_yacc.c -o lev_yacc.o In file included from lev_comp.y:24: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../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 */ | ^ 50 warnings generated. lex lev_comp.l mv lex.yy.c lev_lex.c cc -c -O -I../include lev_lex.c In file included from lev_comp.l:8: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ lev_comp.l:237:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | void init_yyin( input_f ) | ^ lev_comp.l:248:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | void init_yyout( output_f ) | ^ 52 warnings generated. `../include/date.h' is up to date. cc -O -I../include -c lev_main.c -o lev_main.o In file included from lev_main.c:10: In file included from ../include/hack.h:9: ../include/config.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define MSDOS /* use if not defined by compiler or cases below */ | ^ ../include/config.h:123:17: warning: '/*' within block comment [-Wcomment] 123 | /* #define OS2 /* define for OS/2 */ | ^ ../include/config.h:125:17: warning: '/*' within block comment [-Wcomment] 125 | /* #define TOS /* define for Atari ST/TT */ | ^ ../include/config.h:127:19: warning: '/*' within block comment [-Wcomment] 127 | /* #define STUPID /* avoid some complicated expressions if | ^ ../include/config.h:129:21: warning: '/*' within block comment [-Wcomment] 129 | /* #define TERMINFO /* uses terminfo rather than termcap */ | ^ ../include/config.h:135:25: warning: '/*' within block comment [-Wcomment] 135 | /* #define MINIMAL_TERM /* if a terminal handles highlighting or tabs poorly, | ^ ../include/config.h:137:24: warning: '/*' within block comment [-Wcomment] 137 | /* #define ULTRIX_CC20 /* define only if using cc v2.0 on a DECstation */ | ^ ../include/config.h:138:25: warning: '/*' within block comment [-Wcomment] 138 | /* #define ULTRIX_PROTO /* define for Ultrix 4.0 (or higher) on a DECstation; | ^ ../include/config.h:299:46: warning: '/*' within block comment [-Wcomment] 299 | /* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:300:42: warning: '/*' within block comment [-Wcomment] 300 | /* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ ../include/config.h:315:17: warning: '/*' within block comment [-Wcomment] 315 | /* #define DLB /* not supported on all platforms */ | ^ ../include/config.h:344:19: warning: '/*' within block comment [-Wcomment] 344 | /* #define SECURE /* do setuid(getuid()) after chdir() */ | ^ ../include/config.h:366:21: warning: '/*' within block comment [-Wcomment] 366 | /* #define NOVOID /* define if no "void" data type. */ | ^ ../include/config.h:373:22: warning: '/*' within block comment [-Wcomment] 373 | /* #define NOTSTDC /* define for lying compilers */ | ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:375: ../include/tradstdc.h:55:25: warning: '/*' within block comment [-Wcomment] 55 | /* #define USE_VARARGS /* use instead of */ | ^ ../include/tradstdc.h:56:25: warning: '/*' within block comment [-Wcomment] 56 | /* #define USE_OLDARGS /* don't use any variable argument facilites */ | ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: ../include/config.h:415:21: warning: '/*' within block comment [-Wcomment] 415 | /* #define STRNCMPI /* compiler/library has the strncmpi function */ | ^ ../include/config.h:430:25: warning: '/*' within block comment [-Wcomment] 430 | /*#define VISION_TABLES /* use vision tables generated at compile time */ | ^ ../include/config.h:468:26: warning: '/*' within block comment [-Wcomment] 468 | /* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ | ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: ../include/global.h:11:18: warning: '/*' within block comment [-Wcomment] 11 | /* #define BETA /* if a beta-test copy [MRS] */ | ^ ../include/global.h:76:27: warning: '/*' within block comment [-Wcomment] 76 | /* #define SPECIALIZATION /* do "specialized" version of new topology */ | ^ In file included from lev_main.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:470: In file included from ../include/global.h:148: ../include/unixconf.h:24:19: warning: '/*' within block comment [-Wcomment] 24 | /* #define ULTRIX /* define for Ultrix v3.0 or higher (but not lower) */ | ^ ../include/unixconf.h:27:18: warning: '/*' within block comment [-Wcomment] 27 | /* #define SYSV /* define for System V */ | ^ ../include/unixconf.h:28:18: warning: '/*' within block comment [-Wcomment] 28 | /* #define HPUX /* Hewlett-Packard's Unix, version 6.5 or higher */ | ^ ../include/unixconf.h:33:18: warning: '/*' within block comment [-Wcomment] 33 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:34:21: warning: '/*' within block comment [-Wcomment] 34 | /* #define NETWORK /* if running on a networked system */ | ^ ../include/unixconf.h:37:18: warning: '/*' within block comment [-Wcomment] 37 | /* #define LINUX /* Another Unix clone */ | ^ ../include/unixconf.h:38:18: warning: '/*' within block comment [-Wcomment] 38 | /* #define GENIX /* Yet Another Unix Clone */ | ^ ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define HISX /* Bull Unix for XPS Machines */ | ^ ../include/unixconf.h:40:17: warning: '/*' within block comment [-Wcomment] 40 | /* #define BOS /* Bull Open Software - Unix for DPX/2 Machines */ | ^ ../include/unixconf.h:41:19: warning: '/*' within block comment [-Wcomment] 41 | /* #define UNIXPC /* use in addition to SYSV for AT&T 7300/3B1 */ | ^ ../include/unixconf.h:42:19: warning: '/*' within block comment [-Wcomment] 42 | /* #define AIX_31 /* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain | ^ ../include/unixconf.h:57:23: warning: '/*' within block comment [-Wcomment] 57 | /* #define OPENWINBUG /* avoid a problem using OpenWindows 3.0 for X11 | ^ ../include/unixconf.h:60:24: warning: '/*' within block comment [-Wcomment] 60 | /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ | ^ ../include/unixconf.h:61:23: warning: '/*' within block comment [-Wcomment] 61 | /* #define BSD_43_BUG /* for real 4.3BSD cc's without schain botch fix */ | ^ ../include/unixconf.h:62:26: warning: '/*' within block comment [-Wcomment] 62 | /* #define MICROPORT_BUG /* problems with large arrays in structs */ | ^ ../include/unixconf.h:63:30: warning: '/*' within block comment [-Wcomment] 63 | /* #define MICROPORT_286_BUG /* Changes needed in termcap.c to get it to | ^ ../include/unixconf.h:66:23: warning: '/*' within block comment [-Wcomment] 66 | /* #define AIXPS_2BUG /* avoid a problem with little_to_big() optimization */ | ^ ../include/unixconf.h:68:19: warning: '/*' within block comment [-Wcomment] 68 | /* #define RANDOM /* if neither random/srandom nor lrand48/srand48 | ^ ../include/unixconf.h:72:25: warning: '/*' within block comment [-Wcomment] 72 | /* #define UNIX386MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:74:23: warning: '/*' within block comment [-Wcomment] 74 | /* #define VPIX_MUSIC /* Play real music through speaker on systems with | ^ ../include/unixconf.h:86:26: warning: '/*' within block comment [-Wcomment] 86 | /* #define NO_FILE_LINKS /* if no hard links */ | ^ ../include/unixconf.h:87:48: warning: '/*' within block comment [-Wcomment] 87 | /* #define LOCKDIR "/usr/games/lib/nethackdir" /* where to put locks */ | ^ ../include/unixconf.h:117:25: warning: '/*' within block comment [-Wcomment] 117 | /* #define TIMED_DELAY /* usleep() */ | ^ ../include/unixconf.h:128:19: warning: '/*' within block comment [-Wcomment] 128 | /* #define MAIL /* Deliver mail during the game */ | ^ ../include/unixconf.h:140:18: warning: '/*' within block comment [-Wcomment] 140 | /* #define AMS /* use Andrew message system for mail */ | ^ ../include/unixconf.h:149:26: warning: '/*' within block comment [-Wcomment] 149 | /* #define NO_MAILREADER /* have mail daemon just tell player of mail */ | ^ ../include/unixconf.h:185:34: warning: '/*' within block comment [-Wcomment] 185 | /* #define COMPRESS_OPTIONS "-q" /* */ | ^ In file included from lev_main.c:10: In file included from ../include/hack.h:73: In file included from ../include/decl.h:215: ../include/obj.h:8:23: warning: '/*' within block comment [-Wcomment] 8 | /* #define obj obj_nh /* uncomment for SCO UNIX, which has a conflicting | ^ ../include/obj.h:25:21: warning: '/*' within block comment [-Wcomment] 25 | /* unsigned o_cwt; /* container weight capacity */ | ^ lev_main.c: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 | main(argc, argv) | ^ lev_main.c:291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | yyerror(s) | ^ lev_main.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | yywarning(s) | ^ lev_main.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | get_floor_type(c) | ^ lev_main.c:344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | get_room_type(s) | ^ lev_main.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | get_trap_type(s) | ^ lev_main.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | get_monster_id(s, c) | ^ lev_main.c:396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | get_object_id(s) | ^ lev_main.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 | check_monster_char(c) | ^ lev_main.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | check_object_char(c) | ^ lev_main.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 | what_map_char(c) | ^ lev_main.c:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | scan_map(map) | ^ lev_main.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | check_coord(x, y, str) | ^ lev_main.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 | write_common_data(fd, typ, init, flgs) | ^ lev_main.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | write_monsters(fd, nmonster_p, monsters_p) | ^ lev_main.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 | write_objects(fd, nobject_p, objects_p) | ^ lev_main.c:1030:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1030 | write_engravings(fd, nengraving_p, engravings_p) | ^ lev_main.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | write_level_file(filename, room_level, maze_level) | ^ lev_main.c:1096:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1096 | write_maze(fd, maze) | ^ lev_main.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 | write_rooms(fd, lev) | ^ lev_main.c:1399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1399 | free_rooms(lev) | ^ 71 warnings generated. cc -o lev_comp lev_yacc.o lev_lex.o lev_main.o panic.o ../src/alloc.o ../src/drawing.o ../src/decl.o ../src/monst.o ../src/objects.o ( cd dat ; /usr/bin/make spec_levs ) ../util/lev_comp bigroom.des ../util/lev_comp castle.des ../util/lev_comp endgame.des ../util/lev_comp gehennom.des ../util/lev_comp knox.des ../util/lev_comp medusa.des ../util/lev_comp mines.des ../util/lev_comp oracle.des ../util/lev_comp tower.des ../util/lev_comp yendor.des touch spec_levs ( cd dat ; /usr/bin/make quest_levs ) ../util/lev_comp Arch.des ../util/lev_comp Barb.des ../util/lev_comp Caveman.des ../util/lev_comp Elf.des ../util/lev_comp Healer.des ../util/lev_comp Knight.des ../util/lev_comp Priest.des ../util/lev_comp Rogue.des ../util/lev_comp Samurai.des ../util/lev_comp Tourist.des ../util/lev_comp Valkyrie.des ../util/lev_comp Wizard.des touch quest_levs ( cd dat; /usr/bin/make options ) `options' is up to date. Done. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> nethack32-3.2.3_8 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> nethack32-3.2.3_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for nethack32-3.2.3_8 ===> Generating temporary packing list ( cd src ; /usr/bin/make ) `nethack' is up to date. ( cd util ; /usr/bin/make recover ) `recover' is up to date. ( cd dat ; /usr/bin/make data ) `data' is up to date. ( cd dat ; /usr/bin/make oracles ) `oracles' is up to date. ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) `quest.dat' is up to date. ( cd dat ; /usr/bin/make rumors ) `rumors' is up to date. ( cd util ; /usr/bin/make tile2x11 ) `tile2x11' is up to date. ( cd dat ; /usr/bin/make x11tiles ) `x11tiles' is up to date. ( cd dat ; /usr/bin/make pet_mark.xbm ) `pet_mark.xbm' is up to date. ( cd dat ; /usr/bin/make rip.xpm ) `rip.xpm' is up to date. ( cd util ; /usr/bin/make dgn_comp ) `../include/date.h' is up to date. `dgn_comp' is up to date. ( cd dat ; /usr/bin/make dungeon ) `dungeon' is up to date. ( cd util ; /usr/bin/make lev_comp ) `../include/date.h' is up to date. `lev_comp' is up to date. ( cd dat ; /usr/bin/make spec_levs ) `spec_levs' is up to date. ( cd dat ; /usr/bin/make quest_levs ) `quest_levs' is up to date. mkdir /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/bin mkdir: /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/bin: File exists *** Error code 1 (ignored) rmdir /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32 rmdir: /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32: No such file or directory *** Error code 1 (ignored) mkdir /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32 mkdir: /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32: File exists *** Error code 1 (ignored) ( /usr/bin/make dofiles ) target=`sed -n -e '/librarian/{' -e 's/.*/dlb/p' -e 'q' -e '}' -e '$s/.*/nodlb/p' < dat/options` ; /usr/bin/make dofiles-${target-nodlb} ( cd dat ; cp x11tiles pet_mark.xbm rip.xpm license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data oracles options quest.dat rumors /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32 ) cp src/nethack /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32/nethack32 cp util/recover /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32 rm -f /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/bin/nethack32 sed -e 's;/usr/games/lib/nethackdir;/usr/local/share/nethack32;' -e 's;HACKDIR/nethack;HACKDIR/nethack32;' < sys/unix/nethack.sh > /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/bin/nethack32 touch /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32/perm /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32/record /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/nethack32/logfile You may also want to reinstall the man pages via the doc Makefile. /usr/bin/env -i HOME=/wrkdirs/usr/ports/games/nethack32/work MACHINE_ARCH=amd64 PWD="${PWD}" GIT_CEILING_DIRECTORIES=/wrkdirs/usr/ports/games/nethack32/work __MAKE_CONF=/nonexistent OSVERSION=1305000 PATH=/usr/local/libexec/ccache:/wrkdirs/usr/ports/games/nethack32/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin TMPDIR=/tmp UNAME_r=13.5-RELEASE-p7 UNAME_v=FreeBSD\ 13.5-RELEASE-p7\ 1305000 XDG_DATA_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/nethack32/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/nethack32/work/.cache HOME=/wrkdirs/usr/ports/games/nethack32/work TMPDIR="/tmp" PATH=/usr/local/libexec/ccache:/wrkdirs/usr/ports/games/nethack32/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/nethack32/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /usr/bin/make -f Makefile -C /wrkdirs/usr/ports/games/nethack32/work/nethack-3.2.2/doc DESTDIR=/wrkdirs/usr/ports/games/nethack32/work/stage manpages install -m 444 nethack.6 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/man/man6/nethack32.6 install -m 444 lev_comp.6 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/man/man6/lev_comp32.6 install -m 444 dgn_comp.6 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/man/man6/dgn_comp32.6 install -m 444 recover.6 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/man/man6/recover32.6 install -m 444 dlb.6 /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/man/man6/dlb32.6 install -m 0644 /wrkdirs/usr/ports/games/nethack32/work/nethack-3.2.2/doc/Guidebook.txt /wrkdirs/usr/ports/games/nethack32/work/stage/usr/local/share/doc/nethack32 ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2026-01-24T12:11:50+0000' 'PKG_NOTE_ports_top_git_hash=076a295eb33c' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=4485bd8221c2' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for nethack32-3.2.3_8 ===> Building nethack32-3.2.3_8 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for nethack32-3.2.3_8 build of games/nethack32 | nethack32-3.2.3_8 ended at Sat Jan 24 07:14:09 EST 2026 build time: 00:02:22