=>> Building japanese/rogue_s build started at Sun Sep 28 17:16:32 EDT 2025 port directory: /usr/ports/japanese/rogue_s package name: ja-rogue_s-1.3a_3 building for: FreeBSD pkg.DaveG.ca 15.0-ALPHA3 FreeBSD 15.0-ALPHA3 1500064 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1806 Aug 27 2024 /usr/ports/japanese/rogue_s/Makefile Ports top last git commit: a936fb9b16ba Ports top unclean checkout: no Port dir last git commit: c75c94468641 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500064 Jail OSVERSION: 1500064 Job Id: 07 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1500064 UNAME_v=FreeBSD 15.0-ALPHA3 1500064 UNAME_r=15.0-ALPHA3 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_15_c_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_15_c_x64-HEAD-ALL/07/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_15_c_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_15_c_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 ja-rogue_s-1.3a_3: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work XDG_CACHE_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work/.cache HOME=/wrkdirs/usr/ports/japanese/rogue_s/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/japanese/rogue_s/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/japanese/rogue_s/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-- DATADIR="/usr/local/share/rogue_s" XDG_DATA_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work XDG_CACHE_HOME=/wrkdirs/usr/ports/japanese/rogue_s/work/.cache HOME=/wrkdirs/usr/ports/japanese/rogue_s/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/japanese/rogue_s/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/japanese/rogue_s/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 -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -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-- PORTDOCS="" OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/rogue_s" EXAMPLESDIR="share/examples/rogue_s" DATADIR="share/rogue_s" WWWDIR="www/rogue_s" ETCDIR="etc/rogue_s" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/rogue_s DOCSDIR=/usr/local/share/doc/rogue_s EXAMPLESDIR=/usr/local/share/examples/rogue_s WWWDIR=/usr/local/www/rogue_s ETCDIR=/usr/local/etc/rogue_s --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 pipebuf (-y) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The rogue_s port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ja-rogue_s-1.3a_3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.3.1.pkg [pkg.DaveG.ca] Installing pkg-2.3.1... [pkg.DaveG.ca] Extracting pkg-2.3.1: .......... done ===> ja-rogue_s-1.3a_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of ja-rogue_s-1.3a_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The rogue_s port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-rogue_s-1.3a_3 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The rogue_s port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-rogue_s-1.3a_3 for building => SHA256 Checksum OK for rogue_s.tar.z. => SHA256 Checksum OK for rogue_s.patch02.z. => SHA256 Checksum OK for rogue_s.patch03.z. => SHA256 Checksum OK for rogue_s.message.z. => SHA256 Checksum OK for rogue_s.patch04. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The rogue_s port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-rogue_s-1.3a_3 for building ===> Extracting for ja-rogue_s-1.3a_3 ===> NOTICE: The rogue_s port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-rogue_s-1.3a_3 for building => SHA256 Checksum OK for rogue_s.tar.z. => SHA256 Checksum OK for rogue_s.patch02.z. => SHA256 Checksum OK for rogue_s.patch03.z. => SHA256 Checksum OK for rogue_s.message.z. => SHA256 Checksum OK for rogue_s.patch04. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for ja-rogue_s-1.3a_3 ===> Applying distribution patches for ja-rogue_s-1.3a_3 ===> Applying FreeBSD patches for ja-rogue_s-1.3a_3 from /usr/ports/japanese/rogue_s/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ja-rogue_s-1.3a_3 depends on executable: nkf - not found ===> Installing existing package /packages/All/ja-nkf-2.1.5_1,1.pkg [pkg.DaveG.ca] Installing ja-nkf-2.1.5_1,1... [pkg.DaveG.ca] Extracting ja-nkf-2.1.5_1,1: ... done ===> ja-rogue_s-1.3a_3 depends on executable: nkf - found ===> Returning to build of ja-rogue_s-1.3a_3 ===> ja-rogue_s-1.3a_3 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. ===> ja-rogue_s-1.3a_3 depends on file: /usr/local/bin/ccache - found ===> Returning to build of ja-rogue_s-1.3a_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for ja-rogue_s-1.3a_3 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for ja-rogue_s-1.3a_3 --- curses.o --- --- hit.o --- --- init.o --- --- invent.o --- --- level.o --- --- machdep.o --- --- main.o --- --- message.o --- --- monster.o --- --- move.o --- --- object.o --- --- pack.o --- --- play.o --- --- random.o --- --- ring.o --- --- room.o --- --- curses.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c curses.c -o curses.o --- hit.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c hit.c -o hit.o --- init.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c init.c -o init.o --- invent.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c invent.c -o invent.o --- level.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c level.c -o level.o --- machdep.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c machdep.c -o machdep.o --- main.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c main.c -o main.o --- message.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c message.c -o message.o --- monster.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c monster.c -o monster.o --- move.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c move.c -o move.o --- object.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c object.c -o object.o --- pack.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c pack.c -o pack.o --- play.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c play.c -o play.o --- random.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c random.c -o random.o --- ring.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c ring.c -o ring.o --- room.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c room.c -o room.o --- init.o --- init.c:51:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 51 | init(argc, argv) | ^ | int init.c:59:11: warning: passing arguments to 'md_getcwd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | md_getcwd(org_dir, 64); | ^ init.c:61:2: warning: call to undeclared function 'do_args'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | do_args(argc, argv); | ^ init.c:63:2: warning: call to undeclared function 'init_color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | init_color(); | ^ init.c:65:2: warning: call to undeclared function 'do_opts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | do_opts(); | ^ init.c:68:16: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | if ((!pn) || (strlen(pn) >= 30)) { | ^ init.c:68:16: note: include the header or explicitly provide a declaration for 'strlen' init.c:69:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 69 | clean_up(mesg[13]); | ^ init.c:75:2: warning: call to undeclared function 'initscr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | initscr(); | ^ init.c:79:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | clean_up(mesg[14]); | ^ init.c:83:2: warning: call to undeclared function 'start_window'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | start_window(); | ^ init.c:85:2: warning: call to undeclared function 'md_heed_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | md_heed_signals(); | ^ init.c:89:3: warning: call to undeclared function 'put_scores'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | put_scores((object *) 0, 0); | ^ init.c:91:9: warning: call to undeclared function 'md_gseed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | seed = md_gseed(); | ^ init.c:92:9: warning: call to undeclared function 'srrandom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | (void) srrandom(seed); | ^ init.c:98:3: warning: call to undeclared function 'restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | restore(rest_file); | ^ init.c:101:2: warning: call to undeclared function 'mix_colors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | mix_colors(); | ^ init.c:102:2: warning: call to undeclared function 'get_wand_and_ring_materials'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 102 | get_wand_and_ring_materials(); | ^ init.c:103:2: warning: call to undeclared function 'make_scroll_titles'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 103 | make_scroll_titles(); | ^ init.c:107:2: warning: call to undeclared function 'player_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | player_init(); | ^ init.c:108:18: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | party_counter = get_rand(1, PARTY_TIME); | ^ init.c:109:2: warning: call to undeclared function 'ring_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | ring_stats(0); | ^ init.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 | init(argc, argv) | ^ init.c:113:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 113 | player_init() | ^ | int init.c:120:2: warning: call to undeclared function 'get_food'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | get_food(obj, 1); | ^ init.c:121:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ init.c:129:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ init.c:130:2: warning: call to undeclared function 'do_wear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | do_wear(obj); | ^ init.c:138:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ init.c:139:2: warning: call to undeclared function 'do_wield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | do_wield(obj); | ^ init.c:148:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ init.c:153:18: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | obj->quantity = get_rand(25, 35); | ^ init.c:158:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ init.c:159:1: warning: non-void function does not return a value [-Wreturn-type] 159 | } | ^ init.c:161:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 161 | clean_up(estr) | ^ | int init.c:166:4: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 166 | move(DROWS-1, 0); | ^ init.c:168:4: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | clrtoeol(); | ^ init.c:173:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | refresh(); | ^ init.c:174:4: warning: call to undeclared function 'stop_window'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 174 | stop_window(); | ^ init.c:179:3: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 179 | putstr("\r\n"); | ^ init.c:186:2: warning: call to undeclared function 'md_exit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | md_exit(0); | ^ init.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 | clean_up(estr) | ^ init.c:187:1: warning: non-void function does not return a value [-Wreturn-type] 187 | } | ^ init.c:189:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 189 | start_window() | ^ | int init.c:196:2: warning: call to undeclared function 'crmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 196 | crmode(); | ^ init.c:197:2: warning: call to undeclared function 'noecho'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 197 | noecho(); | ^ init.c:202:2: warning: call to undeclared function 'nonl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 202 | nonl(); | ^ init.c:204:2: warning: call to undeclared function 'md_control_keyboard'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | md_control_keyboard(0); | ^ init.c:206:1: warning: non-void function does not return a value [-Wreturn-type] 206 | } | ^ init.c:208:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 208 | stop_window() | ^ | int init.c:210:2: warning: call to undeclared function 'endwin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | endwin(); | ^ init.c:212:2: warning: call to undeclared function 'md_control_keyboard'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 212 | md_control_keyboard(1); | ^ init.c:218:1: warning: non-void function does not return a value [-Wreturn-type] 218 | } | ^ init.c:221:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 221 | byebye() | ^ | int init.c:223:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 223 | md_ignore_signals(); | ^ init.c:229:2: warning: call to undeclared function 'md_heed_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | md_heed_signals(); | ^ init.c:230:1: warning: non-void function does not return a value [-Wreturn-type] 230 | } | ^ init.c:236:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 236 | onintr() | ^ | int init.c:238:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 238 | md_ignore_signals(); | ^ init.c:245:2: warning: call to undeclared function 'md_heed_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 245 | md_heed_signals(); | ^ init.c:249:1: warning: non-void function does not return a value [-Wreturn-type] 249 | } | ^ init.c:258:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 258 | error_save() | ^ | int init.c:261:2: warning: call to undeclared function 'save_into_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 261 | save_into_file(error_file); | ^ init.c:263:1: warning: non-void function does not return a value [-Wreturn-type] 263 | } | ^ init.c:265:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 265 | do_args(argc, argv) | ^ | int init.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] init.c:289:1: warning: non-void function does not return a value [-Wreturn-type] 289 | } | ^ init.c:330:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 330 | "λɤǧȤ", | ^~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ init.c:332:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 332 | "ưɽԤʤ", | ^~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ init.c:334:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 334 | "ϩγѤǻߤޤ餺˿ʤ", | ^~~~~~~~ ~~~~ ~~~~ ~~~~ init.c:335:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 335 | "ཪλɸɽ", | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ init.c:340:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 340 | "ɽ", | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ init.c:343:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 343 | "֥ե̾", | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ init.c:344:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 344 | "˥å͡", | ^~~~ ~~~~~~~~~~~~~~~~~~~~ init.c:346:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 346 | "ǥȥ̾", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ init.c:349:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 349 | "ɽޥåԥ", | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ init.c:406:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 406 | do_opts() | ^ | int init.c:416:21: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | if (ep = md_getenv(envname)) { | ^ init.c:416:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 416 | if (ep = md_getenv(envname)) { | ~~~^~~~~~~~~~~~~~~~~~~~ init.c:416:10: note: place parentheses around the assignment to silence this warning 416 | if (ep = md_getenv(envname)) { | ^ | ( ) init.c:416:10: note: use '==' to turn this assignment into an equality comparison 416 | if (ep = md_getenv(envname)) { | ^ | == init.c:422:1: warning: non-void function does not return a value [-Wreturn-type] 422 | } | ^ init.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 | set_opts(env) | ^ init.c:447:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 447 | if (!strncmp("no", ep, 2) || !strncmp("NO", ep, 2)) { | ^ init.c:447:8: note: include the header or explicitly provide a declaration for 'strncmp' init.c:461:5: warning: call to undeclared function 'env_get_value'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 461 | env_get_value(op->cp, ep+1, op->ab, op->nc); | ^ init.c:518:2: warning: call to undeclared function 'init_color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 518 | init_color(); | ^ init.c:523:3: warning: call to undeclared function 'md_chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 523 | md_chdir(game_dir); | ^ init.c:528:3: warning: call to undeclared function 'repaint_screen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 528 | repaint_screen(); | ^ init.c:533:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 533 | init_color() | ^ | int init.c:540:8: warning: call to undeclared function 'r_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 540 | j = r_index("wrgybmc?WRGYBMC", color_str[i], 0); | ^ init.c:558:1: warning: non-void function does not return a value [-Wreturn-type] 558 | } | ^ init.c:584:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 584 | env_get_value(s, e, add_blank, no_colon) | ^ | int init.c:613:22: warning: passing arguments to 'md_malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | if (!(*s = md_malloc(i + (add_blank ? 2 : 1)))) { | ^ init.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 | env_get_value(s, e, add_blank, no_colon) | ^ init.c:621:1: warning: non-void function does not return a value [-Wreturn-type] 621 | } | ^ 92 warnings generated. --- main.o --- main.c:24:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 24 | main(argc, argv) | ^ | int main.c:33:6: warning: call to undeclared function 'read_mesg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | if (read_mesg(argc, argv)) | ^ main.c:34:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | exit(1); | ^ main.c:34:3: note: include the header or explicitly provide a declaration for 'exit' main.c:36:6: warning: call to undeclared function 'init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 36 | if (init(argc - 1, argv + 1)) { /* restored game */ | ^ main.c:41:3: warning: call to undeclared function 'clear_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | clear_level(); | ^ main.c:42:3: warning: call to undeclared function 'make_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | make_level(); | ^ main.c:44:3: warning: call to undeclared function 'put_stairs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | put_stairs(); | ^ main.c:45:3: warning: call to undeclared function 'add_traps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | add_traps(); | ^ main.c:46:3: warning: call to undeclared function 'put_mons'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | put_mons(); | ^ main.c:47:3: warning: call to undeclared function 'put_player'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | put_player(party_room); | ^ main.c:48:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | print_stats(STAT_ALL); | ^ main.c:62:3: warning: call to undeclared function 'free_stuff'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | free_stuff(&level_objects); | ^ main.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 | main(argc, argv) | ^ main.c:79:10: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | if (strncmp(dp->d_name, "mesg", strlen("mesg")) == 0) { | ^ main.c:79:10: note: include the header or explicitly provide a declaration for 'strncmp' main.c:79:38: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | if (strncmp(dp->d_name, "mesg", strlen("mesg")) == 0) { | ^ main.c:79:38: note: include the header or explicitly provide a declaration for 'strlen' main.c:134:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 134 | if ((n = atoi(buf)) > 0 && n < 500) { | ^ main.c:102:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | int read_mesg(ac, av) | ^ 17 warnings generated. --- init.o --- --- save.o --- --- main.o --- --- score.o --- --- save.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c save.c -o save.o --- score.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c score.c -o score.o --- hit.o --- hit.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 | mon_hit(monster, other, flame) | ^ hit.c:27:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 27 | boolean flame; | ^ ./rogue.h:452:52: note: previous declaration is here 452 | void mon_hit(object *monster, char *other, boolean flame); | ^ hit.c:49:15: warning: passing arguments to 'mon_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | mn = mon_name(monster); | ^ hit.c:55:7: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | if (!rand_percent(hit_chance)) { | ^ hit.c:57:4: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | sprintf(hit_message + strlen(hit_message), | ^ hit.c:57:4: note: include the header or explicitly provide a declaration for 'sprintf' hit.c:57:26: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | sprintf(hit_message + strlen(hit_message), | ^ hit.c:57:26: note: include the header or explicitly provide a declaration for 'strlen' hit.c:71:12: warning: call to undeclared function 'get_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | damage = get_damage(monster->m_damage, 1); | ^ hit.c:74:20: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | if ((damage -= get_armor_class(rogue.armor)) < 0) { | ^ hit.c:82:20: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | minus = (long) (get_armor_class(rogue.armor) * 3); | ^ hit.c:93:3: warning: call to undeclared function 'rogue_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | rogue_damage(damage, monster); | ^ hit.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 | rogue_hit(monster, force_hit) | ^ hit.c:103:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 103 | boolean force_hit; | ^ ./rogue.h:453:41: note: previous declaration is here 453 | void rogue_hit(object *monster, boolean force_hit); | ^ hit.c:108:7: warning: call to undeclared function 'check_imitator'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | if (check_imitator(monster)) { | ^ hit.c:111:34: warning: call to undeclared function 'get_hit_chance'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | hit_chance = force_hit ? 100 : get_hit_chance(rogue.weapon); | ^ hit.c:116:8: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | if (!rand_percent(hit_chance)) { | ^ hit.c:123:12: warning: call to undeclared function 'get_weapon_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | damage = get_weapon_damage(rogue.weapon); | ^ hit.c:127:7: warning: call to undeclared function 'mon_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | if (mon_damage(monster, damage)) { /* still alive? */ | ^ hit.c:133:6: warning: call to undeclared function 'check_gold_seeker'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | RET: check_gold_seeker(monster); | ^ hit.c:134:3: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 134 | wake_up(monster); | ^ hit.c:138:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 138 | rogue_damage(d, monster) | ^ | int hit.c:144:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | print_stats(STAT_HP); | ^ hit.c:145:3: warning: call to undeclared function 'killed_by'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 145 | killed_by(monster, 0); | ^ hit.c:148:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | print_stats(STAT_HP); | ^ hit.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 | rogue_damage(d, monster) | ^ hit.c:149:1: warning: non-void function does not return a value [-Wreturn-type] 149 | } | ^ hit.c:151:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 151 | get_damage(ds, r) | ^ | int hit.c:155:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | register i = 0, j, n, d, total = 0; | ~~~~~~~~ ^ | int hit.c:155:18: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | register i = 0, j, n, d, total = 0; | ~~~~~~~~ ^ | int hit.c:155:21: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | register i = 0, j, n, d, total = 0; | ~~~~~~~~ ^ | int hit.c:155:24: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | register i = 0, j, n, d, total = 0; | ~~~~~~~~ ^ | int hit.c:155:27: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | register i = 0, j, n, d, total = 0; | ~~~~~~~~ ^ | int hit.c:158:7: warning: call to undeclared function 'get_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 158 | n = get_number(ds+i); | ^ hit.c:165:14: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 165 | total += get_rand(1, d); | ^ hit.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_damage(ds, r) | ^ hit.c:177:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 177 | get_w_damage(obj) | ^ | int hit.c:181:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 181 | register to_hit, damage; | ~~~~~~~~ ^ | int hit.c:181:19: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 181 | register to_hit, damage; | ~~~~~~~~ ^ | int hit.c:182:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 182 | register i = 0; | ~~~~~~~~ ^ | int hit.c:187:11: warning: call to undeclared function 'get_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | to_hit = get_number(obj->damage) + obj->hit_enchant; | ^ hit.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 | get_w_damage(obj) | ^ hit.c:196:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 196 | get_number(s) | ^ | int hit.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] hit.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 | lget_number(s) | ^ In file included from hit.c:13: ./rogue.h:437:6: 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] 437 | long lget_number(); | ^ hit.c:219:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 219 | to_hit(obj) | ^ | int hit.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] hit.c:228:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 228 | damage_for_strength() | ^ | int hit.c:247:21: warning: parameter 'damage' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 247 | mon_damage(monster, damage) | ^ 248 | object *monster; 249 | { hit.c:247:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 247 | mon_damage(monster, damage) | ^ | int hit.c:259:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 259 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ hit.c:259:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 259 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ hit.c:259:29: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 259 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ hit.c:263:16: warning: passing arguments to 'mon_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | mn = mon_name(monster); | ^ hit.c:268:3: warning: call to undeclared function 'add_exp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 268 | add_exp(monster->kill_exp, 1); | ^ hit.c:269:3: warning: call to undeclared function 'take_from_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 269 | take_from_pack(monster, &level_monsters); | ^ hit.c:274:3: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 274 | free_object(monster); | ^ hit.c:247:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | mon_damage(monster, damage) | ^ hit.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 | fight(to_the_death) | ^ hit.c:282:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 282 | boolean to_the_death; | ^ ./rogue.h:454:20: note: previous declaration is here 454 | void fight(boolean to_the_death); | ^ hit.c:289:7: warning: call to undeclared function 'get_direction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 289 | ch = get_direction(); | ^ hit.c:294:2: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 294 | get_dir_rc(ch, &row, &col, 0); | ^ hit.c:296:6: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 296 | c = mvinch(row, col); | ^ hit.c:298:5: warning: call to undeclared function 'can_move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 298 | (!can_move(rogue.row, rogue.col, row, col))) { | ^ hit.c:302:33: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | if (!(fight_monster = object_at(&level_monsters, row, col))) { | ^ hit.c:311:10: warning: call to undeclared function 'one_move_rogue'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 311 | (void) one_move_rogue(ch, 0); | ^ hit.c:316:23: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | monster = object_at(&level_monsters, row, col); | ^ hit.c:324:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 324 | get_dir_rc(dir, row, col, allow_off_screen) | ^ | int hit.c:324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] hit.c:375:1: warning: non-void function does not return a value [-Wreturn-type] 375 | } | ^ hit.c:377:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 377 | get_hit_chance(weapon) | ^ | int hit.c:377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] hit.c:387:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 387 | get_weapon_damage(weapon) | ^ | int hit.c:387: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 warnings generated. --- spechit.o --- --- message.o --- message.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 | message(msg, intrpt) | ^ message.c:33:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 33 | boolean intrpt; | ^ ./rogue.h:460:33: note: previous declaration is here 460 | void message(char *msg, boolean intrpt); | ^ message.c:40:3: warning: call to undeclared function 'md_slurp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | md_slurp(); | ^ message.c:45:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | mvaddstr(MIN_ROW-1, msg_col, mesg[11]); --- random.o --- random.c:19:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 19 | srrandom(x) | ^ | int random.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] random.c:36:1: warning: non-void function does not return a value [-Wreturn-type] 36 | } | ^ random.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 60 | get_rand(x, y) | ^ | int random.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] random.c:78:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | rand_percent(percentage) | ^ | int --- spechit.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c spechit.c -o spechit.o --- message.o --- | ^ message.c:46:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | refresh(); | ^ message.c:47:3: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | wait_for_ack(); | ^ message.c:51:2: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | mvaddstr(MIN_ROW-1, 0, msg); | ^ message.c:53:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | refresh(); | ^ --- random.o --- random.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] random.c:84:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 84 | coin_toss() | ^ | int 8 warnings generated. --- message.o --- message.c:55:12: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | msg_col = strlen(msg); | ^ message.c:55:12: note: include the header or explicitly provide a declaration for 'strlen' message.c:64:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 64 | remessage() | ^ | int message.c:69:1: warning: non-void function does not return a value [-Wreturn-type] 69 | } | ^ message.c:77:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | move(MIN_ROW-1, 0); | ^ message.c:78:2: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | clrtoeol(); | ^ message.c:79:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | refresh(); | ^ message.c:83:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 83 | get_direction() | ^ | int message.c:88:29: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | while (!is_direction(dir = rgetchar())) | ^ message.c:88:22: warning: passing arguments to 'is_direction' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | while (!is_direction(dir = rgetchar())) | ^ message.c:89:3: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | sound_bell(); | ^ message.c:94:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 94 | get_input_line(prompt, insert, buf, if_cancelled, add_blank, do_echo) | ^ | int message.c:100:6: warning: call to undeclared function 'do_input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 100 | n = do_input_line(1, 0, 0, prompt, insert, | ^ message.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 | get_input_line(prompt, insert, buf, if_cancelled, add_blank, do_echo) | ^ message.c:105:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 105 | input_line(row, col, insert, buf, ch) | ^ | int message.c:109:10: warning: call to undeclared function 'do_input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | return (do_input_line(0, row, col, "", insert, buf, "", 0, 1, ch)); | ^ message.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 | input_line(row, col, insert, buf, ch) | ^ message.c:112:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 112 | do_input_line(is_msg, row,col, prompt, insert, buf, if_cancelled, add_blank, do_echo, first_ch) | ^ | int message.c:133:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | mvaddstr(row, col, prompt); | ^ message.c:156:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 156 | move(row, col+n+i); | ^ message.c:157:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 157 | refresh(); | ^ message.c:166:9: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 166 | ch = rgetchar(); | ^ message.c:173:5: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | move(row, col+n+i); | ^ message.c:210:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | refresh(); | ^ message.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 | do_input_line(is_msg, row,col, prompt, insert, buf, if_cancelled, add_blank, do_echo, first_ch) | ^ message.c:261:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 261 | rgetchar() | ^ | int message.c:263:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 263 | register ch; | ~~~~~~~~ ^ | int message.c:278:4: warning: call to undeclared function 'wrefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 278 | wrefresh(curscr); | ^ message.c:307:4: warning: call to undeclared function 'save_screen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 307 | save_screen(); | ^ message.c:321:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 321 | register stat_mask; | ~~~~~~~~ ^ | int message.c:320:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 320 | print_stats(stat_mask) | ^ | int message.c:331:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 331 | mvaddstr(row, 0, mesg[56]); | ^ message.c:336:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 336 | mvaddstr(row, 4, buf); | ^ message.c:340:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | pad(buf, 2); | ^ message.c:348:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | mvaddstr(row, 7, mesg[57]); | ^ message.c:355:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 355 | mvaddstr(row, 13, buf); | ^ message.c:359:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 359 | pad(buf, 6); | ^ message.c:364:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 364 | mvaddstr(row, 20, mesg[58]); | ^ message.c:375:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | mvaddstr(row, 26, buf); | ^ message.c:379:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | pad(buf, 8); | ^ message.c:384:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 384 | mvaddstr(row, 35, mesg[59]); | ^ message.c:395:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | mvaddstr(row, 41, buf); | ^ message.c:396:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 396 | pad(buf, 6); | ^ message.c:400:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 400 | mvaddstr(row, 48, mesg[60]); | ^ message.c:405:22: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 405 | sprintf(buf, "%d", get_armor_class(rogue.armor)); | ^ message.c:407:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 407 | mvaddstr(row, 54, buf); | ^ message.c:411:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 411 | pad(buf, 2); | ^ message.c:416:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 416 | mvaddstr(row, 57, mesg[61]); | ^ message.c:424:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 424 | mvaddstr(row, 63, buf); | ^ message.c:428:3: warning: call to undeclared function 'pad'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 428 | pad(buf, 11); | ^ message.c:443:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 443 | mvaddstr(row, 75, hunger_str); | ^ message.c:444:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 444 | clrtoeol(); | ^ message.c:453:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 453 | refresh(); | ^ message.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 | print_stats(stat_mask) | ^ message.c:454:1: warning: non-void function does not return a value [-Wreturn-type] 454 | } | ^ message.c:480:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 480 | pad(s, n) | ^ | int message.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] message.c:489:1: warning: non-void function does not return a value [-Wreturn-type] 489 | } | ^ message.c:491:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 491 | save_screen() | ^ | int message.c:507:14: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | buf[j] = mvinch(i, j); | ^ message.c:520:3: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 520 | sound_bell(); | ^ message.c:522:1: warning: non-void function does not return a value [-Wreturn-type] 522 | } | ^ message.c:524:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 524 | sound_bell() | ^ | int message.c:528:1: warning: non-void function does not return a value [-Wreturn-type] 528 | } | ^ message.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 | is_digit(ch) | ^ In file included from message.c:14: ./rogue.h:419:9: 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] 419 | boolean is_digit(); | ^ message.c:537:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 537 | r_index(str, ch, last) | ^ | int message.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] 75 warnings generated. --- machdep.o --- machdep.c:153:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 153 | putstr(s) | ^ | int machdep.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] machdep.c:158:1: warning: non-void function does not return a value [-Wreturn-type] 158 | } | ^ machdep.c:183:16: warning: passing arguments to 'getcwd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | return (getcwd(dir, len)); | ^ machdep.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 | md_getcwd(dir, len) | ^ In file included from machdep.c:89: ./rogue.h:413:7: 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] 413 | char *md_getcwd(); | ^ machdep.c:205:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 205 | md_chdir(dir) | ^ | int machdep.c:210:10: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | return (chdir(dir)); | ^ machdep.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 | md_chdir(dir) | ^ machdep.c:267:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 267 | md_slurp() | ^ | int machdep.c:299:1: warning: non-void function does not return a value [-Wreturn-type] 299 | } | ^ machdep.c:320:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 320 | md_control_keyboard(mode) | ^ | int machdep.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] machdep.c:373:1: warning: non-void function does not return a value [-Wreturn-type] 373 | } | ^ machdep.c:392:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 392 | md_heed_signals() | ^ | int machdep.c:411:1: warning: non-void function does not return a value [-Wreturn-type] 411 | } | ^ machdep.c:425:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 425 | md_ignore_signals() | ^ | int machdep.c:444:1: warning: non-void function does not return a value [-Wreturn-type] 444 | } | ^ machdep.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 | md_get_file_id(fname) | ^ machdep.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 | md_link_count(fname) | ^ machdep.c:511:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 511 | md_gct(rt_buf) | ^ | int machdep.c:514:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 514 | struct tm *t, *localtime(); | ^ /usr/include/time.h:125:12: note: conflicting prototype is here 125 | struct tm *localtime(const time_t *); | ^ machdep.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 | md_gct(rt_buf) | ^ machdep.c:526:1: warning: non-void function does not return a value [-Wreturn-type] 526 | } | ^ machdep.c:544:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 544 | md_gfmt(fname, rt_buf) | ^ | int machdep.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] machdep.c:592:1: warning: non-void function does not return a value [-Wreturn-type] 592 | } | ^ machdep.c:609:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 609 | if (unlink(fname)) { | ^ machdep.c:606:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | md_df(fname) | ^ In file included from machdep.c:89: ./rogue.h:422:9: 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] 422 | boolean md_df(); | ^ machdep.c:632:20: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | if ((t = md_getenv("FIGHTER")) == NULL) /* by Yasha */ | ^ machdep.c:634:17: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 634 | t = md_getenv("USER"); /* by Yasha */ | ^ machdep.c:663:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 663 | md_sleep(nsecs) | ^ | int machdep.c:666:9: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 666 | (void) sleep(nsecs); | ^ machdep.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 | md_sleep(nsecs) | ^ machdep.c:667:1: warning: non-void function does not return a value [-Wreturn-type] 667 | } | ^ machdep.c:738:15: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | return getenv(name); | ^ machdep.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 | md_getenv(name) | ^ In file included from machdep.c:89: ./rogue.h:410:7: 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] 410 | char *md_getenv(); | ^ machdep.c:753:8: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] 753 | char *malloc(); | ^ machdep.c:753:8: note: 'malloc' is a builtin with type 'void *(unsigned long)' machdep.c:755:15: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | return malloc(n); | ^ machdep.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 | md_malloc(n) | ^ In file included from machdep.c:89: ./rogue.h:411:7: 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] 411 | char *md_malloc(); | ^ machdep.c:776:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 776 | md_gseed() | ^ | int machdep.c:779:9: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 779 | return(getpid()); | ^ machdep.c:796:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 796 | md_exit(status) | ^ | int machdep.c:800:6: warning: address of array 'org_dir' will always evaluate to 'true' [-Wpointer-bool-conversion] 800 | if (org_dir && *org_dir) | ^~~~~~~ ~~ machdep.c:803:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 803 | exit(status); | ^ machdep.c:803:2: note: include the header or explicitly provide a declaration for 'exit' machdep.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 | md_exit(status) | ^ machdep.c:885:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 885 | md_cbreak_no_echo_nonl(on) | ^ | int machdep.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] machdep.c:938:1: warning: non-void function does not return a value [-Wreturn-type] 938 | } | ^ machdep.c:974:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 974 | md_tstp() | ^ | int machdep.c:981:1: warning: non-void function does not return a value [-Wreturn-type] 981 | } | ^ 54 warnings generated. --- random.o --- --- throw.o --- --- message.o --- --- machdep.o --- --- throw.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c throw.c -o throw.o --- trap.o --- --- use.o --- --- curses.o --- curses.c:122:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 122 | initscr() | ^ | int curses.c:125:2: warning: call to undeclared function 'get_term_info'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 125 | get_term_info(); | ^ curses.c:127:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | clear(); | ^ curses.c:131:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | putstr(TI); | ^ curses.c:134:1: warning: non-void function does not return a value [-Wreturn-type] 134 | } | ^ --- ring.o --- ring.c:35:12: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | if ((ch = pack_letter(mesg[161], RING)) == CANCEL) { | ^ ring.c:38:32: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | if (!(ring = get_letter_object(ch))) { | ^ ring.c:55:9: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | ch = rgetchar(); | ^ ring.c:72:2: warning: call to undeclared function 'do_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | do_put_on(ring, (ch == 'l')? 1: 0); | ^ --- trap.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c trap.c -o trap.o --- curses.o --- curses.c:136:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 136 | endwin() | ^ | int curses.c:139:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | putstr("\033[m"); | ^ curses.c:148:2: warning: call to undeclared function 'md_cbreak_no_echo_nonl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | md_cbreak_no_echo_nonl(0); | ^ curses.c:149:1: warning: non-void function does not return a value [-Wreturn-type] 149 | } | ^ curses.c:152:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 152 | repaint_screen() | ^ | int --- ring.o --- ring.c:73:2: warning: call to undeclared function 'ring_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | ring_stats(1); | ^ ring.c:85:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 85 | do_put_on(ring, on_left) | ^ | int ring.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] ring.c:96:1: warning: non-void function does not return a value [-Wreturn-type] 96 | } | ^ ring.c:98:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 98 | remove_ring() | ^ | int ring.c:106:3: warning: call to undeclared function 'inv_rings'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | inv_rings(); --- curses.o --- curses.c:154:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 154 | register col, row; | ~~~~~~~~ ^ | int curses.c:154:16: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 154 | register col, row; | ~~~~~~~~ ^ | int curses.c:159:14: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 159 | if ((ch = mvinch(row, col)) != ' ') | ^ curses.c:160:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | mvaddch(row, col, colored(ch)); | ^ --- ring.o --- | ^ ring.c:114:9: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | ch = rgetchar(); | ^ ring.c:136:4: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | un_put_on(ring); | ^ ring.c:148:1: warning: non-void function does not return a value [-Wreturn-type] 148 | } | ^ ring.c:150:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 150 | un_put_on(ring) | ^ | int ring.c:162:2: warning: call to undeclared function 'ring_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 162 | ring_stats(1); | ^ --- curses.o --- curses.c:160:23: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | mvaddch(row, col, colored(ch)); | ^ curses.c:161:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | refresh(); | ^ curses.c:162:1: warning: non-void function does not return a value [-Wreturn-type] 162 | } | ^ curses.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | move(row, col) | ^ | int curses.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] curses.c:171:1: warning: non-void function does not return a value [-Wreturn-type] --- ring.o --- ring.c:150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | un_put_on(ring) | ^ ring.c:163:1: warning: non-void function does not return a value [-Wreturn-type] 163 | } | ^ ring.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | gr_ring(ring, assign_wk) | ^ | int ring.c:171:22: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | ring->which_kind = get_rand(0, (RINGS - 1)); | ^ ring.c:197:26: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 197 | while ((ring->class = (get_rand(0, 4) - 2)) == 0) ; --- curses.o --- 171 | } | ^ curses.c:173:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 173 | mvaddstr(row, col, str) | ^ | int curses.c:178:2: warning: call to undeclared function 'addstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | addstr(str); | ^ curses.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 | mvaddstr(row, col, str) | ^ curses.c:179:1: warning: non-void function does not return a value [-Wreturn-type] 179 | } | ^ curses.c:181:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 181 | addstr(str) | ^ | int --- ring.o --- | ^ ring.c:201:21: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 201 | ring->is_cursed = coin_toss(); | ^ ring.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 | gr_ring(ring, assign_wk) | ^ ring.c:204:1: warning: non-void function does not return a value [-Wreturn-type] 204 | } | ^ ring.c:206:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 206 | inv_rings() | ^ | int ring.c:231:1: warning: non-void function does not return a value [-Wreturn-type] 231 | } | ^ ring.c:233:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] --- play.o --- play.c:42:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | move(rogue.row, rogue.col); | ^ play.c:43:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | refresh(); | ^ play.c:46:14: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | ch = cmd = rgetchar(); | ^ play.c:52:4: warning: call to undeclared function 'rest'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 52 | rest((count > 0) ? count : 1); | ^ --- curses.o --- curses.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] curses.c:188:1: warning: non-void function does not return a value [-Wreturn-type] 188 | } | ^ curses.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 | addch(ch) | ^ curses.c:243:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 243 | mvaddch(row, col, ch) | ^ | int curses.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] curses.c:249:1: warning: non-void function does not return a value [-Wreturn-type] 249 | } | ^ --- ring.o --- 233 | ring_stats(pr) | ^ | int ring.c:293:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 293 | print_stats(STAT_STRENGTH); | ^ ring.c:294:3: warning: call to undeclared function 'relight'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 294 | relight(); | ^ ring.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 | ring_stats(pr) | ^ ring.c:296:1: warning: non-void function does not return a value [-Wreturn-type] 296 | } | ^ 30 warnings generated. --- play.o --- play.c:74:11: warning: call to undeclared function 'one_move_rogue'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | (void) one_move_rogue(ch, 1); | ^ play.c:92:4: warning: call to undeclared function 'multiple_move_rogue'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | multiple_move_rogue(ch); | ^ play.c:104:4: warning: call to undeclared function 'move_onto'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | move_onto(); | ^ play.c:113:4: warning: call to undeclared function 'remove_ring'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | remove_ring(); | ^ --- curses.o --- curses.c:252:18: warning: parameter 'ecol' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 252 | touch(row, bcol, ecol) | ^ 253 | register int row; 254 | { curses.c:252:12: warning: parameter 'bcol' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 252 | touch(row, bcol, ecol) | ^ 253 | register int row; 254 | { curses.c:252:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 252 | touch(row, bcol, ecol) | ^ | int curses.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] curses.c:260:1: warning: non-void function does not return a value [-Wreturn-type] 260 | } | ^ --- play.o --- play.c:116:4: warning: call to undeclared function 'remessage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | remessage(); | ^ play.c:119:4: warning: call to undeclared function 'wizardize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | wizardize(); | ^ play.c:122:8: warning: call to undeclared function 'drop_check'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 122 | if (drop_check()) { | ^ play.c:127:8: warning: call to undeclared function 'check_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | if (check_up()) { | ^ --- curses.o --- curses.c:263:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 263 | refresh() | ^ | int curses.c:285:7: warning: call to undeclared function 'put_st_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 285 | put_st_char(*tp++ = *bp++); | ^ curses.c:299:1: warning: non-void function does not return a value [-Wreturn-type] 299 | } | ^ curses.c:301:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 301 | wrefresh(scr) | ^ | int curses.c:316:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 316 | putstr(CL); | ^ --- play.o --- play.c:133:4: warning: call to undeclared function 'inv_armor_weapon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | inv_armor_weapon(ch == ')'); | ^ play.c:136:4: warning: call to undeclared function 'inv_rings'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | inv_rings(); | ^ play.c:145:4: warning: call to undeclared function 'take_off'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 145 | take_off(); | ^ play.c:189:21: warning: passing arguments to 'is_digit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | } while (is_digit(ch)); | ^ --- curses.o --- curses.c:332:5: warning: call to undeclared function 'put_st_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | put_st_char((int) p[col++]); | ^ curses.c:301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | wrefresh(scr) | ^ curses.c:342:1: warning: non-void function does not return a value [-Wreturn-type] 342 | } | ^ curses.c:344:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 344 | mvinch(row, col) | ^ | int curses.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] --- play.o --- play.c:205:5: warning: call to undeclared function 'draw_magic_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 205 | draw_magic_map(); | ^ play.c:212:5: warning: call to undeclared function 'show_traps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 212 | show_traps(); | ^ play.c:219:5: warning: call to undeclared function 'show_objects'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | show_objects(); | ^ play.c:225:4: warning: call to undeclared function 'show_average_hp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | show_average_hp(); --- curses.o --- curses.c:355:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 355 | clear() | ^ | int curses.c:360:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 360 | putstr(CL); | ^ curses.c:365:2: warning: call to undeclared function 'clear_buffers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 365 | clear_buffers(); | ^ curses.c:366:1: warning: non-void function does not return a value [-Wreturn-type] 366 | } | ^ curses.c:368:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 368 | clrtoeol() | ^ | int curses.c:378:1: warning: non-void function does not return a value [-Wreturn-type] 378 | } | ^ --- play.o --- | ^ play.c:248:4: warning: call to undeclared function 'kick_into_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | kick_into_pack(); | ^ play.c:256:4: warning: call to undeclared function 'draw_magic_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 256 | draw_magic_map(); | ^ play.c:258:4: warning: call to undeclared function 'show_objects'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 258 | show_objects(); | ^ play.c:259:4: warning: call to undeclared function 'show_traps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 259 | show_traps(); --- curses.o --- curses.c:381:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 381 | color(col) | ^ | int curses.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] curses.c:385:1: warning: non-void function does not return a value [-Wreturn-type] 385 | } | ^ curses.c:387:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 387 | standout() | ^ | int curses.c:390:1: warning: non-void function does not return a value [-Wreturn-type] 390 | } | ^ curses.c:392:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 392 | standend() | ^ | int curses.c:395:1: warning: non-void function does not return a value [-Wreturn-type] 395 | } | ^ --- play.o --- | ^ play.c:262:4: warning: call to undeclared function 'help'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 262 | help(); | ^ play.c:265:4: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 265 | print_stats(STAT_ALL); | ^ play.c:274:4: warning: call to undeclared function 'options'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 274 | options(); | ^ play.c:277:4: warning: call to undeclared function 'doshell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | doshell(); | ^ --- curses.o --- curses.c:409:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 409 | crmode() | ^ | int curses.c:411:2: warning: call to undeclared function 'md_cbreak_no_echo_nonl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 411 | md_cbreak_no_echo_nonl(1); | ^ curses.c:412:1: warning: non-void function does not return a value [-Wreturn-type] 412 | } | ^ curses.c:416:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 416 | noecho() | ^ | int curses.c:419:1: warning: non-void function does not return a value [-Wreturn-type] 419 | } | ^ curses.c:423:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 423 | nonl() | ^ | int --- play.o --- play.c:298:2: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 298 | "ڡƤ", | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ play.c:305:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 305 | help() | ^ | int play.c:312:22: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 312 | descs[row][col] = mvinch(row, col); | ^ play.c:313:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 313 | clear(); | ^ --- curses.o --- curses.c:426:1: warning: non-void function does not return a value [-Wreturn-type] 426 | } | ^ curses.c:429:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 429 | clear_buffers() | ^ | int curses.c:449:1: warning: non-void function does not return a value [-Wreturn-type] 449 | } | ^ curses.c:480:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 480 | register row, col; | ~~~~~~~~ ^ | int curses.c:480:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 480 | register row, col; | ~~~~~~~~ ^ | int curses.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 | put_cursor(row, col) | ^ --- play.o --- play.c:315:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 315 | mvaddstr(n, 0, help_message[n]); | ^ play.c:316:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 316 | clrtoeol(); | ^ play.c:318:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 318 | refresh(); | ^ play.c:319:2: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 319 | wait_for_ack(); | ^ --- curses.o --- curses.c:482:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 482 | register i, rdif, cdif; | ~~~~~~~~ ^ | int curses.c:482:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 482 | register i, rdif, cdif; | ~~~~~~~~ ^ | int curses.c:482:20: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 482 | register i, rdif, cdif; | ~~~~~~~~ ^ | int curses.c:491:5: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 491 | putstr((row < cur_row) ? UC : DO); | ^ --- play.o --- play.c:326:3: warning: call to undeclared function 'touch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | touch(row, 0, DCOLS-1); | ^ play.c:329:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 329 | move(row, 0); | ^ play.c:339:11: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 339 | addch(colored(descs[row][col])); | ^ play.c:348:1: warning: non-void function does not return a value [-Wreturn-type] 348 | } | ^ play.c:366:7: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- curses.o --- curses.c:504:5: warning: call to undeclared function 'put_st_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 504 | put_st_char((int) ch); | ^ curses.c:522:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 522 | putstr(cm_esc); | ^ curses.c:556:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 556 | register ch; | ~~~~~~~~ ^ | int curses.c:555:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 555 | put_st_char(ch) | ^ | int curses.c:558:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 558 | register m; --- play.o --- 366 | ch = rgetchar(); | ^ play.c:375:18: warning: call to undeclared function 'r_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | } else if ((n = r_index("@.|-+#%^*:])?!/=,", ch, 0)) != -1) { | ^ play.c:379:3: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | sound_bell(); | ^ play.c:386:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 386 | options() | ^ | int play.c:398:22: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 398 | descs[row][col] = mvinch(row, col); | ^ --- curses.o --- | ~~~~~~~~ ^ | int curses.c:576:3: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 576 | putstr(cstr[m >> 8]); | ^ curses.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 | put_st_char(ch) | ^ curses.c:580:1: warning: non-void function does not return a value [-Wreturn-type] 580 | } | ^ curses.c:637:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 637 | get_term_info() | ^ | int curses.c:644:21: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | if (tcf = md_getenv("TERMCAP")) { | ^ --- play.o --- play.c:399:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 399 | clear(); | ^ play.c:401:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 401 | mvaddstr(n, 0, optdesc[n]); | ^ play.c:402:3: warning: call to undeclared function 'addstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 402 | addstr(" (\""); | ^ play.c:411:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 411 | i = strlen(cbuf[n]); | ^ --- curses.o --- curses.c:644:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 644 | if (tcf = md_getenv("TERMCAP")) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~ curses.c:644:10: note: place parentheses around the assignment to silence this warning 644 | if (tcf = md_getenv("TERMCAP")) { | ^ | ( ) curses.c:644:10: note: use '==' to turn this assignment into an equality comparison 644 | if (tcf = md_getenv("TERMCAP")) { | ^ | == curses.c:645:7: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 645 | if (strlen(tcf) > 40 | ^ curses.c:645:7: note: include the header or explicitly provide a declaration for 'strlen' --- play.o --- play.c:411:9: note: include the header or explicitly provide a declaration for 'strlen' play.c:422:4: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 422 | move(i, pos[i]); | ^ play.c:425:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 425 | refresh(); | ^ play.c:426:8: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | ch = rgetchar(); | ^ play.c:429:7: warning: call to undeclared function 'r_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 429 | if (r_index("-\r\n", ch, 0) > -1) { --- curses.o --- curses.c:647:4: warning: call to undeclared function 'tc_gtdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 647 | tc_gtdata(tcf, (FILE *) NULL, buf); | ^ curses.c:655:4: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 655 | clean_up("I need a termcap file"); | ^ curses.c:657:24: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | if (!(term = md_getenv("TERM"))) { | ^ curses.c:667:17: warning: passing arguments to 'tc_tname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | if (!tc_tname(fp, term, buf)) { --- play.o --- | ^ play.c:431:5: warning: call to undeclared function 'addstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 431 | addstr(bbuf[i]? "Yes": "No"); | ^ play.c:432:5: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 432 | clrtoeol(); | ^ play.c:444:5: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 444 | mvaddstr(i, pos[i], "(Yes or No)"); | ^ play.c:447:4: warning: call to undeclared function 'addstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- curses.o --- | ^ curses.c:672:4: warning: call to undeclared function 'tc_gtdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 672 | tc_gtdata(NULL, fp, buf); /* by Yasha */ | ^ curses.c:674:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 674 | } while (term = TC); | ~~~~~^~~~ curses.c:674:16: note: place parentheses around the assignment to silence this warning 674 | } while (term = TC); | ^ | ( ) curses.c:674:16: note: use '==' to turn this assignment into an equality comparison 674 | } while (term = TC); | ^ | == curses.c:680:2: warning: call to undeclared function 'tc_cmget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- play.o --- 447 | addstr((ch == 'y')? "Yes": "No"); | ^ play.c:448:4: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 448 | clrtoeol(); | ^ play.c:452:8: warning: call to undeclared function 'input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 452 | j = input_line(i, pos[i], cbuf[i], optbuf, ch); | ^ play.c:461:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 461 | move(n+1, 0); | ^ play.c:463:3: warning: call to undeclared function 'addstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- curses.o --- 680 | tc_cmget(); | ^ curses.c:682:1: warning: non-void function does not return a value [-Wreturn-type] 682 | } | ^ curses.c:687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | tc_tname(fp, term, buf) | ^ curses.c:44:9: 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] 44 | boolean tc_tname(); | ^ curses.c:732:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 732 | tc_gtdata(tcf, fp, buf) /* by Yasha */ | ^ | int --- play.o --- 463 | addstr("ڡƤ"); | ^ play.c:463:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 463 | addstr("ڡƤ"); | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ play.c:467:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 467 | refresh(); | ^ play.c:468:3: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | wait_for_ack(); | ^ --- curses.o --- curses.c:757:10: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 757 | if (!strncmp(buf + i, ":cl=", 4)) { | ^ curses.c:757:10: note: include the header or explicitly provide a declaration for 'strncmp' curses.c:758:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 758 | tc_gets(buf + i, &CL); | ^ curses.c:760:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 760 | tc_gets(buf + i, &CM); | ^ --- play.o --- play.c:473:3: warning: call to undeclared function 'touch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 473 | touch(row, 0, DCOLS-1); | ^ play.c:479:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 479 | move(row, 0); | ^ play.c:489:11: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 489 | addch(colored(descs[row][col])); | ^ play.c:514:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 514 | refresh(); | ^ play.c:515:1: warning: non-void function does not return a value [-Wreturn-type] --- curses.o --- curses.c:762:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 762 | tc_gets(buf + i, &UC); | ^ curses.c:764:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 764 | tc_gets(buf + i, &DO); | ^ curses.c:766:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 766 | tc_gets(buf + i, &VS); | ^ curses.c:768:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- play.o --- 515 | } | ^ play.c:523:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 523 | doshell() | ^ | int play.c:539:22: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | if ((cmd = md_getenv("SHELL")) == NULL) | ^ play.c:542:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 542 | move(DROWS-1, 0); | ^ play.c:543:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 543 | refresh(); | ^ --- curses.o --- 768 | tc_gets(buf + i, &VE); | ^ curses.c:770:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 770 | tc_gets(buf + i, &TI); | ^ curses.c:772:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 772 | tc_gets(buf + i, &TE); | ^ curses.c:774:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 774 | tc_gets(buf + i, &VS); | ^ --- play.o --- play.c:544:2: warning: call to undeclared function 'stop_window'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 544 | stop_window(); | ^ play.c:546:3: warning: call to undeclared function 'md_chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | md_chdir(org_dir); | ^ play.c:561:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 561 | md_ignore_signals(); | ^ play.c:565:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 565 | putstr(mesg[157]); | ^ --- curses.o --- curses.c:776:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 776 | tc_gets(buf + i, &VE); | ^ curses.c:778:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 778 | tc_gets(buf + i, &SO); | ^ curses.c:780:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 780 | tc_gets(buf + i, &SE); | ^ curses.c:782:6: warning: call to undeclared function 'tc_gnum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- play.o --- play.c:567:2: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 567 | system(cmd); | ^ play.c:568:2: warning: call to undeclared function 'md_heed_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 568 | md_heed_signals(); | ^ play.c:572:2: warning: call to undeclared function 'start_window'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 572 | start_window(); | ^ play.c:573:2: warning: call to undeclared function 'wrefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 573 | wrefresh(curscr); | ^ play.c:574:1: warning: non-void function does not return a value [-Wreturn-type] 574 | } | ^ 82 warnings generated. --- curses.o --- 782 | tc_gnum(buf + i, &LINES); | ^ curses.c:784:6: warning: call to undeclared function 'tc_gnum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 784 | tc_gnum(buf + i, &COLS); | ^ curses.c:787:6: warning: call to undeclared function 'tc_gets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 787 | tc_gets(buf + i, &TC); | ^ curses.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 | tc_gtdata(tcf, fp, buf) /* by Yasha */ | ^ curses.c:799:1: warning: non-void function does not return a value [-Wreturn-type] 799 | } | ^ curses.c:803:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 803 | tc_gets(ibuf, tcstr) | ^ | int curses.c:813:28: warning: passing arguments to 'is_digit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 813 | while (ibuf[i] && is_digit(ibuf[i])) { | ^ curses.c:853:40: warning: passing arguments to 'is_digit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | while (k < 3 && ibuf[i] && is_digit(ibuf[i])) { | ^ curses.c:873:26: warning: passing arguments to 'md_malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | if (!(*tcstr = md_malloc(j + 1))) { | ^ curses.c:874:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 874 | clean_up("cannot alloc() memory"); | ^ curses.c:803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 803 | tc_gets(ibuf, tcstr) | ^ curses.c:877:1: warning: non-void function does not return a value [-Wreturn-type] 877 | } | ^ curses.c:881:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 881 | tc_gnum(ibuf, n) | ^ | int curses.c:890:17: warning: passing arguments to 'is_digit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | while (is_digit(ibuf[i])) { | ^ curses.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 | tc_gnum(ibuf, n) | ^ curses.c:895:1: warning: non-void function does not return a value [-Wreturn-type] 895 | } | ^ curses.c:899:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 899 | tstp() | ^ | int curses.c:902:2: warning: call to undeclared function 'md_tstp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 902 | md_tstp(); | ^ curses.c:904:2: warning: call to undeclared function 'start_window'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 904 | start_window(); | ^ curses.c:905:2: warning: call to undeclared function 'putstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 905 | putstr(TI); | ^ curses.c:908:2: warning: call to undeclared function 'md_slurp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 908 | md_slurp(); | ^ curses.c:909:1: warning: non-void function does not return a value [-Wreturn-type] 909 | } | ^ curses.c:913:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 913 | tc_cmget() | ^ | int curses.c:971:1: warning: non-void function does not return a value [-Wreturn-type] 971 | } | ^ 135 warnings generated. --- use.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c use.c -o use.o --- ring.o --- --- curses.o --- --- zap.o --- --- play.o --- --- room.o --- room.c:21:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 21 | light_up_room(rn) | ^ | int room.c:34:29: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | if (monster = object_at(&level_monsters, i, j)) { | ^ room.c:34:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 34 | if (monster = object_at(&level_monsters, i, j)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ room.c:34:18: note: place parentheses around the assignment to silence this warning 34 | if (monster = object_at(&level_monsters, i, j)) { --- zap.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DUNIX -DUNIX_SYSV -DUNIX_386BSD -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DMESG_DIR=\"/usr/local/share/rogue_s\" -DLIST_MESSAGES -c zap.c -o zap.o --- room.o --- | ^ | ( ) room.c:34:18: note: use '==' to turn this assignment into an equality comparison 34 | if (monster = object_at(&level_monsters, i, j)) { | ^ | == room.c:37:8: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | get_dungeon_char(monster->row, monster->col); | ^ room.c:41:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | mvaddch(i, j, colored(get_dungeon_char(i, j))); | ^ room.c:41:19: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | mvaddch(i, j, colored(get_dungeon_char(i, j))); | ^ room.c:41:27: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | mvaddch(i, j, colored(get_dungeon_char(i, j))); | ^ room.c:44:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ room.c:44:33: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ room.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 | light_up_room(rn) | ^ room.c:46:1: warning: non-void function does not return a value [-Wreturn-type] 46 | } | ^ room.c:49:20: warning: parameter 'col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 49 | light_passage(row, col) | ^ 50 | { room.c:49:15: warning: parameter 'row' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 49 | light_passage(row, col) | ^ 50 | { room.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 | light_passage(row, col) | ^ room.c:61:8: warning: call to undeclared function 'can_move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | if (can_move(row, col, row+i, col+j)) { | ^ room.c:62:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | mvaddch(row+i, col+j, colored(get_dungeon_char(row+i, col+j))); | ^ room.c:62:27: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | mvaddch(row+i, col+j, colored(get_dungeon_char(row+i, col+j))); | ^ room.c:62:35: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | mvaddch(row+i, col+j, colored(get_dungeon_char(row+i, col+j))); | ^ room.c:68:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 68 | darken_room(rn) | ^ | int room.c:76:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 76 | mvaddch(i, j, colored(' ')); | ^ room.c:76:19: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 76 | mvaddch(i, j, colored(' ')); | ^ room.c:80:11: warning: call to undeclared function 'imitating'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | if (!imitating(i, j)) { | ^ room.c:81:7: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | mvaddch(i, j, colored(' ')); | ^ room.c:81:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | mvaddch(i, j, colored(' ')); | ^ room.c:84:7: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | mvaddch(i, j, colored('^')); | ^ room.c:84:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | mvaddch(i, j, colored('^')); | ^ room.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 | darken_room(rn) | ^ room.c:90:1: warning: non-void function does not return a value [-Wreturn-type] 90 | } | ^ room.c:93:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 93 | register row, col; | ~~~~~~~~ ^ | int room.c:93:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 93 | register row, col; | ~~~~~~~~ ^ | int room.c:92:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 92 | get_dungeon_char(row, col) | ^ | int room.c:98:10: warning: call to undeclared function 'gmc_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | return(gmc_row_col(row, col)); | ^ room.c:103:18: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | obj = object_at(&level_objects, row, col); | ^ room.c:104:10: warning: call to undeclared function 'get_mask_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | return(get_mask_char(obj->what_is)); | ^ room.c:92:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | get_dungeon_char(row, col) | ^ room.c:140:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 140 | get_mask_char(mask) | ^ | int room.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] room.c:167:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 167 | gr_row_col(row, col, mask) | ^ | int room.c:175:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 175 | r = get_rand(MIN_ROW, DROWS-2); | ^ room.c:177:8: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | rn = get_room_number(r, c); | ^ room.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 | gr_row_col(row, col, mask) | ^ room.c:186:1: warning: non-void function does not return a value [-Wreturn-type] 186 | } | ^ room.c:188:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 188 | gr_room() | ^ | int room.c:193:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 193 | i = get_rand(0, MAXROOMS-1); | ^ room.c:199:15: warning: parameter 'rn' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 199 | party_objects(rn) | ^ 200 | { room.c:199:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 199 | party_objects(rn) | ^ | int room.c:208:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 208 | n = get_rand(5, 10); | ^ room.c:224:4: warning: call to undeclared function 'place_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 224 | place_at(obj, row, col); | ^ room.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | party_objects(rn) | ^ room.c:232:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 232 | register row, col; | ~~~~~~~~ ^ | int room.c:232:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 232 | register row, col; | ~~~~~~~~ ^ | int room.c:231:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 231 | get_room_number(row, col) | ^ | int room.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] room.c:245:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 245 | is_all_connected() | ^ | int room.c:256:2: warning: call to undeclared function 'visit_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 256 | visit_rooms(starting_room); | ^ room.c:266:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 266 | visit_rooms(rn) | ^ | int room.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] room.c:280:1: warning: non-void function does not return a value [-Wreturn-type] 280 | } | ^ room.c:282:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 282 | draw_magic_map() | ^ | int room.c:293:16: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 293 | if (((ch = mvinch(i, j)) == ' ') || | ^ room.c:313:13: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 313 | addch(colored(ch)); | ^ room.c:318:30: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | if (monster = object_at(&level_monsters, i, j)) { | ^ room.c:318:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 318 | if (monster = object_at(&level_monsters, i, j)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ room.c:318:19: note: place parentheses around the assignment to silence this warning 318 | if (monster = object_at(&level_monsters, i, j)) { | ^ | ( ) room.c:318:19: note: use '==' to turn this assignment into an equality comparison 318 | if (monster = object_at(&level_monsters, i, j)) { | ^ | == room.c:326:1: warning: non-void function does not return a value [-Wreturn-type] 326 | } | ^ room.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 | dr_course(monster, entering, row, col) | ^ room.c:331:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 331 | boolean entering; | ^ ./rogue.h:479:41: note: previous declaration is here 479 | void dr_course(object *monster, boolean entering, short row, short col); | ^ room.c:332:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 332 | short row, col; | ^ ./rogue.h:479:57: note: previous declaration is here 479 | void dr_course(object *monster, boolean entering, short row, short col); | ^ room.c:332:12: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 332 | short row, col; | ^ ./rogue.h:479:68: note: previous declaration is here 479 | void dr_course(object *monster, boolean entering, short row, short col); | ^ room.c:340:14: warning: passing arguments to 'mon_sees' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | if (mon_sees(monster, rogue.row, rogue.col)) { | ^ room.c:348:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | r = get_rand(0, MAXROOMS-1); | ^ room.c:394:8: warning: call to undeclared function 'get_oth_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 394 | if (!get_oth_room(rn, &row, &col)) { | ^ room.c:403:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 403 | get_oth_room(rn, row, col) | ^ | int room.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] 73 warnings generated. --- object.o --- object.c:134:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 134 | register c; | ~~~~~~~~ ^ | int object.c:133:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 133 | colored(c) | ^ | int object.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] object.c:150:6: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); | ^ object.c:150:20: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); --- pack.o --- pack.c:18:24: warning: parameter 'condense' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 18 | add_to_pack(obj, pack, condense) | ^ 19 | object *obj, *pack; 20 | { pack.c:24:27: warning: passing arguments to 'check_duplicate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | if (op = check_duplicate(obj, pack)) { | ^ pack.c:24:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 24 | if (op = check_duplicate(obj, pack)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ pack.c:24:10: note: place parentheses around the assignment to silence this warning 24 | if (op = check_duplicate(obj, pack)) { | ^ --- object.o --- | ^ object.c:151:9: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 151 | while (rand_percent(33)) { | ^ object.c:155:3: warning: call to undeclared function 'make_party'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 155 | make_party(); | ^ object.c:156:19: warning: call to undeclared function 'next_party'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 156 | party_counter = next_party(); | ^ object.c:160:3: warning: call to undeclared function 'rand_place'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | rand_place(obj); | ^ --- pack.o --- | ( ) pack.c:24:10: note: use '==' to turn this assignment into an equality comparison 24 | if (op = check_duplicate(obj, pack)) { | ^ | == pack.c:25:4: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | free_object(obj); | ^ pack.c:28:17: warning: call to undeclared function 'next_avail_ichar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 28 | obj->ichar = next_avail_ichar(); | ^ pack.c:18:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | add_to_pack(obj, pack, condense) | ^ --- object.o --- object.c:162:2: warning: call to undeclared function 'put_gold'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 162 | put_gold(); | ^ object.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | put_gold() | ^ | int object.c:178:18: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | if (is_maze || rand_percent(GOLD_PERCENT)) { | ^ object.c:180:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 180 | row = get_rand(rooms[i].top_row+1, | ^ --- pack.o --- In file included from pack.c:13: ./rogue.h:424:9: 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] 424 | object *add_to_pack(); | ^ pack.c:59:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 59 | take_from_pack(obj, pack) | ^ | int pack.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] pack.c:66:1: warning: non-void function does not return a value [-Wreturn-type] 66 | } | ^ pack.c:69:14: warning: parameter 'col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 69 | pick_up(row, col, status) | ^ 70 | short *status; 71 | { --- object.o --- object.c:186:6: warning: call to undeclared function 'plant_gold'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | plant_gold(row, col, is_maze); | ^ object.c:192:1: warning: non-void function does not return a value [-Wreturn-type] 192 | } | ^ object.c:194:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 194 | plant_gold(row, col, is_maze) | ^ | int object.c:203:18: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); | ^ --- pack.o --- pack.c:69:9: warning: parameter 'row' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 69 | pick_up(row, col, status) | ^ 70 | short *status; 71 | { pack.c:74:17: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | obj = object_at(&level_objects, row, col); | ^ pack.c:81:3: warning: call to undeclared function 'vanish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | vanish(obj, 0, &level_objects); | ^ pack.c:92:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | print_stats(STAT_GOLD); | ^ --- object.o --- object.c:208:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | (void) add_to_pack(obj, &level_objects, 0); | ^ object.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 | plant_gold(row, col, is_maze) | ^ object.c:209:1: warning: non-void function does not return a value [-Wreturn-type] 209 | } | ^ object.c:211:20: warning: parameter 'col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 211 | place_at(obj, row, col) | ^ 212 | object *obj; 213 | { object.c:211:15: warning: parameter 'row' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 211 | place_at(obj, row, col) | ^ --- pack.o --- pack.c:95:6: warning: call to undeclared function 'pack_count'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | if (pack_count(obj) >= MAX_PACK_COUNT) { | ^ pack.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 | pick_up(row, col, status) | ^ In file included from pack.c:13: ./rogue.h:433:9: 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] 433 | object *pick_up(); | ^ pack.c:121:12: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | if ((ch = pack_letter(mesg[90], ALL_OBJECTS)) == CANCEL) { | ^ --- object.o --- 212 | object *obj; 213 | { object.c:211:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 211 | place_at(obj, row, col) | ^ | int object.c:217:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | (void) add_to_pack(obj, &level_objects, 0); | ^ object.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 | place_at(obj, row, col) | ^ object.c:218:1: warning: non-void function does not return a value [-Wreturn-type] 218 | } | ^ object.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 | object_at(pack, row, col) | ^ --- pack.o --- pack.c:124:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (!(obj = get_letter_object(ch))) { | ^ pack.c:133:3: warning: call to undeclared function 'unwield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | unwield(rogue.weapon); | ^ pack.c:139:3: warning: call to undeclared function 'mv_aquatars'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | mv_aquatars(); | ^ pack.c:140:3: warning: call to undeclared function 'unwear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | unwear(rogue.armor); | ^ --- object.o --- In file included from object.c:13: ./rogue.h:432:9: 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] 432 | object *object_at(); | ^ object.c:236:19: warning: parameter 'ch' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 236 | get_letter_object(ch) | ^ 237 | { object.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 | get_letter_object(ch) | ^ In file included from object.c:13: ./rogue.h:426:9: 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] 426 | object *get_letter_object(); --- pack.o --- pack.c:141:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 141 | print_stats(STAT_ARMOR); | ^ pack.c:147:3: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | un_put_on(obj); | ^ pack.c:162:2: warning: call to undeclared function 'place_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 162 | place_at(obj, rogue.row, rogue.col); | ^ pack.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 | check_duplicate(obj, pack) | ^ In file included from pack.c:13: --- object.o --- | ^ object.c:248:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 248 | free_stuff(objlist) | ^ | int object.c:257:3: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 257 | free_object(obj); | ^ object.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 | free_stuff(objlist) | ^ object.c:259:1: warning: non-void function does not return a value [-Wreturn-type] 259 | } | ^ object.c:262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | name_of(obj) | ^ In file included from object.c:13: --- pack.o --- ./rogue.h:430:9: 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] 430 | object *check_duplicate(); | ^ pack.c:208:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 208 | next_avail_ichar() | ^ | int pack.c:211:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 211 | register i; | ~~~~~~~~ ^ | int pack.c:230:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 230 | wait_for_ack() | ^ | int pack.c:232:9: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- object.o --- ./rogue.h:408:7: 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] 408 | char *name_of(); | ^ object.c:375:3: warning: call to undeclared function 'gr_weapon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | gr_weapon(obj, 1); | ^ object.c:378:3: warning: call to undeclared function 'gr_armor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 378 | gr_armor(obj, 1); | ^ object.c:381:3: warning: call to undeclared function 'gr_wand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 381 | gr_wand(obj); | ^ --- pack.o --- 232 | while (rgetchar() != ' ') ; | ^ pack.c:233:1: warning: non-void function does not return a value [-Wreturn-type] 233 | } | ^ pack.c:235:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 235 | pack_letter(prompt, mask) | ^ | int pack.c:242:16: warning: passing arguments to 'mask_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | if (!mask_pack(&rogue.pack, mask)) { | ^ pack.c:251:9: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 251 | ch = rgetchar(); | ^ --- object.o --- object.c:384:3: warning: call to undeclared function 'get_food'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 384 | get_food(obj, 0); | ^ object.c:387:3: warning: call to undeclared function 'gr_ring'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 387 | gr_ring(obj, 1); | ^ object.c:403:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 403 | percent = get_rand(1, 91); | ^ object.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 | gr_scroll(obj) | ^ --- pack.o --- pack.c:252:9: warning: call to undeclared function 'is_pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 252 | if (!is_pack_letter(&ch, &mask)) { | ^ pack.c:253:5: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 253 | sound_bell(); | ^ pack.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 | pack_letter(prompt, mask) | ^ pack.c:271:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 271 | take_off() | ^ | int --- object.o --- object.c:421:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 421 | percent = get_rand(0, 85); | ^ object.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 | gr_potion(obj) | ^ object.c:441:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 441 | percent = get_rand(1, 118); | ^ object.c:451:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 451 | gr_weapon(obj, assign_wk) | ^ | int object.c:464:21: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- pack.o --- pack.c:280:4: warning: call to undeclared function 'mv_aquatars'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 280 | mv_aquatars(); | ^ pack.c:282:4: warning: call to undeclared function 'unwear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 282 | unwear(rogue.armor); | ^ pack.c:291:4: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 291 | print_stats(STAT_ARMOR); | ^ pack.c:297:1: warning: non-void function does not return a value [-Wreturn-type] 297 | } | ^ pack.c:315:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- object.o --- 464 | obj->which_kind = get_rand(0, (WEAPONS - 1)); | ^ object.c:468:19: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | obj->quantity = get_rand(3, 15); | ^ object.c:475:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 475 | percent = get_rand(1, 96); | ^ object.c:486:8: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 486 | if (coin_toss()) { | ^ object.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] --- pack.o --- 315 | if (!(obj = get_letter_object(ch))) { | ^ pack.c:332:2: warning: call to undeclared function 'do_wear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | do_wear(obj); | ^ pack.c:333:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 333 | print_stats(STAT_ARMOR); | ^ pack.c:337:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 337 | unwear(obj) | ^ | int pack.c:337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] pack.c:344:1: warning: non-void function does not return a value [-Wreturn-type] 344 | } | ^ --- object.o --- 451 | gr_weapon(obj, assign_wk) | ^ object.c:494:1: warning: non-void function does not return a value [-Wreturn-type] 494 | } | ^ object.c:497:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 497 | gr_armor(obj, assign_wk) /* by Yasha */ | ^ | int object.c:506:21: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 506 | obj->which_kind = get_rand(0, (ARMORS - 1)); | ^ object.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 | gr_armor(obj, assign_wk) /* by Yasha */ | ^ object.c:523:1: warning: non-void function does not return a value [-Wreturn-type] 523 | } | ^ --- pack.o --- pack.c:346:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 346 | do_wear(obj) | ^ | int pack.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] pack.c:352:1: warning: non-void function does not return a value [-Wreturn-type] 352 | } | ^ pack.c:370:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | if (!(obj = get_letter_object(ch))) { | ^ pack.c:375:3: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | sprintf(desc, mesg[103], | ^ --- object.o --- object.c:525:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 525 | gr_wand(obj) | ^ | int object.c:529:20: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 529 | obj->which_kind = get_rand(0, (WANDS - 1)); | ^ object.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 | gr_wand(obj) | ^ object.c:537:1: warning: non-void function does not return a value [-Wreturn-type] 537 | } | ^ object.c:539:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 539 | get_food(obj, force_ration) | ^ | int --- pack.o --- pack.c:375:3: note: include the header or explicitly provide a declaration for 'sprintf' pack.c:383:3: warning: call to undeclared function 'unwield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 383 | unwield(rogue.weapon); | ^ pack.c:392:3: warning: call to undeclared function 'do_wield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 392 | do_wield(obj); | ^ pack.c:397:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 397 | do_wield(obj) | ^ | int pack.c:397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] pack.c:402:1: warning: non-void function does not return a value [-Wreturn-type] 402 | } | ^ --- object.o --- object.c:545:22: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 545 | if (force_ration || rand_percent(80)) { | ^ object.c:539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | get_food(obj, force_ration) | ^ object.c:550:1: warning: non-void function does not return a value [-Wreturn-type] 550 | } | ^ object.c:552:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 552 | put_stairs() | ^ | int object.c:556:2: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 556 | gr_row_col(&row, &col, (FLOOR | TUNNEL)); | ^ --- pack.o --- pack.c:404:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 404 | unwield(obj) | ^ | int pack.c:404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] pack.c:411:1: warning: non-void function does not return a value [-Wreturn-type] 411 | } | ^ pack.c:427:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | if (!(obj = get_letter_object(ch))) { | ^ pack.c:435:25: warning: passing arguments to 'get_id_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | id_table = get_id_table(obj); | ^ --- object.o --- object.c:558:1: warning: non-void function does not return a value [-Wreturn-type] 558 | } | ^ object.c:560:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 560 | get_armor_class(obj) | ^ | int object.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] object.c:577:41: warning: passing arguments to 'md_malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | } else if (!(obj = (object *) md_malloc(sizeof(object)))) { | ^ object.c:579:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- pack.o --- pack.c:438:6: warning: call to undeclared function 'get_input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 438 | if (get_input_line(mesg[111], | ^ pack.c:461:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 461 | pack_count(new_obj) | ^ | int pack.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] pack.c:489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | mask_pack(pack, mask) | ^ In file included from pack.c:13: --- object.o --- 579 | message("­ޤ ֤ޤ", 0); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ object.c:583:3: warning: call to undeclared function 'save_into_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 583 | save_into_file(error_file); | ^ object.c:594:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 594 | free_object(obj) | ^ | int object.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] object.c:599:1: warning: non-void function does not return a value [-Wreturn-type] --- pack.o --- ./rogue.h:417:9: 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] 417 | boolean mask_pack(); | ^ pack.c:502:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 502 | is_pack_letter(c, mask) | ^ | int pack.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] pack.c:522:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 522 | has_amulet() | ^ | int pack.c:527:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 527 | kick_into_pack() | ^ | int --- object.o --- 599 | } | ^ object.c:601:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 601 | make_party() | ^ | int object.c:605:15: warning: call to undeclared function 'gr_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 605 | party_room = gr_room(); | ^ object.c:607:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 607 | n = rand_percent(99) ? party_objects(party_room) : 11; | ^ object.c:607:25: warning: call to undeclared function 'party_objects'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 607 | n = rand_percent(99) ? party_objects(party_room) : 11; | ^ --- pack.o --- pack.c:544:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 544 | if (obj = pick_up(rogue.row, rogue.col, &stat)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pack.c:544:11: note: place parentheses around the assignment to silence this warning 544 | if (obj = pick_up(rogue.row, rogue.col, &stat)) { | ^ | ( ) pack.c:544:11: note: use '==' to turn this assignment into an equality comparison 544 | if (obj = pick_up(rogue.row, rogue.col, &stat)) { | ^ | == pack.c:551:5: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 551 | free_object(obj); --- object.o --- object.c:609:3: warning: call to undeclared function 'party_monsters'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 609 | party_monsters(party_room, n); | ^ object.c:611:1: warning: non-void function does not return a value [-Wreturn-type] 611 | } | ^ object.c:613:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 613 | show_objects() | ^ | int object.c:625:8: warning: call to undeclared function 'get_mask_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 625 | rc = get_mask_char(obj->what_is); | ^ object.c:628:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 628 | if (monster = object_at(&level_monsters, row, col)) { --- pack.o --- | ^ pack.c:553:16: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 553 | p = desc + strlen(desc); | ^ pack.c:553:16: note: include the header or explicitly provide a declaration for 'strlen' pack.c:565:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 565 | } | ^ 78 warnings generated. --- object.o --- | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ object.c:628:16: note: place parentheses around the assignment to silence this warning 628 | if (monster = object_at(&level_monsters, row, col)) { | ^ | ( ) object.c:628:16: note: use '==' to turn this assignment into an equality comparison 628 | if (monster = object_at(&level_monsters, row, col)) { | ^ | == object.c:632:8: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 632 | mc = mvinch(row, col); | ^ object.c:635:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 635 | mvaddch(row, col, colored(rc)); | ^ object.c:644:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 644 | mvaddch(monster->row, monster->col, colored(monster->disguise)); | ^ object.c:648:1: warning: non-void function does not return a value [-Wreturn-type] 648 | } | ^ object.c:650:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 650 | put_amulet() | ^ | int object.c:656:2: warning: call to undeclared function 'rand_place'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 656 | rand_place(obj); | ^ object.c:657:1: warning: non-void function does not return a value [-Wreturn-type] 657 | } | ^ object.c:659:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 659 | rand_place(obj) | ^ | int object.c:664:2: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 664 | gr_row_col(&row, &col, (FLOOR | TUNNEL)); | ^ object.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 | rand_place(obj) | ^ object.c:667:1: warning: non-void function does not return a value [-Wreturn-type] 667 | } | ^ object.c:679:6: warning: call to undeclared function 'pack_count'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 679 | if (pack_count((object *) 0) >= MAX_PACK_COUNT) { | ^ object.c:685:9: warning: call to undeclared function 'r_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | while (r_index("!?:)]=/,\033", (ch = rgetchar()), 0) == -1) | ^ object.c:685:39: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | while (r_index("!?:)]=/,\033", (ch = rgetchar()), 0) == -1) | ^ object.c:686:3: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 686 | sound_bell(); | ^ object.c:730:3: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 730 | sprintf(buf, mesg[83], (obj->what_is == WEAPON) /* by Yasha */ | ^ object.c:730:3: note: include the header or explicitly provide a declaration for 'sprintf' object.c:755:4: warning: call to undeclared function 'gr_ring'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 755 | gr_ring(obj, 0); | ^ object.c:781:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | (void) add_to_pack(obj, &rogue.pack, 1); | ^ object.c:786:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | list_object(obj, max) | ^ object.c:788:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 788 | short max; | ^ ./rogue.h:470:37: note: previous declaration is here 470 | void list_object(object *obj, short max); | ^ object.c:799:17: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 799 | char *msg = " ڡƤ"; | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ object.c:840:12: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 840 | if ((n = strlen(descs[i])) > maxlen) | ^ object.c:840:12: note: include the header or explicitly provide a declaration for 'strlen' object.c:849:27: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 849 | descs[row-1][j-col] = mvinch(row, j); | ^ object.c:853:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 853 | mvaddstr(row, col, descs[row]); | ^ object.c:854:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 854 | clrtoeol(); | ^ object.c:856:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 856 | refresh(); | ^ object.c:857:2: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 857 | wait_for_ack(); | ^ object.c:859:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 859 | move(0, 0); | ^ object.c:860:2: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 860 | clrtoeol(); | ^ object.c:874:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 874 | next_party() | ^ | int object.c:882:9: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 882 | return(get_rand((n + 1), (n + PARTY_TIME))); | ^ 117 warnings generated. --- monster.o --- monster.c:65:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 65 | put_mons() | ^ | int monster.c:72:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | n = get_rand(4, 6); | ^ monster.c:75:23: warning: passing arguments to 'gr_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | monster = gr_monster((object *) 0, 0); | ^ monster.c:76:39: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 76 | if ((monster->m_flags & WANDERS) && coin_toss()) { | ^ monster.c:77:4: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | wake_up(monster); | ^ monster.c:79:3: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | gr_row_col(&row, &col, (FLOOR | TUNNEL | STAIRS | OBJECT)); | ^ monster.c:80:3: warning: call to undeclared function 'put_m_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | put_m_at(row, col, monster); | ^ monster.c:82:1: warning: non-void function does not return a value [-Wreturn-type] 82 | } | ^ monster.c:87:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 87 | register mn; | ~~~~~~~~ ^ | int monster.c:93:9: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | mn = get_rand(0, MONSTERS-1); | ^ monster.c:102:23: warning: call to undeclared function 'gr_obj_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 102 | monster->disguise = gr_obj_char(); | ^ monster.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 | gr_monster(monster, mn) | ^ In file included from monster.c:13: ./rogue.h:427:9: 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] 427 | object *gr_monster(); | ^ monster.c:137:40: warning: call to undeclared function 'move_confused'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | if ((monster->m_flags & CONFUSED) && move_confused(monster)) { | ^ monster.c:142:8: warning: call to undeclared function 'mon_can_go'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 142 | && !mon_can_go(monster, rogue.row, rogue.col)) { | ^ monster.c:153:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 153 | party_monsters(rn, n) | ^ | int monster.c:167:7: warning: call to undeclared function 'no_room_for_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 167 | if (no_room_for_monster(rn)) { | ^ monster.c:171:10: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | row = get_rand(rooms[rn].top_row+1, | ^ monster.c:185:4: warning: call to undeclared function 'put_m_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 185 | put_m_at(row, col, monster); | ^ monster.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 | party_monsters(rn, n) | ^ monster.c:191:1: warning: non-void function does not return a value [-Wreturn-type] 191 | } | ^ monster.c:194:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 194 | register row, col; | ~~~~~~~~ ^ | int monster.c:194:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 194 | register row, col; | ~~~~~~~~ ^ | int monster.c:193:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 193 | gmc_row_col(row, col) | ^ | int monster.c:198:25: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | if (monster = object_at(&level_monsters, row, col)) | ^ monster.c:198:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 198 | if (monster = object_at(&level_monsters, row, col)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monster.c:198:14: note: place parentheses around the assignment to silence this warning 198 | if (monster = object_at(&level_monsters, row, col)) | ^ | ( ) monster.c:198:14: note: use '==' to turn this assignment into an equality comparison 198 | if (monster = object_at(&level_monsters, row, col)) | ^ | == monster.c:199:10: warning: call to undeclared function 'gmc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 199 | return(gmc(monster)); | ^ monster.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 | gmc_row_col(row, col) | ^ monster.c:203:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 203 | gmc(monster) | ^ | int monster.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] monster.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 | mv_monster(monster, row, col) | ^ monster.c:219:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 219 | short row, col; | ^ ./rogue.h:463:40: note: previous declaration is here 463 | void mv_monster(object *monster, short row, short col); | ^ monster.c:219:12: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 219 | short row, col; | ^ ./rogue.h:463:51: note: previous declaration is here 463 | void mv_monster(object *monster, short row, short col); | ^ monster.c:232:5: warning: call to undeclared function 'rogue_is_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | rogue_is_around(monster->row, monster->col) && | ^ monster.c:233:5: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 233 | rand_percent(((stealthy > 0) ? | ^ monster.c:236:4: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 236 | wake_up(monster); | ^ monster.c:243:36: warning: call to undeclared function 'flit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 243 | if ((monster->m_flags & FLITS) && flit(monster)) { | ^ monster.c:247:5: warning: call to undeclared function 'mon_can_go'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 247 | (!mon_can_go(monster, rogue.row, rogue.col))) { | ^ monster.c:253:39: warning: call to undeclared function 'm_confuse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 253 | if ((monster->m_flags & CONFUSES) && m_confuse(monster)) { | ^ monster.c:260:37: warning: call to undeclared function 'flame_broil'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 260 | if ((monster->m_flags & FLAMES) && flame_broil(monster)) { | ^ monster.c:263:41: warning: call to undeclared function 'seek_gold'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | if ((monster->m_flags & SEEKS_GOLD) && seek_gold(monster)) { | ^ monster.c:279:4: warning: call to undeclared function 'mtry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 279 | mtry(monster, row, monster->col)) { | ^ monster.c:299:8: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 299 | n = get_rand(0, 5); | ^ monster.c:340:15: warning: passing arguments to 'mon_sees' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | (!mon_sees(monster, rogue.row, rogue.col))) { | ^ monster.c:341:21: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 341 | monster->trow = get_rand(1, (DROWS - 2)); | ^ monster.c:355:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 355 | mtry(monster, row, col) | ^ | int monster.c:359:6: warning: call to undeclared function 'mon_can_go'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 359 | if (mon_can_go(monster, row, col)) { | ^ monster.c:360:3: warning: call to undeclared function 'move_mon_to'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 360 | move_mon_to(monster, row, col); | ^ monster.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 | mtry(monster, row, col) | ^ monster.c:366:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 366 | move_mon_to(monster, row, col) | ^ | int monster.c:371:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 371 | register mrow, mcol; | ~~~~~~~~ ^ | int monster.c:371:17: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 371 | register mrow, mcol; | ~~~~~~~~ ^ | int monster.c:379:6: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | c = mvinch(mrow, mcol); | ^ monster.c:383:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 383 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ monster.c:383:24: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 383 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ monster.c:385:8: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 385 | if (rogue_can_see(mrow, mcol)) { | ^ monster.c:386:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 386 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ --- invent.o --- invent.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 | inventory(pack, mask) | ^ invent.c:50:16: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned short' declared in a previous prototype [-Wknr-promoted-parameter] 50 | unsigned short mask; | ^ ./rogue.h:456:45: note: previous declaration is here 456 | void inventory(object *pack, unsigned short mask); | ^ invent.c:57:17: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 57 | char *msg = " ڡƤ"; | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- monster.o --- monster.c:386:25: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 386 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ monster.c:391:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ monster.c:391:25: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | mvaddch(mrow, mcol, colored(monster->trail_char)); | ^ --- invent.o --- invent.c:81:13: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | if ((n = strlen(descs[i])) > maxlen) | ^ invent.c:81:13: note: include the header or explicitly provide a declaration for 'strlen' invent.c:96:27: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 96 | descs[row-1][j-col] = mvinch(row, j); | ^ invent.c:100:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 100 | mvaddstr(row, col, descs[row]); | ^ --- monster.o --- monster.c:396:35: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 396 | if (!blind && (detect_monster || rogue_can_see(row, col))) { | ^ monster.c:399:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 399 | mvaddch(row, col, colored(gmc(monster))); | ^ monster.c:399:22: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 399 | mvaddch(row, col, colored(gmc(monster))); | ^ --- invent.o --- invent.c:101:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | clrtoeol(); | ^ invent.c:103:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 103 | refresh(); | ^ invent.c:104:2: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | wait_for_ack(); | ^ invent.c:106:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | move(0, 0); | ^ invent.c:107:2: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- monster.o --- monster.c:403:4: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 403 | (get_room_number(row, col) != cur_room) && | ^ monster.c:405:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 405 | mvaddch(mrow, mcol, colored(' ')); | ^ monster.c:405:24: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 405 | mvaddch(mrow, mcol, colored(' ')); | ^ monster.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 | move_mon_to(monster, row, col) | ^ --- invent.o --- 107 | clrtoeol(); | ^ invent.c:112:10: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | addch(colored(*p)); | ^ invent.c:133:3: warning: call to undeclared function 'touch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | touch(j, col, DCOLS-1); | ^ invent.c:140:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 140 | mix_colors() | ^ | int invent.c:151:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 151 | j = get_rand(i, POTIONS - 1); | ^ --- monster.o --- monster.c:414:1: warning: non-void function does not return a value [-Wreturn-type] 414 | } | ^ monster.c:416:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 416 | mon_can_go(monster, row, col) | ^ | int monster.c:429:7: warning: call to undeclared function 'is_passable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 429 | !is_passable(row, col) || (dungeon[row][col] & MONSTER)) { | ^ monster.c:446:18: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | obj = object_at(&level_objects, row, col); | ^ monster.c:416:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- invent.o --- invent.c:154:1: warning: non-void function does not return a value [-Wreturn-type] 154 | } | ^ invent.c:156:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 156 | make_scroll_titles() | ^ | int invent.c:162:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 162 | sylls = get_rand(2, 5); | ^ invent.c:164:39: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 164 | (void) strcpy(id_scrolls[i].title, ""); | ^~~~~~~~ invent.c:174:47: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 174 | (void) strcpy(id_scrolls[i].title+(len-1), ""); --- monster.o --- 416 | mon_can_go(monster, row, col) | ^ monster.c:454:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 454 | wake_up(monster) | ^ | int monster.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] monster.c:460:1: warning: non-void function does not return a value [-Wreturn-type] 460 | } | ^ monster.c:462:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 462 | wake_room(rn, entering, row, col) | ^ | int monster.c:479:20: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 479 | in_room = (rn == get_room_number(monster->row, monster->col)); | ^ --- invent.o --- | ^~~~~~~~ invent.c:185:1: warning: non-void function does not return a value [-Wreturn-type] 185 | } | ^ invent.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 | get_desc(obj, desc, capitalized) | ^ invent.c:192:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 192 | boolean capitalized; | ^ ./rogue.h:457:48: note: previous declaration is here 457 | void get_desc(object *obj, char *desc, boolean capitalized); | ^ invent.c:204:21: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | item_name = name_of(obj); --- monster.o --- monster.c:490:8: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 490 | if (rand_percent(wake_percent)) { | ^ monster.c:462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | wake_room(rn, entering, row, col) | ^ monster.c:496:1: warning: non-void function does not return a value [-Wreturn-type] 496 | } | ^ monster.c:509:8: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 509 | ch = get_rand('A', 'Z') - 'A'; | ^ monster.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 | mon_name(monster) --- invent.o --- | ^ invent.c:206:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 206 | znum(desc, obj->quantity, 0); | ^ invent.c:211:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | znum(desc, obj->quantity, 0); | ^ invent.c:214:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | znum(desc, obj->quantity, 0); | ^ invent.c:219:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | znum(desc, obj->quantity, 0); | ^ --- monster.o --- | ^ In file included from monster.c:13: ./rogue.h:406:7: 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] 406 | char *mon_name(); | ^ monster.c:516:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 516 | rogue_is_around(row, col) | ^ | int monster.c:516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] monster.c:527:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 527 | wanderer() | ^ | int monster.c:536:4: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- invent.o --- invent.c:222:25: warning: passing arguments to 'get_id_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | id_table = get_id_table(obj); | ^ invent.c:266:31: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | (void) strcat(desc, name_of(obj)); | ^ invent.c:302:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 302 | strcpy(more_info, ""); | ^~~~~~~~ invent.c:303:6: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- monster.o --- 536 | free_object(monster); | ^ monster.c:545:4: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 545 | gr_row_col(&row, &col, (FLOOR|TUNNEL|STAIRS|OBJECT)); | ^ monster.c:546:9: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | if (!rogue_can_see(row, col)) { | ^ monster.c:547:5: warning: call to undeclared function 'put_m_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 547 | put_m_at(row, col, monster); | ^ --- invent.o --- 303 | znum(more_info, obj->class, 1); | ^ invent.c:304:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 304 | strcat(more_info, ""); | ^~~~~~~~ invent.c:314:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 314 | strcpy(more_info, ""); | ^~~~~~~~ invent.c:315:5: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 315 | znum(more_info, obj->class, 0); | ^ invent.c:316:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- monster.o --- monster.c:552:4: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 552 | free_object(monster); | ^ monster.c:555:1: warning: non-void function does not return a value [-Wreturn-type] 555 | } | ^ monster.c:570:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 570 | mvaddch(monster->row, monster->col, colored(monster->m_char)); | ^ monster.c:570:39: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 570 | mvaddch(monster->row, monster->col, colored(monster->m_char)); | ^ --- invent.o --- 316 | strcat(more_info, ""); | ^~~~~~~~ invent.c:321:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 321 | strcpy(desc, ""); | ^~~~~~~~ invent.c:322:4: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 322 | znum(desc, obj->d_enchant, 1); | ^ invent.c:323:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 323 | strcat(desc, ""); | ^~~~~~~~ invent.c:325:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 325 | strcpy(more_info, ""); --- monster.o --- monster.c:579:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 579 | create_monster() | ^ | int monster.c:591:3: warning: call to undeclared function 'rand_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 591 | rand_around(i, &r, &c); | ^ monster.c:607:3: warning: call to undeclared function 'put_m_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 607 | put_m_at(row, col, monster); | ^ monster.c:608:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 608 | mvaddch(row, col, colored(gmc(monster))); | ^ --- invent.o --- | ^~~~~~~~ invent.c:326:20: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | znum(more_info, get_armor_class(obj), 0); | ^ invent.c:327:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 327 | strcat(more_info, ""); | ^~~~~~~~ invent.c:331:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 331 | strcat(desc, ""); | ^~~~~~~~ invent.c:333:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 333 | strcat(desc, ""); | ^~~~~~~~ --- monster.o --- monster.c:608:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 608 | mvaddch(row, col, colored(gmc(monster))); | ^ monster.c:615:1: warning: non-void function does not return a value [-Wreturn-type] 615 | } | ^ monster.c:617:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 617 | put_m_at(row, col, monster) | ^ | int monster.c:624:24: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 624 | monster->trail_char = mvinch(row, col); | ^ monster.c:625:20: warning: passing arguments to 'add_to_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- invent.o --- invent.c:335:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 335 | strcat(desc, ""); | ^~~~~~~~ invent.c:336:31: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | (void) strcat(desc, name_of(obj)); | ^ invent.c:535:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 535 | get_wand_and_ring_materials() | ^ | int invent.c:546:8: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | j = get_rand(0, WAND_MATERIALS-1); | ^ --- monster.o --- 625 | (void) add_to_pack(monster, &level_monsters, 0); | ^ monster.c:626:2: warning: call to undeclared function 'aim_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 626 | aim_monster(monster); | ^ monster.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 | put_m_at(row, col, monster) | ^ monster.c:627:1: warning: non-void function does not return a value [-Wreturn-type] 627 | } | ^ monster.c:629:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 629 | aim_monster(monster) | ^ | int monster.c:634:7: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- invent.o --- invent.c:561:8: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 561 | j = get_rand(0, GEMS-1); | ^ invent.c:570:1: warning: non-void function does not return a value [-Wreturn-type] 570 | } | ^ invent.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | single_inv(ichar) | ^ invent.c:574:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 574 | short ichar; | ^ ./rogue.h:458:23: note: previous declaration is here 458 | void single_inv(short ichar); | ^ --- monster.o --- 634 | rn = get_room_number(monster->row, monster->col); | ^ monster.c:635:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 635 | r = get_rand(0, 12); | ^ monster.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 | aim_monster(monster) | ^ monster.c:645:1: warning: non-void function does not return a value [-Wreturn-type] 645 | } | ^ monster.c:648:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 648 | register row, col; | ~~~~~~~~ ^ | int monster.c:648:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 648 | register row, col; | ~~~~~~~~ ^ | int --- invent.o --- invent.c:581:21: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 581 | ch = ichar? ichar: pack_letter(mesg[41], ALL_OBJECTS); | ^ invent.c:586:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | if (!(obj = get_letter_object(ch))) { | ^ invent.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 | get_id_table(obj) | ^ In file included from invent.c:13: ./rogue.h:434:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] --- monster.o --- monster.c:647:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 647 | rogue_can_see(row, col) | ^ | int monster.c:650:23: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 650 | return (!blind && (((get_room_number(row, col) == cur_room) && | ^ monster.c:647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 647 | rogue_can_see(row, col) | ^ monster.c:655:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 655 | move_confused(monster) | ^ | int --- invent.o --- 434 | struct id *get_id_table(); | ^ invent.c:619:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 619 | inv_armor_weapon(is_weapon) | ^ | int invent.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] invent.c:635:1: warning: non-void function does not return a value [-Wreturn-type] 635 | } | ^ invent.c:669:17: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 669 | char *msg = " ڡƤ"; | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ invent.c:678:9: warning: call to undeclared function 'r_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- monster.o --- monster.c:665:11: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 665 | return(coin_toss() ? 1 : 0); | ^ monster.c:666:14: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 666 | } else if (rand_percent(15)) { | ^ monster.c:673:4: warning: call to undeclared function 'rand_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 673 | rand_around(i, &row, &col); | ^ monster.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 | move_confused(monster) | ^ --- invent.o --- 678 | while (r_index("?!/=*\033", (ch = rgetchar()), 0) == -1) | ^ invent.c:678:36: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 678 | while (r_index("?!/=*\033", (ch = rgetchar()), 0) == -1) | ^ invent.c:679:3: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 679 | sound_bell(); | ^ invent.c:745:11: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 745 | (void) sprintf(p, mesg[47], dp->name); | ^ --- monster.o --- monster.c:685:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 685 | flit(monster) | ^ | int monster.c:690:7: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 690 | if (!rand_percent(FLIT_PERCENT)) { | ^ monster.c:700:3: warning: call to undeclared function 'rand_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 700 | rand_around(i, &row, &col); | ^ monster.c:685:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | flit(monster) | ^ monster.c:711:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 711 | gr_obj_char() | ^ --- invent.o --- invent.c:745:11: note: include the header or explicitly provide a declaration for 'sprintf' invent.c:781:27: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 781 | descs[row-1][j-col] = mvinch(row, j); | ^ invent.c:784:3: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 784 | mvaddstr(row, col, descs[row]); | ^ invent.c:785:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 785 | clrtoeol(); | ^ --- monster.o --- | int monster.c:716:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 716 | r = get_rand(0, 8); | ^ monster.c:721:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 721 | no_room_for_monster(rn) | ^ | int monster.c:721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] monster.c:736:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 736 | aggravate() | ^ | int monster.c:747:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 747 | mvaddch(monster->row, monster->col, colored(monster->m_char)); --- invent.o --- invent.c:787:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 787 | refresh(); | ^ invent.c:788:2: warning: call to undeclared function 'wait_for_ack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 788 | wait_for_ack(); | ^ invent.c:790:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 790 | move(0, 0); | ^ invent.c:791:2: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 791 | clrtoeol(); | ^ invent.c:796:10: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- monster.o --- | ^ monster.c:747:40: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 747 | mvaddch(monster->row, monster->col, colored(monster->m_char)); | ^ monster.c:751:1: warning: non-void function does not return a value [-Wreturn-type] 751 | } | ^ monster.c:754:24: warning: parameter 'col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 754 | mon_sees(monster, row, col) | ^ 755 | object *monster; 756 | { monster.c:754:19: warning: parameter 'row' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 754 | mon_sees(monster, row, col) | ^ 755 | object *monster; 756 | { --- invent.o --- 796 | addch(colored(*p)); | ^ invent.c:817:3: warning: call to undeclared function 'touch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 817 | touch(j, col, DCOLS-1); | ^ invent.c:826:28: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:33: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:38: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- monster.o --- monster.c:759:7: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 759 | rn = get_room_number(row, col); | ^ monster.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 | mon_sees(monster, row, col) | ^ In file included from monster.c:13: ./rogue.h:416:9: 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] 416 | boolean mon_sees(); | ^ monster.c:772:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 772 | mv_aquatars() | ^ | int monster.c:786:1: warning: non-void function does not return a value [-Wreturn-type] --- invent.o --- 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:43: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:48: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:53: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- monster.o --- 786 | } | ^ 140 warnings generated. --- invent.o --- 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:58: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:68: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:826:73: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 826 | static char *_num[10] = { "","","","","","","","","","" }; | ^~~~~~~~ invent.c:828:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 828 | znum(buf, n, plus) | ^ | int invent.c:837:16: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 837 | strcpy(buf, ""); | ^~~~~~~~ invent.c:842:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 842 | strcpy(buf, (*p == '-')? "
": _num[*p - '0']); | ^~~~~~~~ invent.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 | znum(buf, n, plus) | ^ invent.c:845:1: warning: non-void function does not return a value [-Wreturn-type] 845 | } | ^ invent.c:847:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 847 | lznum(buf, n, plus) | ^ | int invent.c:857:16: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 857 | strcpy(buf, ""); | ^~~~~~~~ invent.c:862:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 862 | strcpy(buf, (*p == '-')? "
": _num[*p - '0']); | ^~~~~~~~ invent.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 | lznum(buf, n, plus) | ^ invent.c:865:1: warning: non-void function does not return a value [-Wreturn-type] 865 | } | ^ 93 warnings generated. --- room.o --- --- pack.o --- --- object.o --- --- move.o --- move.c:35:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 35 | one_move_rogue(dirch, pickup) | ^ | int move.c:52:11: warning: call to undeclared function 'gr_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 52 | dirch = gr_dir(); | ^ move.c:54:2: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | get_dir_rc(dirch, &r, &c, 1); | ^ move.c:58:7: warning: call to undeclared function 'can_move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | if (!can_move(rogue.row, rogue.col, row, col)) { | ^ move.c:77:7: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | if (rand_percent(R_TELE_PERCENT)) { | ^ move.c:78:5: warning: call to undeclared function 'tele'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | tele(); | ^ move.c:83:22: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | rogue_hit(object_at(&level_monsters, row, col), 0); | ^ move.c:89:15: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | cur_room = get_room_number(row, col); | ^ move.c:90:4: warning: call to undeclared function 'light_up_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | light_up_room(cur_room); | ^ move.c:91:4: warning: call to undeclared function 'wake_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | wake_room(cur_room, 1, row, col); | ^ move.c:98:3: warning: call to undeclared function 'wake_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | wake_room(cur_room, 0, rogue.row, rogue.col); | ^ move.c:99:3: warning: call to undeclared function 'darken_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | darken_room(cur_room); | ^ move.c:104:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ move.c:104:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ move.c:104:40: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ move.c:108:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | refresh(); | ^ move.c:117:21: warning: passing arguments to 'pick_up' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (obj = pick_up(row, col, &status)) { | ^ move.c:117:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 117 | if (obj = pick_up(row, col, &status)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ move.c:117:12: note: place parentheses around the assignment to silence this warning 117 | if (obj = pick_up(row, col, &status)) { | ^ | ( ) move.c:117:12: note: use '==' to turn this assignment into an equality comparison 117 | if (obj = pick_up(row, col, &status)) { | ^ | == move.c:120:6: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | free_object(obj); | ^ move.c:133:19: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | obj = object_at(&level_objects, row, col); | ^ move.c:146:14: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | p = desc + strlen(desc); | ^ move.c:146:14: note: include the header or explicitly provide a declaration for 'strlen' move.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 | one_move_rogue(dirch, pickup) | ^ move.c:169:21: warning: parameter 'dirch' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 169 | multiple_move_rogue(dirch) | ^ 170 | { move.c:169:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 169 | multiple_move_rogue(dirch) | ^ | int move.c:203:5: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | get_dir_rc(dir[i], &row, &col, 1); | ^ move.c:204:9: warning: call to undeclared function 'is_passable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | if (is_passable(row,col) && dirch!=dir[3-i]) | ^ move.c:212:13: warning: call to undeclared function 'next_to_something'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 212 | } while (!next_to_something(row, col)); | ^ move.c:248:5: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | get_dir_rc(dir[i], &row, &col, 1); | ^ move.c:249:9: warning: call to undeclared function 'is_passable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | if (is_passable(row,col) && dirch!=dir[3-i]) | ^ move.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 | multiple_move_rogue(dirch) | ^ move.c:265:1: warning: non-void function does not return a value [-Wreturn-type] 265 | } | ^ move.c:268:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 268 | register row, col; | ~~~~~~~~ ^ | int move.c:268:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 268 | register row, col; | ~~~~~~~~ ^ | int move.c:267:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 267 | is_passable(row, col) | ^ | int move.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] move.c:281:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 281 | register drow, dcol; | ~~~~~~~~ ^ | int move.c:281:16: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 281 | register drow, dcol; | ~~~~~~~~ ^ | int move.c:280:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 280 | next_to_something(drow, dcol) | ^ | int move.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] move.c:341:28: warning: parameter 'col2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 341 | can_move(row1, col1, row2, col2) | ^ 342 | { move.c:341:22: warning: parameter 'row2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 341 | can_move(row1, col1, row2, col2) | ^ 342 | { move.c:341:16: warning: parameter 'col1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 341 | can_move(row1, col1, row2, col2) | ^ 342 | { move.c:341:10: warning: parameter 'row1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 341 | can_move(row1, col1, row2, col2) | ^ 342 | { move.c:341:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 341 | can_move(row1, col1, row2, col2) | ^ | int move.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] move.c:355:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 355 | move_onto() | ^ | int move.c:359:7: warning: call to undeclared function 'get_direction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 359 | ch = get_direction(); | ^ move.c:363:1: warning: non-void function does not return a value [-Wreturn-type] 363 | } | ^ move.c:366:14: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 366 | is_direction(c) | ^ 367 | { move.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 | is_direction(c) | ^ In file included from move.c:13: ./rogue.h:415:9: 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] 415 | boolean is_direction(); | ^ move.c:382:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 382 | print_stats(STAT_HUNGER); | ^ move.c:387:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 387 | print_stats(STAT_HUNGER); | ^ move.c:393:4: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | print_stats(STAT_HUNGER); | ^ move.c:395:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | n = get_rand(0, (FAINT - rogue.moves_left)); | ^ move.c:398:8: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 398 | if (rand_percent(40)) { | ^ move.c:403:9: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 403 | if (coin_toss()) { | ^ move.c:414:3: warning: call to undeclared function 'killed_by'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | killed_by((object *) 0, STARVATION); | ^ move.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 | check_hunger(messages_only) | ^ In file included from move.c:13: ./rogue.h:420:9: 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] 420 | boolean check_hunger(); | ^ move.c:460:3: warning: call to undeclared function 'wanderer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 460 | wanderer(); | ^ move.c:464:4: warning: call to undeclared function 'unhallucinate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 464 | unhallucinate(); | ^ move.c:471:4: warning: call to undeclared function 'unblind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 471 | unblind(); | ^ move.c:476:4: warning: call to undeclared function 'unconfuse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 476 | unconfuse(); | ^ move.c:502:6: warning: parameter 'count' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 502 | rest(count) | ^ 503 | { move.c:502:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 502 | rest(count) | ^ | int move.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] move.c:514:1: warning: non-void function does not return a value [-Wreturn-type] 514 | } | ^ move.c:516:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 516 | gr_dir() | ^ | int move.c:518:25: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 518 | return (*("jklhyubn" + get_rand(1, 8) - 1)); | ^ move.c:518:23: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] 518 | return (*("jklhyubn" + get_rand(1, 8) - 1)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ move.c:518:23: note: use array indexing to silence this warning 518 | return (*("jklhyubn" + get_rand(1, 8) - 1)); | ^ | & [ ] move.c:539:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 539 | if (alt = !alt) { | ~~~~^~~~~~ move.c:539:11: note: place parentheses around the assignment to silence this warning 539 | if (alt = !alt) { | ^ | ( ) move.c:539:11: note: use '==' to turn this assignment into an equality comparison 539 | if (alt = !alt) { | ^ | == move.c:545:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 545 | print_stats(STAT_HP); | ^ 73 warnings generated. --- invent.o --- --- level.o --- level.c:53:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 53 | make_level() | ^ | int level.c:66:16: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 66 | must_exist1 = get_rand(0, 2); | ^ level.c:67:17: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | if (vertical = coin_toss()) { | ^ level.c:67:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 67 | if (vertical = coin_toss()) { | ~~~~~~~~~^~~~~~~~~~~~~ level.c:67:15: note: place parentheses around the assignment to silence this warning 67 | if (vertical = coin_toss()) { | ^ | ( ) level.c:67:15: note: use '==' to turn this assignment into an equality comparison 67 | if (vertical = coin_toss()) { | ^ | == level.c:72:46: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | big_room = ((cur_level == party_counter) && rand_percent(1)); | ^ level.c:74:3: warning: call to undeclared function 'make_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | make_room(BIG_ROOM, 0, 0, 0); | ^ level.c:77:4: warning: call to undeclared function 'make_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | make_room(i, must_exist1, must_exist2, must_exist3); | ^ level.c:81:3: warning: call to undeclared function 'add_mazes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | add_mazes(); | ^ level.c:83:3: warning: call to undeclared function 'mix_random_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | mix_random_rooms(); | ^ level.c:90:12: warning: call to undeclared function 'connect_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | (void) connect_rooms(i, i+1); | ^ level.c:93:12: warning: call to undeclared function 'connect_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | (void) connect_rooms(i, i+3); | ^ level.c:98:10: warning: call to undeclared function 'connect_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | if (connect_rooms(i, i+2)) { | ^ level.c:106:10: warning: call to undeclared function 'connect_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | if (connect_rooms(i, i+6)) { | ^ level.c:111:8: warning: call to undeclared function 'is_all_connected'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | if (is_all_connected()) { | ^ level.c:115:3: warning: call to undeclared function 'fill_out_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | fill_out_level(); | ^ level.c:117:7: warning: call to undeclared function 'has_amulet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | if (!has_amulet() && (cur_level >= AMULET_LEVEL)) { | ^ level.c:118:3: warning: call to undeclared function 'put_amulet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | put_amulet(); | ^ level.c:120:1: warning: non-void function does not return a value [-Wreturn-type] 120 | } | ^ level.c:122:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 122 | make_room(rn, r1, r2, r3) | ^ | int level.c:132:13: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | top_row = get_rand(MIN_ROW, MIN_ROW+5); | ^ level.c:175:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 175 | height = get_rand(4, (bottom_row-top_row+1)); | ^ level.c:187:48: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | if ((rn != r1) && (rn != r2) && (rn != r3) && rand_percent(40)) { | ^ level.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 | make_room(rn, r1, r2, r3) | ^ level.c:210:1: warning: non-void function does not return a value [-Wreturn-type] 210 | } | ^ level.c:212:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 212 | connect_rooms(room1, room2) | ^ | int level.c:222:6: warning: call to undeclared function 'same_row'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 222 | if (same_row(room1, room2)) { | ^ level.c:230:13: warning: call to undeclared function 'same_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 230 | } else if (same_col(room1, room2)) { | ^ level.c:241:2: warning: call to undeclared function 'put_door'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 241 | put_door(&rooms[room1], dir, &row1, &col1); | ^ level.c:245:3: warning: call to undeclared function 'draw_simple_passage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 245 | draw_simple_passage(row1, col1, row2, col2, dir); | ^ level.c:246:11: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 246 | } while (rand_percent(4)); | ^ level.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | connect_rooms(room1, room2) | ^ level.c:260:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 260 | clear_level() | ^ | int level.c:283:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | clear(); | ^ level.c:284:1: warning: non-void function does not return a value [-Wreturn-type] 284 | } | ^ level.c:286:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 286 | put_door(rm, dir, row, col) | ^ | int level.c:300:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | *col = get_rand(rm->left_col+wall_width, | ^ level.c:308:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | *row = get_rand(rm->top_row+wall_width, | ^ level.c:316:25: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 316 | if ((cur_level > 2) && rand_percent(HIDE_PERCENT)) { | ^ level.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 | put_door(rm, dir, row, col) | ^ level.c:321:1: warning: non-void function does not return a value [-Wreturn-type] 321 | } | ^ level.c:323:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 323 | draw_simple_passage(row1, col1, row2, col2, dir) | ^ | int level.c:334:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 334 | middle = get_rand(col1+1, col2-1); | ^ level.c:349:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 349 | middle = get_rand(row1+1, row2-1); | ^ level.c:360:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 360 | if (rand_percent(HIDE_PERCENT)) { | ^ level.c:361:3: warning: call to undeclared function 'hide_boxed_passage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 361 | hide_boxed_passage(row1, col1, row2, col2, 1); | ^ level.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 | draw_simple_passage(row1, col1, row2, col2, dir) | ^ level.c:363:1: warning: non-void function does not return a value [-Wreturn-type] 363 | } | ^ level.c:365:17: warning: parameter 'room2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 365 | same_row(room1, room2) | ^ 366 | { level.c:365:10: warning: parameter 'room1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 365 | same_row(room1, room2) | ^ 366 | { level.c:365:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 365 | same_row(room1, room2) | ^ | int level.c:365:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] level.c:370:17: warning: parameter 'room2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 370 | same_col(room1, room2) | ^ 371 | { level.c:370:10: warning: parameter 'room1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 370 | same_col(room1, room2) | ^ 371 | { level.c:370:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 370 | same_col(room1, room2) | ^ | int level.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] level.c:375:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 375 | add_mazes() | ^ | int level.c:382:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 382 | start = get_rand(0, (MAXROOMS-1)); | ^ level.c:391:9: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | if (rand_percent(maze_percent)) { | ^ level.c:393:5: warning: call to undeclared function 'make_maze'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | make_maze(get_rand(rooms[j].top_row+1, rooms[j].bottom_row-1), | ^ level.c:397:5: warning: call to undeclared function 'hide_boxed_passage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 397 | hide_boxed_passage(rooms[j].top_row, rooms[j].left_col, | ^ level.c:404:1: warning: non-void function does not return a value [-Wreturn-type] 404 | } | ^ level.c:406:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 406 | fill_out_level() | ^ | int level.c:410:2: warning: call to undeclared function 'mix_random_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 410 | mix_random_rooms(); | ^ level.c:417:38: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 417 | ((rooms[rn].is_room & R_CROSS) && coin_toss())) { | ^ level.c:418:4: warning: call to undeclared function 'fill_it'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | fill_it(rn, 1); | ^ level.c:422:3: warning: call to undeclared function 'fill_it'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 422 | fill_it(r_de, 0); | ^ level.c:424:1: warning: non-void function does not return a value [-Wreturn-type] 424 | } | ^ level.c:426:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 426 | fill_it(rn, do_rec_de) | ^ | int level.c:438:10: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 438 | srow = get_rand(0, 3); | ^ level.c:465:15: warning: passing arguments to 'mask_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | (!mask_room(rn, &srow, &scol, TUNNEL))) { | ^ level.c:477:8: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 477 | if (coin_toss()) { | ^ level.c:482:4: warning: call to undeclared function 'recursive_deadend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 482 | recursive_deadend(rn, offsets, srow, scol); | ^ level.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 | fill_it(rn, do_rec_de) | ^ level.c:486:1: warning: non-void function does not return a value [-Wreturn-type] 486 | } | ^ level.c:488:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 488 | recursive_deadend(rn, offsets, srow, scol) | ^ | int level.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] level.c:521:1: warning: non-void function does not return a value [-Wreturn-type] 521 | } | ^ level.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 | mask_room(rn, row, col, mask) | ^ In file included from level.c:13: ./rogue.h:418:9: 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] 418 | boolean mask_room(); | ^ level.c:543:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 543 | make_maze(r, c, tr, br, lc, rc) | ^ | int level.c:556:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 556 | if (rand_percent(33)) { | ^ level.c:560:9: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 560 | t1 = get_rand(0, 3); | ^ level.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 | make_maze(r, c, tr, br, lc, rc) | ^ level.c:606:1: warning: non-void function does not return a value [-Wreturn-type] 606 | } | ^ level.c:608:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 608 | hide_boxed_passage(row1, col1, row2, col2, n) | ^ | int level.c:631:12: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 631 | row = get_rand(row1 + row_cut, row2 - row_cut); | ^ level.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 608 | hide_boxed_passage(row1, col1, row2, col2, n) | ^ level.c:641:1: warning: non-void function does not return a value [-Wreturn-type] 641 | } | ^ level.c:643:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 643 | put_player(nr) | ^ | int level.c:650:3: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 650 | gr_row_col(&row, &col, (FLOOR | TUNNEL | OBJECT | STAIRS)); | ^ level.c:651:8: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 651 | rn = get_room_number(row, col); | ^ level.c:662:3: warning: call to undeclared function 'light_up_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 662 | light_up_room(cur_room); | ^ level.c:666:2: warning: call to undeclared function 'wake_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 666 | wake_room(get_room_number(rogue.row, rogue.col), 1, rogue.row, rogue.col); | ^ level.c:666:12: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 666 | wake_room(get_room_number(rogue.row, rogue.col), 1, rogue.row, rogue.col); | ^ level.c:671:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 671 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ level.c:671:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 671 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ level.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 | put_player(nr) | ^ level.c:672:1: warning: non-void function does not return a value [-Wreturn-type] 672 | } | ^ level.c:674:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 674 | drop_check() | ^ | int level.c:690:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 690 | check_up() | ^ | int level.c:697:8: warning: call to undeclared function 'has_amulet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 697 | if (!has_amulet()) { | ^ level.c:704:3: warning: call to undeclared function 'win'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 704 | win(); | ^ level.c:712:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 712 | add_exp(e, promotion) | ^ | int level.c:726:13: warning: call to undeclared function 'get_exp_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 726 | new_exp = get_exp_level(rogue.exp_points); | ^ level.c:733:4: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 733 | znum(bf, i, 0); | ^ level.c:734:4: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 734 | sprintf(mbuf, mesg[53], bf); | ^ level.c:734:4: note: include the header or explicitly provide a declaration for 'sprintf' level.c:740:10: warning: call to undeclared function 'hp_raise'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 740 | hp = hp_raise(); | ^ level.c:745:4: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 745 | print_stats(STAT_HP | STAT_EXP); | ^ level.c:748:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 748 | print_stats(STAT_EXP); | ^ level.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 | add_exp(e, promotion) | ^ level.c:750:1: warning: non-void function does not return a value [-Wreturn-type] 750 | } | ^ level.c:752:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 752 | get_exp_level(e) | ^ | int level.c:752:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] level.c:765:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 765 | hp_raise() | ^ | int level.c:769:22: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 769 | hp = (wizard ? 10 : get_rand(3, 10)); | ^ level.c:773:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 773 | show_average_hp() | ^ | int level.c:792:1: warning: non-void function does not return a value [-Wreturn-type] 792 | } | ^ level.c:794:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 794 | mix_random_rooms() | ^ | int level.c:800:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 800 | j = get_rand(i, MAXROOMS - 1); | ^ level.c:803:1: warning: non-void function does not return a value [-Wreturn-type] 803 | } | ^ 120 warnings generated. --- move.o --- --- monster.o --- --- level.o --- --- throw.o --- throw.c:27:8: warning: call to undeclared function 'get_direction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 27 | dir = get_direction(); | ^ throw.c:31:13: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 31 | if ((wch = pack_letter(mesg[210], WEAPON)) == CANCEL) { | ^ throw.c:36:34: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | if (!(weapon = get_letter_object(wch))) { | ^ throw.c:47:3: warning: call to undeclared function 'unwield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | unwield(rogue.weapon); | ^ throw.c:49:3: warning: call to undeclared function 'mv_aquatars'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | mv_aquatars(); | ^ throw.c:50:3: warning: call to undeclared function 'unwear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | unwear(rogue.armor); | ^ throw.c:51:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | print_stats(STAT_ARMOR); | ^ throw.c:53:3: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | un_put_on(weapon); | ^ throw.c:55:33: warning: passing arguments to 'get_thrown_at_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | monster = get_thrown_at_monster(weapon, dir, &row, &col); | ^ throw.c:56:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ throw.c:56:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ throw.c:57:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | refresh(); | ^ throw.c:59:6: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | if (rogue_can_see(row, col) && ((row != rogue.row) || (col != rogue.col))){ | ^ throw.c:60:29: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ throw.c:63:3: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | wake_up(monster); | ^ throw.c:64:3: warning: call to undeclared function 'check_gold_seeker'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | check_gold_seeker(monster); | ^ throw.c:66:8: warning: call to undeclared function 'throw_at_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 66 | if (!throw_at_monster(monster, weapon)) { | ^ throw.c:67:4: warning: call to undeclared function 'flop_weapon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | flop_weapon(weapon, row, col); | ^ throw.c:70:3: warning: call to undeclared function 'flop_weapon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 70 | flop_weapon(weapon, row, col); | ^ throw.c:72:2: warning: call to undeclared function 'vanish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | vanish(weapon, 1, &rogue.pack); | ^ throw.c:75:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 75 | throw_at_monster(monster, weapon) | ^ | int throw.c:81:15: warning: call to undeclared function 'get_hit_chance'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | hit_chance = get_hit_chance(weapon); | ^ throw.c:82:11: warning: call to undeclared function 'get_weapon_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | damage = get_weapon_damage(weapon); | ^ throw.c:97:2: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 97 | sprintf(hit_message, mesg[212], name_of(weapon)); | ^ throw.c:97:2: note: include the header or explicitly provide a declaration for 'sprintf' throw.c:97:41: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | sprintf(hit_message, mesg[212], name_of(weapon)); | ^ throw.c:100:7: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 100 | if (!rand_percent(hit_chance)) { | ^ throw.c:106:3: warning: call to undeclared function 'zap_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | zap_monster(monster, weapon->which_kind); | ^ throw.c:109:3: warning: call to undeclared function 'potion_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | potion_monster(monster, weapon->which_kind); | ^ throw.c:112:10: warning: call to undeclared function 'mon_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | (void) mon_damage(monster, damage); | ^ throw.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 | throw_at_monster(monster, weapon) | ^ throw.c:128:7: warning: call to undeclared function 'get_mask_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | ch = get_mask_char(obj->what_is); | ^ throw.c:131:3: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | get_dir_rc(dir, row, col, 0); | ^ throw.c:139:19: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | if ((i != 0) && rogue_can_see(orow, ocol)) { | ^ throw.c:140:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | mvaddch(orow, ocol, colored(get_dungeon_char(orow, ocol))); | ^ throw.c:140:24: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | mvaddch(orow, ocol, colored(get_dungeon_char(orow, ocol))); | ^ throw.c:140:32: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | mvaddch(orow, ocol, colored(get_dungeon_char(orow, ocol))); | ^ throw.c:144:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | mvaddch(*row, *col, colored(ch)); | ^ throw.c:144:25: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | mvaddch(*row, *col, colored(ch)); | ^ throw.c:146:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | refresh(); | ^ throw.c:150:9: warning: call to undeclared function 'imitating'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | if (!imitating(*row, *col)) { | ^ throw.c:151:21: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | return(object_at(&level_monsters, *row, *col)); | ^ throw.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 | get_thrown_at_monster(obj, dir, row, col) | ^ In file included from throw.c:13: ./rogue.h:428:9: 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] 428 | object *get_thrown_at_monster(); | ^ throw.c:161:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 161 | flop_weapon(weapon, row, col) | ^ | int throw.c:173:3: warning: call to undeclared function 'rand_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | rand_around(i++, &row, &col); | ^ throw.c:189:3: warning: call to undeclared function 'place_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 189 | place_at(new_weapon, row, col); | ^ throw.c:190:7: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | if (rogue_can_see(row, col) && | ^ throw.c:194:10: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 194 | dch = get_dungeon_char(row, col); | ^ throw.c:196:11: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 196 | mch = mvinch(row, col); | ^ throw.c:197:28: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | if (monster = object_at(&level_monsters, row, col)) { | ^ throw.c:197:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 197 | if (monster = object_at(&level_monsters, row, col)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ throw.c:197:17: note: place parentheses around the assignment to silence this warning 197 | if (monster = object_at(&level_monsters, row, col)) { | ^ | ( ) throw.c:197:17: note: use '==' to turn this assignment into an equality comparison 197 | if (monster = object_at(&level_monsters, row, col)) { | ^ | == throw.c:201:6: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 201 | mvaddch(row, col, colored(dch)); | ^ throw.c:201:24: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 201 | mvaddch(row, col, colored(dch)); | ^ throw.c:204:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | mvaddch(row, col, colored(dch)); | ^ throw.c:204:23: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | mvaddch(row, col, colored(dch)); | ^ throw.c:214:10: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | name_of(weapon)); | ^ throw.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 | flop_weapon(weapon, row, col) | ^ throw.c:218:1: warning: non-void function does not return a value [-Wreturn-type] 218 | } | ^ throw.c:220:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 220 | rand_around(i, r, c) | ^ | int throw.c:236:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 236 | o = get_rand(1, 8); | ^ throw.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 | rand_around(i, r, c) | ^ throw.c:249:1: warning: non-void function does not return a value [-Wreturn-type] 249 | } | ^ throw.c:252:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 252 | potion_monster(monster, kind) | ^ | int throw.c:277:3: warning: call to undeclared function 'mon_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | mon_damage(monster, (monster->hp_to_kill / 4 + 1)); | ^ throw.c:284:30: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 284 | monster->moves_confused += get_rand(12, 22); | ^ throw.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 | potion_monster(monster, kind) | ^ throw.c:293:1: warning: non-void function does not return a value [-Wreturn-type] 293 | } | ^ 67 warnings generated. --- score.o --- score.c:34:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 34 | killed_by(monster, other) | ^ | int score.c:72:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | md_ignore_signals(); | ^ score.c:89:3: warning: call to undeclared function 'md_gct'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | md_gct(&rt); | ^ score.c:90:3: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | clear(); | ^ score.c:92:3: warning: call to undeclared function 'color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | color(GREEN); | ^ score.c:95:4: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | mvaddstr(i+3, xpos[i], str[i]); | ^ score.c:98:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | mvaddch(15, DCOLS/2-11, '*'); /* by Yasha */ | ^ score.c:112:3: warning: call to undeclared function 'center'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | center(6, mesg[177]); | ^ score.c:115:3: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | standend(); | ^ score.c:121:3: warning: call to undeclared function 'lznum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | lznum(buf+2, rogue.gold, 0); | ^ score.c:124:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 124 | znum(buf, rt.year + 1900, 0); | ^ score.c:131:3: warning: call to undeclared function 'lznum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | lznum(buf, rogue.gold, 0); | ^ score.c:132:16: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 132 | strcat(buf, ""); | ^~~~~~~~ score.c:136:2: warning: call to undeclared function 'put_scores'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | put_scores(monster, other); | ^ score.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 | killed_by(monster, other) | ^ score.c:137:1: warning: non-void function does not return a value [-Wreturn-type] 137 | } | ^ score.c:295:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 295 | win() | ^ | int score.c:335:2: warning: call to undeclared function 'unwield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 335 | unwield(rogue.weapon); /* disarm and relax */ | ^ score.c:336:2: warning: call to undeclared function 'unwear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 336 | unwear(rogue.armor); | ^ score.c:337:2: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 337 | un_put_on(rogue.left_ring); | ^ score.c:340:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | clear(); | ^ score.c:343:3: warning: call to undeclared function 'mvaddbanner'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 343 | mvaddbanner(i+6, DCOLS/2-30, ban[i]); | ^ score.c:346:2: warning: call to undeclared function 'color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 346 | color(YELLOW); | ^ score.c:348:2: warning: call to undeclared function 'center'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | center(15, mesg[182]); | ^ score.c:353:2: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 353 | standend(); | ^ score.c:367:2: warning: call to undeclared function 'id_all'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 367 | id_all(); | ^ score.c:368:2: warning: call to undeclared function 'sell_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 368 | sell_pack(); | ^ score.c:369:2: warning: call to undeclared function 'put_scores'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 369 | put_scores((object *) 0, WIN); | ^ score.c:370:1: warning: non-void function does not return a value [-Wreturn-type] 370 | } | ^ score.c:373:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 373 | mvaddbanner(row, col, ban) | ^ | int score.c:386:2: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 386 | move(row, col); | ^ score.c:373:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | mvaddbanner(row, col, ban) | ^ score.c:397:1: warning: non-void function does not return a value [-Wreturn-type] 397 | } | ^ score.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 | quit(from_intrpt) | ^ score.c:402:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 402 | boolean from_intrpt; | ^ ./rogue.h:481:19: note: previous declaration is here 481 | void quit(boolean from_intrpt); | ^ score.c:408:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 408 | md_ignore_signals(); | ^ score.c:417:13: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 417 | buf[i] = mvinch(0, i); | ^ score.c:422:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 422 | message("λƤ褤ΤǤ", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ score.c:426:6: warning: call to undeclared function 'rgetchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | if (rgetchar() != 'y') { | ^ score.c:427:3: warning: call to undeclared function 'md_heed_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 427 | md_heed_signals(); | ^ score.c:431:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 431 | mvaddch(0, i, (unsigned char) buf[i]); | ^ score.c:434:4: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 434 | move(orow, ocol); | ^ score.c:435:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 435 | refresh(); | ^ score.c:440:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 440 | clean_up(mesg[12]); /* byebye_string */ | ^ score.c:447:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 447 | put_scores(monster, other) | ^ | int score.c:461:49: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | if ((!game_dir || !*game_dir) && (p = md_getenv("HOME")) != NULL) { | ^ score.c:478:3: warning: call to undeclared function 'sf_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 478 | sf_error(); | ^ score.c:503:12: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | (void) xxx(1); | ^ score.c:508:4: warning: call to undeclared function 'sf_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 508 | sf_error(); | ^ score.c:509:3: warning: call to undeclared function 'xxxx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 509 | xxxx(scores[i], 80); | ^ score.c:542:33: warning: passing arguments to 'lget_number' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | if (rogue.gold <= lget_number(p)) | ^ score.c:552:4: warning: call to undeclared function 'insert_score'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 552 | insert_score(scores, n_names, nick_name, | ^ score.c:559:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 559 | md_ignore_signals(); | ^ score.c:560:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 560 | clear(); | ^ score.c:562:2: warning: call to undeclared function 'color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 562 | color(YELLOW); | ^ score.c:565:2: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 565 | mvaddstr(3, 20, mesg[187]); | ^ score.c:574:2: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 574 | standend(); | ^ score.c:585:5: warning: call to undeclared function 'standout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 585 | standout(); | ^ score.c:594:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 594 | refresh(); | ^ score.c:603:4: warning: call to undeclared function 'sf_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 603 | sf_error(); | ^ score.c:605:13: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | (void) xxx(1); | ^ score.c:607:4: warning: call to undeclared function 'xxxx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 607 | xxxx(scores[i], 80); | ^ score.c:615:2: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 615 | clean_up(""); | ^ score.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 | put_scores(monster, other) | ^ score.c:616:1: warning: non-void function does not return a value [-Wreturn-type] 616 | } | ^ score.c:754:57: warning: parameter 'other' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 754 | insert_score(scores, n_names, n_name, rank, n, monster, other) | ^ 755 | char scores[][82]; 756 | char n_names[][30]; 757 | char *n_name; 758 | short rank, n; 759 | object *monster; 760 | { score.c:754:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 754 | insert_score(scores, n_names, n_name, rank, n, monster, other) | ^ | int score.c:776:7: warning: call to undeclared function 'has_amulet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 776 | if (has_amulet()) | ^ score.c:780:3: warning: call to undeclared function 'znum'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 780 | znum(buf, cur_level, 0); | ^ score.c:809:15: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 809 | strcat(buf, ""); | ^~~~~~~~ score.c:810:11: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 810 | for (i = strlen(buf); i < 79; i++) { | ^ score.c:810:11: note: include the header or explicitly provide a declaration for 'strlen' score.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 | insert_score(scores, n_names, n_name, rank, n, monster, other) | ^ score.c:816:1: warning: non-void function does not return a value [-Wreturn-type] 816 | } | ^ score.c:887:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 887 | is_vowel(ch) | ^ | int score.c:887:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] score.c:897:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 897 | sell_pack() | ^ | int score.c:905:2: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 905 | clear(); | ^ score.c:906:2: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 906 | mvaddstr(1, 0, mesg[198]); | ^ score.c:911:10: warning: call to undeclared function 'get_value'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 911 | val = get_value(obj); | ^ score.c:922:2: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 922 | refresh(); | ^ score.c:927:1: warning: non-void function does not return a value [-Wreturn-type] 927 | } | ^ score.c:929:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 929 | get_value(obj) | ^ | int score.c:929:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] score.c:974:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 974 | id_all() | ^ | int score.c:993:1: warning: non-void function does not return a value [-Wreturn-type] 993 | } | ^ score.c:1038:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1038 | xxxx(buf, n) | ^ | int score.c:1053:17: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | c = (char) xxx(0); | ^ score.c:1038:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1038 | xxxx(buf, n) | ^ score.c:1060:1: warning: non-void function does not return a value [-Wreturn-type] 1060 | } | ^ score.c:1063:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1063 | xxx(st) | ^ In file included from score.c:14: ./rogue.h:438:6: 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] 438 | long xxx(); | ^ score.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 | nickize(buf, score, n_name) | ^ score.c:1106:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1106 | center(row, buf) | ^ | int score.c:1113:2: warning: call to undeclared function 'mvaddstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1113 | mvaddstr(row, margin, buf); | ^ score.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 | center(row, buf) | ^ score.c:1114:1: warning: non-void function does not return a value [-Wreturn-type] 1114 | } | ^ score.c:1116:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1116 | sf_error() | ^ | int score.c:1119:2: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1119 | clean_up(mesg[199]); | ^ score.c:1120:1: warning: non-void function does not return a value [-Wreturn-type] 1120 | } | ^ 99 warnings generated. --- save.o --- save.c:49:7: warning: call to undeclared function 'get_input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | if (!get_input_line("֤ե̾ϡ", save_file, fname, | ^ save.c:49:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 49 | if (!get_input_line("֤ե̾ϡ", save_file, fname, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ save.c:50:5: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 50 | "Υ֤ߤޤ", 0, 1)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:59:2: warning: call to undeclared function 'save_into_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | save_into_file(fname); | ^ save.c:62:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 62 | save_into_file(sfile) | ^ | int save.c:72:6: warning: address of array 'org_dir' will always evaluate to 'true' [-Wpointer-bool-conversion] 72 | if (org_dir && *org_dir) | ^~~~~~~ ~~ save.c:73:3: warning: call to undeclared function 'md_chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | md_chdir(org_dir); | ^ save.c:76:23: warning: passing arguments to 'md_getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (hptr = md_getenv("HOME")) { | ^ save.c:76:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 76 | if (hptr = md_getenv("HOME")) { | ~~~~~^~~~~~~~~~~~~~~~~~~ save.c:76:12: note: place parentheses around the assignment to silence this warning 76 | if (hptr = md_getenv("HOME")) { | ^ | ( ) save.c:76:12: note: use '==' to turn this assignment into an equality comparison 76 | if (hptr = md_getenv("HOME")) { | ^ | == save.c:93:16: warning: call to undeclared function 'md_get_file_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | ((file_id = md_get_file_id(sfile)) == -1)) { | ^ save.c:95:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 95 | message("֥ե˥Ǥޤ", 0); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:113:2: warning: call to undeclared function 'md_ignore_signals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | md_ignore_signals(); | ^ save.c:115:12: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | (void) xxx(1); | ^ save.c:116:2: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | r_write(fp, (char *) &detect_monster, sizeof(detect_monster)); | ^ save.c:119:2: warning: call to undeclared function 'write_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | write_string(hunger_str, fp); | ^ save.c:123:2: warning: call to undeclared function 'write_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | write_pack(&level_monsters, fp); | ^ save.c:126:2: warning: call to undeclared function 'rw_dungeon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 126 | rw_dungeon(fp, 1); | ^ save.c:130:2: warning: call to undeclared function 'rw_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | rw_id(id_potions, fp, POTIONS, 1); | ^ save.c:137:2: warning: call to undeclared function 'rw_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | rw_rooms(fp, 1); | ^ save.c:150:2: warning: call to undeclared function 'md_gct'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | md_gct(&rt_buf); | ^ save.c:156:15: warning: passing arguments to 'md_df' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | (void) md_df(sfile); /* delete file */ | ^ save.c:158:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 158 | clean_up(""); | ^ save.c:62:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | save_into_file(sfile) | ^ save.c:167:1: warning: non-void function does not return a value [-Wreturn-type] 167 | } | ^ save.c:169:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 169 | restore(fname) | ^ | int save.c:179:6: warning: address of array 'org_dir' will always evaluate to 'true' [-Wpointer-bool-conversion] 179 | if (org_dir && *org_dir) | ^~~~~~~ ~~ save.c:180:3: warning: call to undeclared function 'md_chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 180 | md_chdir(org_dir); | ^ save.c:184:22: warning: call to undeclared function 'md_get_file_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 184 | if (((new_file_id = md_get_file_id(fname)) == -1) || | ^ save.c:187:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | clean_up("եץǤޤǤ"); | ^ save.c:187:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 187 | clean_up("եץǤޤǤ"); | ^~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:192:6: warning: call to undeclared function 'md_link_count'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 192 | if (md_link_count(fname) > 1) { | ^ save.c:194:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 194 | clean_up("եϥƤޤ"); | ^ save.c:194:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 194 | clean_up("եϥƤޤ"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ save.c:210:12: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | (void) xxx(1); | ^ save.c:211:2: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | r_read(fp, (char *) &detect_monster, sizeof(detect_monster)); | ^ save.c:214:2: warning: call to undeclared function 'read_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | read_string(hunger_str, fp); | ^ save.c:218:6: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 218 | if (strcmp(tbuf, login_name)) { | ^ save.c:218:6: note: include the header or explicitly provide a declaration for 'strcmp' save.c:220:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 220 | clean_up("֥եλޤ"); | ^ save.c:220:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 220 | clean_up("֥եλޤ"); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~ save.c:228:2: warning: call to undeclared function 'read_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 228 | read_pack(&level_monsters, fp, 0); | ^ save.c:233:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 233 | clean_up("ϸΥ֥եǤϤޤ"); | ^ save.c:233:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 233 | clean_up("ϸΥ֥եǤϤޤ"); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:238:2: warning: call to undeclared function 'rw_dungeon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 238 | rw_dungeon(fp, 0); | ^ save.c:242:2: warning: call to undeclared function 'rw_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 242 | rw_id(id_potions, fp, POTIONS, 0); | ^ save.c:249:2: warning: call to undeclared function 'rw_rooms'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | rw_rooms(fp, 0); | ^ save.c:265:3: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 265 | clear(); | ^ save.c:267:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 267 | clean_up("եˤ褱ʸޤ"); | ^ save.c:267:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 267 | clean_up("եˤ褱ʸޤ"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ save.c:273:2: warning: call to undeclared function 'md_gfmt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 273 | md_gfmt(fname, &mod_time); /* get file modification time */ | ^ save.c:275:22: warning: passing arguments to 'has_been_touched' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | if (has_been_touched(&saved_time, &mod_time)) { | ^ save.c:276:3: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 276 | clear(); | ^ save.c:278:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 278 | clean_up("եѹƤޤ"); | ^ save.c:278:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 278 | clean_up("եѹƤޤ"); | ^~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ save.c:283:25: warning: passing arguments to 'md_df' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | if ((!wizard) && !md_df(fname)) { | ^ save.c:285:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 285 | clean_up("եäȤǤޤ"); | ^ save.c:285:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 285 | clean_up("եäȤǤޤ"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:291:2: warning: call to undeclared function 'ring_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 291 | ring_stats(0); | ^ save.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 | restore(fname) | ^ save.c:298:1: warning: non-void function does not return a value [-Wreturn-type] 298 | } | ^ save.c:300:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 300 | write_pack(pack, fp) | ^ | int save.c:306:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 306 | while (pack = pack->next_object) { | ~~~~~^~~~~~~~~~~~~~~~~~~ save.c:306:14: note: place parentheses around the assignment to silence this warning 306 | while (pack = pack->next_object) { | ^ | ( ) save.c:306:14: note: use '==' to turn this assignment into an equality comparison 306 | while (pack = pack->next_object) { | ^ | == save.c:307:3: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 307 | r_write(fp, (char *) pack, sizeof(object)); | ^ save.c:310:2: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 310 | r_write(fp, (char *) &t, sizeof(object)); | ^ save.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 | write_pack(pack, fp) | ^ save.c:311:1: warning: non-void function does not return a value [-Wreturn-type] 311 | } | ^ save.c:313:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 313 | read_pack(pack, fp, is_rogue) | ^ | int save.c:321:3: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 321 | r_read(fp, (char *) &read_obj, sizeof(object)); | ^ save.c:330:5: warning: call to undeclared function 'do_wear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 330 | do_wear(new_obj); | ^ save.c:332:5: warning: call to undeclared function 'do_wield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | do_wield(new_obj); | ^ save.c:334:5: warning: call to undeclared function 'do_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 334 | do_put_on(new_obj, | ^ save.c:313:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 313 | read_pack(pack, fp, is_rogue) | ^ save.c:342:1: warning: non-void function does not return a value [-Wreturn-type] 342 | } | ^ save.c:344:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 344 | rw_dungeon(fp, rw) | ^ | int save.c:353:4: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 353 | r_write(fp, (char *) dungeon[i], (DCOLS * sizeof(dungeon[0][0]))); | ^ save.c:361:14: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 361 | buf[j] = mvinch(i, j); | ^ save.c:365:4: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 365 | r_read(fp, (char *) dungeon[i], (DCOLS * sizeof(dungeon[0][0]))); | ^ save.c:377:6: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 377 | mvaddch(i, j, (unsigned char) buf[j]); | ^ save.c:379:20: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | mvaddch(i, j, colored(buf[j])); | ^ save.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 | rw_dungeon(fp, rw) | ^ save.c:386:1: warning: non-void function does not return a value [-Wreturn-type] 386 | } | ^ save.c:388:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 388 | rw_id(id_table, fp, n, wr) | ^ | int save.c:398:4: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 398 | r_write(fp, (char *) &(id_table[i].value), sizeof(short)); | ^ save.c:401:4: warning: call to undeclared function 'write_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 401 | write_string(id_table[i].title, fp); | ^ save.c:403:4: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 403 | r_read(fp, (char *) &(id_table[i].value), sizeof(short)); | ^ save.c:406:4: warning: call to undeclared function 'read_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 406 | read_string(id_table[i].title, fp); | ^ save.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 | rw_id(id_table, fp, n, wr) | ^ save.c:409:1: warning: non-void function does not return a value [-Wreturn-type] 409 | } | ^ save.c:411:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 411 | write_string(s, fp) | ^ | int save.c:417:6: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 417 | n = strlen(s) + 1; | ^ save.c:417:6: note: include the header or explicitly provide a declaration for 'strlen' save.c:418:2: warning: call to undeclared function 'xxxx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | xxxx(s, n); | ^ save.c:419:2: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 419 | r_write(fp, (char *) &n, sizeof(short)); | ^ save.c:411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | write_string(s, fp) | ^ save.c:421:1: warning: non-void function does not return a value [-Wreturn-type] 421 | } | ^ save.c:423:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 423 | read_string(s, fp) | ^ | int save.c:429:2: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 429 | r_read(fp, (char *) &n, sizeof(short)); | ^ save.c:431:2: warning: call to undeclared function 'xxxx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 431 | xxxx(s, n); | ^ save.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 | read_string(s, fp) | ^ save.c:432:1: warning: non-void function does not return a value [-Wreturn-type] 432 | } | ^ save.c:434:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 434 | rw_rooms(fp, rw) | ^ | int save.c:441:8: warning: call to undeclared function 'r_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 441 | rw ? r_write(fp, (char *) (rooms + i), sizeof(room)) : | ^ save.c:442:4: warning: call to undeclared function 'r_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 442 | r_read(fp, (char *) (rooms + i), sizeof(room)); | ^ save.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 | rw_rooms(fp, rw) | ^ save.c:444:1: warning: non-void function does not return a value [-Wreturn-type] 444 | } | ^ save.c:446:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 446 | r_read(fp, buf, n) | ^ | int save.c:453:3: warning: call to undeclared function 'clean_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 453 | clean_up("եɤޤ"); | ^ save.c:453:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 453 | clean_up("եɤޤ"); | ^~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | r_read(fp, buf, n) | ^ save.c:458:1: warning: non-void function does not return a value [-Wreturn-type] 458 | } | ^ save.c:460:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 460 | r_write(fp, buf, n) | ^ | int save.c:468:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 468 | message("ե˽ޤ", 0); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ save.c:472:4: warning: call to undeclared function 'sound_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 472 | sound_bell(); | ^ save.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 | r_write(fp, buf, n) | ^ save.c:476:1: warning: non-void function does not return a value [-Wreturn-type] 476 | } | ^ save.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 | has_been_touched(saved_time, mod_time) | ^ In file included from save.c:14: ./rogue.h:423:9: 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] 423 | boolean has_been_touched(); | ^ 115 warnings generated. --- score.o --- --- save.o --- --- trap.o --- trap.c:32:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 32 | register row, col; | ~~~~~~~~ ^ | int trap.c:32:15: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 32 | register row, col; | ~~~~~~~~ ^ | int trap.c:31:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 31 | trap_at(row, col) | ^ | int trap.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] trap.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 | trap_player(row, col) | ^ trap.c:46:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 46 | short row, col; | ^ ./rogue.h:493:24: note: previous declaration is here 493 | void trap_player(short row, short col); | ^ trap.c:46:12: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 46 | short row, col; | ^ ./rogue.h:493:35: note: previous declaration is here 493 | void trap_player(short row, short col); | ^ trap.c:54:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | if (rand_percent(rogue.exp + ring_exp)) { | ^ trap.c:65:15: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | bear_trap = get_rand(4, 7); | ^ trap.c:68:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | mvaddch(rogue.row, rogue.col, colored('^')); | ^ trap.c:68:33: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | mvaddch(rogue.row, rogue.col, colored('^')); | ^ trap.c:69:3: warning: call to undeclared function 'tele'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 69 | tele(); | ^ trap.c:73:23: warning: call to undeclared function 'get_damage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | rogue.hp_current -= get_damage("1d6", 1); | ^ trap.c:81:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | print_stats(STAT_HP | STAT_STRENGTH); | ^ trap.c:83:4: warning: call to undeclared function 'killed_by'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | killed_by((object *) 0, POISON_DART); | ^ trap.c:88:3: warning: call to undeclared function 'take_a_nap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | take_a_nap(); | ^ trap.c:97:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 97 | add_traps() | ^ | int trap.c:105:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 105 | n = get_rand(0, 2); | ^ trap.c:107:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | n = get_rand(1, 2); | ^ trap.c:109:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | n = get_rand(2, 3); | ^ trap.c:111:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | n = get_rand(2, 4); | ^ trap.c:113:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | n = get_rand(3, 5); | ^ trap.c:115:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | n = get_rand(5, MAX_TRAPS); | ^ trap.c:118:24: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | traps[i].trap_type = get_rand(0, (TRAPS - 1)); | ^ trap.c:130:5: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | gr_row_col(&row, &col, (FLOOR | MONSTER)); | ^ trap.c:133:4: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | gr_row_col(&row, &col, (FLOOR | MONSTER)); | ^ trap.c:139:1: warning: non-void function does not return a value [-Wreturn-type] 139 | } | ^ trap.c:147:8: warning: call to undeclared function 'get_direction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | dir = get_direction(); | ^ trap.c:154:2: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | get_dir_rc(dir, &row, &col, 0); | ^ trap.c:164:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 164 | show_traps() | ^ | int trap.c:171:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | mvaddch(i, j, colored('^')); | ^ trap.c:171:19: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | mvaddch(i, j, colored('^')); | ^ trap.c:175:1: warning: non-void function does not return a value [-Wreturn-type] 175 | } | ^ trap.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | search(n, is_auto) | ^ trap.c:179:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype [-Wknr-promoted-parameter] 179 | short n; | ^ ./rogue.h:495:19: note: previous declaration is here 495 | void search(short n, boolean is_auto); | ^ trap.c:180:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 180 | boolean is_auto; | ^ ./rogue.h:495:30: note: previous declaration is here 495 | void search(short n, boolean is_auto); | ^ trap.c:209:10: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 209 | if (rand_percent(17 + (rogue.exp + ring_exp))) { | ^ trap.c:213:8: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ trap.c:213:26: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ trap.c:213:34: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ 40 warnings generated. --- spechit.o --- spechit.c:26:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | special_hit(monster) | ^ spechit.c:29:39: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | if ((monster->m_flags & CONFUSED) && rand_percent(66)) { | ^ spechit.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 | rust(monster) | ^ spechit.c:61:25: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | if ((!rogue.armor) || (get_armor_class(rogue.armor) <= 1) || | ^ spechit.c:73:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | print_stats(STAT_ARMOR); | ^ spechit.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 | freeze(monster) | ^ spechit.c:84:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | if (rand_percent(12)) { | ^ spechit.c:89:21: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | freeze_percent -= (get_armor_class(rogue.armor) * 5); | ^ spechit.c:95:7: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | n = get_rand(4, 8); | ^ spechit.c:103:4: warning: call to undeclared function 'killed_by'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 103 | killed_by((object *)0, HYPOTHERMIA); | ^ spechit.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 | steal_gold(monster) | ^ spechit.c:116:27: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | if ((rogue.gold <= 0) || rand_percent(10)) { | ^ spechit.c:120:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | amount = get_rand((cur_level * 10), (cur_level * 30)); | ^ spechit.c:127:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | print_stats(STAT_GOLD); | ^ spechit.c:128:2: warning: call to undeclared function 'disappear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | disappear(monster); | ^ spechit.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 | steal_item(monster) | ^ spechit.c:140:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | if (rand_percent(15)) { | ^ spechit.c:154:5: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | un_put_on(obj); | ^ spechit.c:171:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | n = get_rand(0, MAX_PACK_COUNT); | ^ spechit.c:204:2: warning: call to undeclared function 'vanish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | vanish(obj, 0, &rogue.pack); | ^ spechit.c:206:2: warning: call to undeclared function 'disappear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 206 | disappear(monster); | ^ spechit.c:209:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 209 | disappear(monster) | ^ | int spechit.c:218:6: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 218 | if (rogue_can_see(row, col)) { | ^ spechit.c:219:3: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:219:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:219:29: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:221:2: warning: call to undeclared function 'take_from_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 221 | take_from_pack(monster, &level_monsters); | ^ spechit.c:222:2: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 222 | free_object(monster); | ^ spechit.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 | disappear(monster) | ^ spechit.c:224:1: warning: non-void function does not return a value [-Wreturn-type] 224 | } | ^ spechit.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 | cough_up(monster) | ^ spechit.c:240:19: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 240 | obj->quantity = get_rand((cur_level * 15), (cur_level * 30)); | ^ spechit.c:242:8: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 242 | if (!rand_percent((int) monster->drop_percent)) { | ^ spechit.c:252:8: warning: call to undeclared function 'try_to_cough'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 252 | if (try_to_cough(row+n, col+i, obj)) { | ^ spechit.c:260:8: warning: call to undeclared function 'try_to_cough'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 260 | if (try_to_cough(row+i, col-n, obj)) { | ^ spechit.c:268:2: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 268 | free_object(obj); | ^ spechit.c:271:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 271 | try_to_cough(row, col, obj) | ^ | int spechit.c:280:3: warning: call to undeclared function 'place_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 280 | place_at(obj, row, col); | ^ spechit.c:283:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:283:22: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:283:30: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.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 | try_to_cough(row, col, obj) | ^ spechit.c:290:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 290 | seek_gold(monster) | ^ | int spechit.c:295:12: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 295 | if ((rn = get_room_number(monster->row, monster->col)) < 0) { | ^ spechit.c:300:9: warning: call to undeclared function 'gold_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | if ((gold_at(i, j)) && !(dungeon[i][j] & MONSTER)) { | ^ spechit.c:302:9: warning: call to undeclared function 'mon_can_go'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 302 | s = mon_can_go(monster, i, j); | ^ spechit.c:305:6: warning: call to undeclared function 'move_mon_to'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 305 | move_mon_to(monster, i, j); | ^ spechit.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 | seek_gold(monster) | ^ spechit.c:322:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 322 | gold_at(row, col) | ^ | int spechit.c:328:23: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | if ((obj = object_at(&level_objects, row, col)) && | ^ spechit.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 | gold_at(row, col) | ^ spechit.c:336:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 336 | check_gold_seeker(monster) | ^ | int spechit.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] spechit.c:340:1: warning: non-void function does not return a value [-Wreturn-type] 340 | } | ^ spechit.c:342:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 342 | check_imitator(monster) | ^ | int spechit.c:348:3: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | wake_up(monster); | ^ spechit.c:350:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 350 | mvaddch(monster->row, monster->col, | ^ spechit.c:351:5: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 351 | colored(get_dungeon_char(monster->row, monster->col))); | ^ spechit.c:351:13: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 351 | colored(get_dungeon_char(monster->row, monster->col))); | ^ spechit.c:353:4: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 353 | sprintf(msg, mesg[206], | ^ spechit.c:353:4: note: include the header or explicitly provide a declaration for 'sprintf' spechit.c:354:15: warning: passing arguments to 'mon_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | mon_name(monster)); | ^ spechit.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | check_imitator(monster) | ^ spechit.c:362:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 362 | imitating(row, col) | ^ | int spechit.c:368:26: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | if (monster = object_at(&level_monsters, row, col)) { | ^ spechit.c:368:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 368 | if (monster = object_at(&level_monsters, row, col)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spechit.c:368:15: note: place parentheses around the assignment to silence this warning 368 | if (monster = object_at(&level_monsters, row, col)) { | ^ | ( ) spechit.c:368:15: note: use '==' to turn this assignment into an equality comparison 368 | if (monster = object_at(&level_monsters, row, col)) { | ^ | == spechit.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 | imitating(row, col) | ^ spechit.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | sting(monster) | ^ spechit.c:387:28: warning: call to undeclared function 'get_armor_class'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 387 | sting_chance += (6 * (6 - get_armor_class(rogue.armor))); | ^ spechit.c:392:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 392 | if (rand_percent(sting_chance)) { | ^ spechit.c:394:13: warning: passing arguments to 'mon_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | mon_name(monster)); | ^ spechit.c:397:3: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 397 | print_stats(STAT_STRENGTH); | ^ spechit.c:406:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 406 | if (rand_percent(80) || (rogue.exp <= 5)) { | ^ spechit.c:409:49: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 409 | rogue.exp_points = level_points[rogue.exp-2] - get_rand(9, 29); | ^ spechit.c:411:7: warning: call to undeclared function 'hp_raise'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 411 | hp = hp_raise(); | ^ spechit.c:418:2: warning: call to undeclared function 'add_exp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | add_exp(1, 0); | ^ spechit.c:426:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | if (rand_percent(60) || (rogue.hp_max <= 30) || (rogue.hp_current < 10)) { | ^ spechit.c:429:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 429 | n = get_rand(1, 3); /* 1 Hp, 2 Str, 3 both */ | ^ spechit.c:442:8: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 442 | if (coin_toss()) { | ^ spechit.c:447:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 447 | print_stats((STAT_STRENGTH | STAT_HP)); | ^ spechit.c:450:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 450 | m_confuse(monster) | ^ | int spechit.c:455:7: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 455 | if (!rogue_can_see(monster->row, monster->col)) { | ^ spechit.c:458:6: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 458 | if (rand_percent(45)) { | ^ spechit.c:465:13: warning: passing arguments to 'mon_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | mon_name(monster)); | ^ spechit.c:467:3: warning: call to undeclared function 'confuse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 467 | confuse(); | ^ spechit.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 | m_confuse(monster) | ^ spechit.c:473:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 473 | flame_broil(monster) | ^ | int spechit.c:478:16: warning: passing arguments to 'mon_sees' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | if ((!mon_sees(monster, rogue.row, rogue.col)) || coin_toss()) { | ^ spechit.c:478:52: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 478 | if ((!mon_sees(monster, rogue.row, rogue.col)) || coin_toss()) { | ^ spechit.c:493:20: warning: call to undeclared function 'rogue_is_around'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 493 | if ((!blind) && (!rogue_is_around(monster->row, monster->col))) { | ^ spechit.c:496:3: warning: call to undeclared function 'get_closer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 496 | get_closer(&row, &col, rogue.row, rogue.col); | ^ spechit.c:498:3: warning: call to undeclared function 'color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 498 | color(RRED); | ^ spechit.c:503:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 503 | mvaddch(row, col, '~'); | ^ spechit.c:504:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 504 | refresh(); | ^ spechit.c:507:3: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | standend(); | ^ spechit.c:511:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:511:22: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:511:30: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | mvaddch(row, col, colored(get_dungeon_char(row, col))); | ^ spechit.c:512:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 512 | refresh(); | ^ spechit.c:473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | flame_broil(monster) | ^ spechit.c:520:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 520 | get_closer(row, col, trow, tcol) | ^ | int spechit.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] spechit.c:534:1: warning: non-void function does not return a value [-Wreturn-type] 534 | } | ^ 102 warnings generated. --- zap.o --- zap.c:30:8: warning: call to undeclared function 'get_direction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | dir = get_direction(); | ^ zap.c:34:13: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | if ((wch = pack_letter(mesg[278], WAND)) == CANCEL) { | ^ zap.c:39:32: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | if (!(wand = get_letter_object(wch))) { | ^ zap.c:54:34: warning: passing arguments to 'get_missiled_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- trap.o --- --- zap.o --- 54 | monster = get_missiled_monster(dir, &row, &col); | ^ zap.c:55:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ zap.c:55:34: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ zap.c:56:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | refresh(); | ^ zap.c:58:9: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | && rogue_can_see(row, col)) { | ^ zap.c:60:14: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | colored(get_dungeon_char(row, col))); | ^ zap.c:63:32: warning: passing arguments to 'get_zapped_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | monster = get_zapped_monster(dir, &row, &col); | ^ zap.c:69:4: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 69 | wake_up(monster); | ^ zap.c:70:4: warning: call to undeclared function 'zap_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 70 | zap_monster(monster, wand->which_kind); | ^ zap.c:71:4: warning: call to undeclared function 'relight'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | relight(); | ^ zap.c:86:3: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 86 | get_dir_rc(dir, row, col, 0); | ^ zap.c:93:9: warning: call to undeclared function 'imitating'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (!imitating(*row, *col)) { | ^ zap.c:94:21: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | return(object_at(&level_monsters, *row, *col)); | ^ zap.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 | get_zapped_monster(dir, row, col) | ^ In file included from zap.c:13: ./rogue.h:429:9: 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] 429 | object *get_zapped_monster(); | ^ zap.c:110:3: warning: call to undeclared function 'get_dir_rc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 110 | get_dir_rc(dir, row, col, 0); | ^ zap.c:118:17: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | if (!first && rogue_can_see(orow, ocol)) | ^ zap.c:119:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | mvaddch(orow, ocol, | ^ zap.c:120:5: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | colored(get_dungeon_char(orow, ocol))); | ^ zap.c:120:13: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | colored(get_dungeon_char(orow, ocol))); | ^ zap.c:128:4: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | refresh(); | ^ zap.c:131:9: warning: call to undeclared function 'imitating'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | if (!imitating(*row, *col)) { | ^ zap.c:132:21: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | return(object_at(&level_monsters, *row, *col)); | ^ zap.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 | get_missiled_monster(dir, row, col) | ^ zap.c:141:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 141 | zap_monster(monster, kind) | ^ | int zap.c:169:3: warning: call to undeclared function 'tele_away'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | tele_away(monster); | ^ zap.c:173:30: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | monster->moves_confused += get_rand(12, 22); | ^ zap.c:184:20: warning: passing arguments to 'gr_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | (void) gr_monster(monster, get_rand(0, MONSTERS-1)); | ^ zap.c:190:4: warning: call to undeclared function 'wake_up'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | wake_up(monster); | ^ zap.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 | zap_monster(monster, kind) | ^ zap.c:214:1: warning: non-void function does not return a value [-Wreturn-type] 214 | } | ^ zap.c:216:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 216 | tele_away(monster) | ^ | int zap.c:224:2: warning: call to undeclared function 'gr_row_col'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 224 | gr_row_col(&row, &col, (FLOOR | TUNNEL | STAIRS | OBJECT)); | ^ zap.c:225:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | mvaddch(monster->row, monster->col,(unsigned char)monster->trail_char); | ^ zap.c:229:24: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | monster->trail_char = mvinch(row, col); | ^ zap.c:230:24: warning: call to undeclared function 'rogue_can_see'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 230 | if (detect_monster || rogue_can_see(row, col)) { | ^ zap.c:232:21: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | mvaddch(row, col, colored(gmc(monster))); | ^ zap.c:232:29: warning: call to undeclared function 'gmc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | mvaddch(row, col, colored(gmc(monster))); | ^ zap.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | tele_away(monster) | ^ zap.c:237:1: warning: non-void function does not return a value [-Wreturn-type] 237 | } | ^ zap.c:239:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 239 | wizardize() | ^ | int zap.c:246:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 246 | message("Ϥ䡢ˡȤǤϤʤ", 0); | ^~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~ zap.c:252:7: warning: call to undeclared function 'get_input_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 252 | if (get_input_line("ˡȤιդϡ", | ^ zap.c:252:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 252 | if (get_input_line("ˡȤιդϡ", | ^~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~ zap.c:257:14: warning: passing arguments to 'xxx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | (void) xxx(1); | ^ zap.c:258:4: warning: call to undeclared function 'xxxx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 258 | xxxx(buf, strlen(buf)); | ^ zap.c:258:14: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 258 | xxxx(buf, strlen(buf)); | ^ zap.c:258:14: note: include the header or explicitly provide a declaration for 'strlen' zap.c:261:9: warning: call to undeclared library function 'bcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 261 | if (!bcmp(buf, wiz_passwd, 11)) { | ^ zap.c:261:9: note: include the header or explicitly provide a declaration for 'bcmp' zap.c:272:14: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 272 | message("ˡȤ衪", 0); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~ zap.c:278:14: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 278 | message("ʹաΤʤ͡", 0); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ zap.c:285:1: warning: non-void function does not return a value [-Wreturn-type] 285 | } | ^ 54 warnings generated. --- use.o --- use.c:43:7: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | ch = pack_letter(mesg[231], POTION); | ^ use.c:47:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | if (!(obj = get_letter_object(ch))) { | ^ use.c:69:4: warning: call to undeclared function 'potion_heal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 69 | potion_heal(0); | ^ use.c:77:26: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | rogue.str_current -= get_rand(1, 3); | ^ use.c:84:5: warning: call to undeclared function 'unhallucinate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | unhallucinate(); | ^ use.c:89:4: warning: call to undeclared function 'add_exp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | add_exp(1, 1); | ^ use.c:92:4: warning: call to undeclared function 'go_blind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | go_blind(); | ^ use.c:96:14: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 96 | halluc += get_rand(500, 800); | ^ use.c:107:6: warning: call to undeclared function 'show_objects'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | show_objects(); | ^ use.c:116:4: warning: call to undeclared function 'confuse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | confuse(); | ^ use.c:131:4: warning: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | sprintf(buf, mesg[244], | ^ use.c:131:4: note: include the header or explicitly provide a declaration for 'sprintf' use.c:135:5: warning: call to undeclared function 'unblind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 135 | unblind(); | ^ use.c:138:4: warning: call to undeclared function 'relight'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | relight(); | ^ use.c:141:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 141 | print_stats((STAT_STRENGTH | STAT_HP)); | ^ use.c:149:2: warning: call to undeclared function 'vanish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | vanish(obj, 1, &rogue.pack); | ^ use.c:281:7: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | ch = pack_letter(mesg[245], SCROL); | ^ use.c:286:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | if (!(obj = get_letter_object(ch))) { | ^ use.c:299:4: warning: call to undeclared function 'hold_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 299 | hold_monster(); | ^ use.c:305:13: warning: passing arguments to 'name_of' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | name_of(rogue.weapon), | ^ use.c:308:10: warning: call to undeclared function 'coin_toss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | if (coin_toss()) { | ^ use.c:326:5: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | print_stats(STAT_ARMOR); | ^ use.c:338:4: warning: call to undeclared function 'tele'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 338 | tele(); | ^ use.c:342:4: warning: call to undeclared function 'take_a_nap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 342 | take_a_nap(); | ^ use.c:355:4: warning: call to undeclared function 'uncurse_all'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 355 | uncurse_all(); | ^ use.c:358:4: warning: call to undeclared function 'create_monster'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 358 | create_monster(); | ^ use.c:361:4: warning: call to undeclared function 'aggravate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 361 | aggravate(); | ^ use.c:365:4: warning: call to undeclared function 'draw_magic_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 365 | draw_magic_map(); | ^ use.c:375:2: warning: call to undeclared function 'vanish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | vanish(obj, (obj->which_kind != SLEEP), &rogue.pack); | ^ use.c:489:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 489 | vanish(obj, rm, pack) | ^ | int use.c:498:4: warning: call to undeclared function 'unwield'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 498 | unwield(obj); | ^ use.c:500:4: warning: call to undeclared function 'unwear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 500 | unwear(obj); | ^ use.c:502:4: warning: call to undeclared function 'un_put_on'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 502 | un_put_on(obj); | ^ use.c:504:3: warning: call to undeclared function 'take_from_pack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 504 | take_from_pack(obj, pack); | ^ use.c:505:3: warning: call to undeclared function 'free_object'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 505 | free_object(obj); | ^ use.c:489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | vanish(obj, rm, pack) | ^ use.c:510:1: warning: non-void function does not return a value [-Wreturn-type] 510 | } | ^ use.c:512:13: warning: parameter 'extra' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 512 | potion_heal(extra) | ^ 513 | { use.c:512:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 512 | potion_heal(extra) | ^ | int use.c:543:3: warning: call to undeclared function 'unblind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 543 | unblind(); | ^ use.c:546:3: warning: call to undeclared function 'unconfuse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | unconfuse(); | ^ use.c:551:3: warning: call to undeclared function 'unhallucinate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 551 | unhallucinate(); | ^ use.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 | potion_heal(extra) | ^ use.c:555:1: warning: non-void function does not return a value [-Wreturn-type] 555 | } | ^ use.c:565:7: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 565 | ch = pack_letter(mesg[260], ALL_OBJECTS); | ^ use.c:569:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 569 | if (!(obj = get_letter_object(ch))) { | ^ use.c:577:26: warning: passing arguments to 'get_id_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | id_table = get_id_table(obj); | ^ use.c:592:7: warning: call to undeclared function 'pack_letter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 592 | ch = pack_letter(mesg[262], FOOD); | ^ use.c:596:31: warning: passing arguments to 'get_letter_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | if (!(obj = get_letter_object(ch))) { | ^ use.c:604:36: warning: call to undeclared function 'rand_percent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 604 | if ((obj->which_kind == FRUIT) || rand_percent(60)) { | ^ use.c:605:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 605 | moves = get_rand(900, 1100); | ^ use.c:618:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 618 | moves = get_rand(700, 900); | ^ use.c:620:3: warning: call to undeclared function 'add_exp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 620 | add_exp(2, 1); | ^ use.c:625:2: warning: call to undeclared function 'print_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 625 | print_stats(STAT_HUNGER); | ^ use.c:630:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 630 | hold_monster() | ^ | int use.c:646:24: warning: passing arguments to 'object_at' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | monster = object_at(&level_monsters, row, col); | ^ use.c:660:1: warning: non-void function does not return a value [-Wreturn-type] 660 | } | ^ use.c:662:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 662 | tele() | ^ | int use.c:664:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 664 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ use.c:664:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 664 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ use.c:664:40: warning: call to undeclared function 'get_dungeon_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 664 | mvaddch(rogue.row, rogue.col, colored(get_dungeon_char(rogue.row, rogue.col))); | ^ use.c:667:3: warning: call to undeclared function 'darken_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 667 | darken_room(cur_room); | ^ use.c:669:2: warning: call to undeclared function 'put_player'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 669 | put_player(get_room_number(rogue.row, rogue.col)); | ^ use.c:669:13: warning: call to undeclared function 'get_room_number'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 669 | put_player(get_room_number(rogue.row, rogue.col)); | ^ use.c:672:1: warning: non-void function does not return a value [-Wreturn-type] 672 | } | ^ use.c:685:8: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | ch = mvinch(obj->row, obj->col); | ^ use.c:689:10: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 689 | addch(colored(gr_obj_char())); | ^ use.c:689:18: warning: call to undeclared function 'gr_obj_char'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 689 | addch(colored(gr_obj_char())); | ^ use.c:696:8: warning: call to undeclared function 'mvinch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 696 | ch = mvinch(monster->row, monster->col); | ^ use.c:698:10: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 698 | addch(colored(get_rand('A', 'Z'))); | ^ use.c:698:18: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 698 | addch(colored(get_rand('A', 'Z'))); | ^ use.c:704:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 704 | unhallucinate() | ^ | int use.c:707:2: warning: call to undeclared function 'relight'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 707 | relight(); | ^ use.c:709:1: warning: non-void function does not return a value [-Wreturn-type] 709 | } | ^ use.c:711:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 711 | unblind() | ^ | int use.c:715:2: warning: call to undeclared function 'relight'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 715 | relight(); | ^ use.c:722:1: warning: non-void function does not return a value [-Wreturn-type] 722 | } | ^ use.c:724:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 724 | relight() | ^ | int use.c:729:3: warning: call to undeclared function 'light_up_room'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 729 | light_up_room(cur_room); | ^ use.c:731:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 731 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ use.c:731:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 731 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ use.c:732:1: warning: non-void function does not return a value [-Wreturn-type] 732 | } | ^ use.c:734:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 734 | take_a_nap() | ^ | int use.c:738:6: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 738 | i = get_rand(2, 5); | ^ use.c:739:2: warning: call to undeclared function 'md_sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 739 | md_sleep(1); | ^ use.c:746:1: warning: non-void function does not return a value [-Wreturn-type] 746 | } | ^ use.c:748:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 748 | go_blind() | ^ | int use.c:755:11: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 755 | blind += get_rand(500, 800); | ^ use.c:763:4: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 763 | mvaddch(monster->row, monster->col, colored(monster->trail_char)); | ^ use.c:763:40: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 763 | mvaddch(monster->row, monster->col, colored(monster->trail_char)); | ^ use.c:772:5: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 772 | mvaddch(i, j, colored(' ')); | ^ use.c:772:19: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 772 | mvaddch(i, j, colored(' ')); | ^ use.c:776:2: warning: call to undeclared function 'mvaddch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 776 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ use.c:776:32: warning: call to undeclared function 'colored'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 776 | mvaddch(rogue.row, rogue.col, colored(rogue.fchar)); | ^ use.c:777:1: warning: non-void function does not return a value [-Wreturn-type] 777 | } | ^ use.c:783:21: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 783 | return(id_potions[get_rand(0, POTIONS-1)].title); | ^ use.c:788:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 788 | confuse() | ^ | int use.c:790:14: warning: call to undeclared function 'get_rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 790 | confused += get_rand(12, 22); | ^ use.c:791:1: warning: non-void function does not return a value [-Wreturn-type] 791 | } | ^ use.c:793:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 793 | unconfuse() | ^ | int use.c:799:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 799 | sprintf(msg, mesg[276]); | ^~~~~~~~~ use.c:799:16: note: treat the string as an argument to avoid this 799 | sprintf(msg, mesg[276]); | ^ | "%s", use.c:801:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 801 | sprintf(msg, mesg[277]); | ^~~~~~~~~ use.c:801:16: note: treat the string as an argument to avoid this 801 | sprintf(msg, mesg[277]); | ^ | "%s", use.c:803:1: warning: non-void function does not return a value [-Wreturn-type] 803 | } | ^ use.c:805:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 805 | uncurse_all() | ^ | int use.c:815:1: warning: non-void function does not return a value [-Wreturn-type] 815 | } | ^ 104 warnings generated. --- spechit.o --- --- use.o --- --- zap.o --- --- rogue --- cc -o rogue curses.o hit.o init.o invent.o level.o machdep.o main.o message.o monster.o move.o object.o pack.o play.o random.o ring.o room.o save.o score.o spechit.o throw.o trap.o use.o zap.o /usr/bin/gzcat /usr/ports/japanese/rogue_s/files/mesg_fj.gz > /wrkdirs/usr/ports/japanese/rogue_s/work/mesg_fj shar: Extracting "mesg_utmc" (18142 characters) shar: 1226 control characters may be missing from "mesg_utmc" shar: End of shell archive. nkf -e /wrkdirs/usr/ports/japanese/rogue_s/work/mesg_utmc > /wrkdirs/usr/ports/japanese/rogue_s/work/mesg_utmc.euc =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for ja-rogue_s-1.3a_3 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/japanese/rogue_s/work/rogue_s/rogue /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/bin/rogue_s /bin/mkdir -p /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/man/ja/man6/ install -m 444 /wrkdirs/usr/ports/japanese/rogue_s/work/rogue_s.6 /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/man/ja/man6/rogue_s.6 /bin/mkdir -p /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/rogue_s install -m 0644 /wrkdirs/usr/ports/japanese/rogue_s/work/rogue_s/mesg /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/rogue_s install -m 0644 /wrkdirs/usr/ports/japanese/rogue_s/work/rogue_s/mesg_E /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/rogue_s install -m 0644 /wrkdirs/usr/ports/japanese/rogue_s/work/mesg_fj /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/rogue_s install -m 0644 /wrkdirs/usr/ports/japanese/rogue_s/work/mesg_utmc.euc /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/rogue_s/mesg_utmc /bin/mkdir -p /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/doc/rogue_s for _file in README README.1st README.doc options.doc rogue.doc; do install -m 0644 /wrkdirs/usr/ports/japanese/rogue_s/work/rogue_s/"$_file" /wrkdirs/usr/ports/japanese/rogue_s/work/stage/usr/local/share/doc/rogue_s ; done ====> 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=2025-09-28T21:16:32+0000' 'PKG_NOTE_ports_top_git_hash=a936fb9b16ba' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=c75c94468641' '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 ja-rogue_s-1.3a_3 ===> Building ja-rogue_s-1.3a_3 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for ja-rogue_s-1.3a_3 build of japanese/rogue_s | ja-rogue_s-1.3a_3 ended at Sun Sep 28 17:18:25 EDT 2025 build time: 00:02:04