>>> Building on exopi-5 under games/nethack/3.4,no_x11 DIST = [games/nethack/3.4:nethack-343-src.tgz] FULLPKGNAME = nethack-3.4.3p18-no_x11 RDEPENDS = [games/hackdata] distfiles size=3497458 >>> Running build in games/nethack/3.4,no_x11 at 1764960207.49 ===> games/nethack/3.4,no_x11 ===> Building from scratch nethack-3.4.3p18-no_x11 ===> Verifying specs: c curses ===> found c.102.2 curses.16.0 ===> Checking files for nethack-3.4.3p18-no_x11 `/exopi-cvs/ports/distfiles/nethack-343-src.tgz' is up to date. >> (SHA256) all files: OK ===> Extracting for nethack-3.4.3p18-no_x11 ===> Patching for nethack-3.4.3p18-no_x11 ===> Applying OpenBSD patch patch-include_config_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/config.h.orig Mon Dec 8 00:39:13 2003 |+++ include/config.h Tue Aug 10 13:32:55 2004 -------------------------- Patching file include/config.h using Plan A... Hunk #1 succeeded at 84. Hunk #2 succeeded at 126. Hunk #3 succeeded at 141. Hunk #4 succeeded at 170. Hunk #5 succeeded at 303. done ===> Applying OpenBSD patch patch-include_system_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/system.h.orig Mon Dec 8 00:39:13 2003 |+++ include/system.h Wed May 19 06:01:29 2010 -------------------------- Patching file include/system.h using Plan A... Hunk #1 succeeded at 521. done ===> Applying OpenBSD patch patch-include_tcap_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/tcap.h.orig Sat Mar 21 18:39:10 2015 |+++ include/tcap.h Sat Mar 21 18:39:33 2015 -------------------------- Patching file include/tcap.h using Plan A... Hunk #1 succeeded at 44. done ===> Applying OpenBSD patch patch-include_unixconf_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/unixconf.h.orig Mon Dec 8 00:39:13 2003 |+++ include/unixconf.h Tue Aug 10 13:34:38 2004 -------------------------- Patching file include/unixconf.h using Plan A... Hunk #1 succeeded at 19. Hunk #2 succeeded at 36. Hunk #3 succeeded at 51. Hunk #4 succeeded at 137. Hunk #5 succeeded at 148. Hunk #6 succeeded at 289. Hunk #7 succeeded at 313. done ===> Applying OpenBSD patch patch-src_files_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/files.c.orig Sat Feb 11 09:31:55 2006 |+++ src/files.c Sat Feb 11 09:32:01 2006 -------------------------- Patching file src/files.c using Plan A... Hunk #1 succeeded at 1153. done ===> Applying OpenBSD patch patch-sys_share_unixtty_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/share/unixtty.c.orig Mon Dec 8 00:39:13 2003 |+++ sys/share/unixtty.c Sat Mar 21 18:40:41 2015 -------------------------- Patching file sys/share/unixtty.c using Plan A... Hunk #1 succeeded at 121. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_doc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.doc.orig Mon Dec 8 00:39:13 2003 |+++ sys/unix/Makefile.doc Tue Aug 10 13:32:07 2004 -------------------------- Patching file sys/unix/Makefile.doc using Plan A... Hunk #1 succeeded at 41. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_src Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.src.orig Mon Dec 8 00:39:13 2003 |+++ sys/unix/Makefile.src Sat Mar 4 13:30:02 2017 -------------------------- Patching file sys/unix/Makefile.src using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 152. Hunk #3 succeeded at 214. Hunk #4 succeeded at 233. Hunk #5 succeeded at 253. Hunk #6 succeeded at 388. Hunk #7 succeeded at 455. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_top Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.top.orig Mon Dec 8 00:39:13 2003 |+++ sys/unix/Makefile.top Tue Aug 10 13:37:18 2004 -------------------------- Patching file sys/unix/Makefile.top using Plan A... Hunk #1 succeeded at 13. Hunk #2 succeeded at 35. Hunk #3 succeeded at 187. done ===> Applying OpenBSD patch patch-sys_unix_Makefile_utl Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/unix/Makefile.utl.orig Wed Mar 20 18:43:54 2002 |+++ sys/unix/Makefile.utl Fri Mar 22 08:11:35 2002 -------------------------- Patching file sys/unix/Makefile.utl using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 90. done ===> Applying OpenBSD patch patch-util_makedefs_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- util/makedefs.c.orig Fri Mar 20 14:12:00 2015 |+++ util/makedefs.c Fri Mar 20 14:13:23 2015 -------------------------- Patching file util/makedefs.c using Plan A... Hunk #1 succeeded at 543. Hunk #2 succeeded at 569. done ===> Applying OpenBSD patch patch-win_Qt_qt_win_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Don't use malloc.h header on OpenBSD. | |--- win/Qt/qt_win.cpp.orig Thu Nov 20 22:02:50 2014 |+++ win/Qt/qt_win.cpp Thu Nov 20 22:13:01 2014 -------------------------- Patching file win/Qt/qt_win.cpp using Plan A... Hunk #1 succeeded at 104. done ===> Applying OpenBSD patch patch-win_tty_termcap_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- win/tty/termcap.c.orig Wed May 19 09:21:20 2010 |+++ win/tty/termcap.c Wed May 19 09:21:53 2010 -------------------------- Patching file win/tty/termcap.c using Plan A... Hunk #1 succeeded at 835. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for nethack-3.4.3p18-no_x11 ===> Configuring for nethack-3.4.3p18-no_x11 Lucky you! Symbolic links. ===> Building for nethack-3.4.3p18-no_x11 ( cd src ; /usr/bin/make ) touch ../src/config.h-t cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c monst.c In file included from monst.c:5: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from monst.c:5: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from monst.c:5: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c objects.c In file included from objects.c:8: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from objects.c:8: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from objects.c:8: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -I../include -c makedefs.c In file included from makedefs.c:10: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from makedefs.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from makedefs.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from makedefs.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ makedefs.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | main(argc, argv) | ^ makedefs.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | do_makedefs(options) | ^ makedefs.c:329:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | char *xcrypt(str) | ^ makedefs.c:361:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 361 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:361:14: note: treat the string as an argument to avoid this 361 | Fprintf(ofp,Dont_Edit_Data); | ^ | "%s", makedefs.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 | version_string(outbuf) | ^ makedefs.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | version_id_string(outbuf, build_date) | ^ makedefs.c:560:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 560 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:560:14: note: treat the string as an argument to avoid this 560 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:871:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | d_filter(line) | ^ makedefs.c:1000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | h_filter(line) | ^ makedefs.c:1192:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1192 | check_control(s) | ^ makedefs.c:1207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1207 | without_control(s) | ^ makedefs.c:1232:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1232 | Fprintf(ofp,Dont_Edit_Data); | ^~~~~~~~~~~~~~ makedefs.c:1232:14: note: treat the string as an argument to avoid this 1232 | Fprintf(ofp,Dont_Edit_Data); | ^ | "%s", makedefs.c:1263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1263 | ranged_attk(ptr) /* returns TRUE if monster can attack at range */ | ^ makedefs.c:1282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1282 | mstrength(ptr) | ^ makedefs.c:1354:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1354 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1354:17: note: treat the string as an argument to avoid this 1354 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1395:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1395 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1395:14: note: treat the string as an argument to avoid this 1395 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1433 | qt_comment(s) | ^ makedefs.c:1441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1441 | qt_control(s) | ^ makedefs.c:1448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | get_hdr (code) | ^ makedefs.c:1460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1460 | new_id (code) | ^ makedefs.c:1475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1475 | known_msg(num, id) | ^ makedefs.c:1488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | new_msg(s, num, id) | ^ makedefs.c:1507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1507 | do_qt_control(s) | ^ makedefs.c:1546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1546 | do_qt_text(s) | ^ makedefs.c:1682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1682 | limit(name,pref) /* limit a name to 30 characters length */ | ^ makedefs.c:1711:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1711 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1711:14: note: treat the string as an argument to avoid this 1711 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1812:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1812 | tmpdup(str) | ^ makedefs.c:1823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1823 | eos(str) | ^ makedefs.c:1866:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1866 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1866:17: note: treat the string as an argument to avoid this 1866 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:1891:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1891 | Fprintf(ofp,Dont_Edit_Code); | ^~~~~~~~~~~~~~ makedefs.c:1891:17: note: treat the string as an argument to avoid this 1891 | Fprintf(ofp,Dont_Edit_Code); | ^ | "%s", makedefs.c:2132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2132 | clear_path(you_row,you_col,y2,x2) | ^ 37 warnings generated. cc -o makedefs makedefs.o ../src/monst.o ../src/objects.o ld: warning: makedefs.c(makedefs.o:(do_objs)): warning: sprintf() is often misused, please use snprintf() ld: warning: makedefs.c(makedefs.o:(do_date)): warning: strcpy() is almost always misused, please use strlcpy() ./makedefs -p ./makedefs -o touch ../src/hack.h-t cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c allmain.c In file included from allmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from allmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ allmain.c:547:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | welcome(new_game) | ^ 6 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c alloc.c In file included from alloc.c:11: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from alloc.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from alloc.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ alloc.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | alloc(lth) | ^ alloc.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | fmt_ptr(ptr, buf) | ^ 7 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c apply.c In file included from apply.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from apply.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ apply.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | use_camera(obj) | ^ apply.c:65:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 65 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:65:9: note: treat the string as an argument to avoid this 65 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.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 | use_towel(obj) | ^ apply.c:162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | its_dead(rx, ry, resp) | ^ apply.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | use_stethoscope(obj) | ^ apply.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 | use_whistle(obj) | ^ apply.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | use_magic_whistle(obj) | ^ apply.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | um_dist(x,y,n) | ^ apply.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | o_unleash(otmp) /* otmp is about to be destroyed or stolen */ | ^ apply.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | m_unleash(mtmp, feedback) /* mtmp is about to die, or become untame */ | ^ apply.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] 416 | use_leash(obj) | ^ apply.c:491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | get_mleash(mtmp) /* assuming mtmp->mleashed has been checked */ | ^ apply.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | check_leash(x, y) | ^ apply.c:607:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | use_mirror(obj) | ^ apply.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | use_bell(optr) | ^ apply.c:805:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 805 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:805:13: note: treat the string as an argument to avoid this 805 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:837:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 837 | case 0: pline(nothing_happens); break; | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:837:20: note: treat the string as an argument to avoid this 837 | case 0: pline(nothing_happens); break; | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:849:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 849 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:849:14: note: treat the string as an argument to avoid this 849 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | use_candelabrum(obj) | ^ apply.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | use_candle(optr) | ^ apply.c:977:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | snuff_candle(otmp) /* call in drop, throw, and put in box, etc. */ | ^ apply.c:1004:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1004 | snuff_lit(obj) | ^ apply.c:1026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1026 | catch_lit(obj) | ^ apply.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | use_lamp(obj) | ^ apply.c:1113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1113 | light_cocktail(obj) | ^ apply.c:1195:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1195 | else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1195:17: note: treat the string as an argument to avoid this 1195 | else pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1200:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1200 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1200:15: note: treat the string as an argument to avoid this 1200 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1212 | jump(magic) | ^ apply.c:1369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1369 | tinnable(corpse) | ^ apply.c:1378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | use_tinning_kit(obj) | ^ apply.c:1445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1445 | use_unicorn_horn(obj) | ^ apply.c:1513:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1513 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:1513:12: note: treat the string as an argument to avoid this 1513 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:1594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1594 | fig_transform(arg, timeout) | ^ apply.c:1683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1683 | figurine_location_checks(obj, cc, quietly) | ^ apply.c:1718:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1718 | use_figurine(optr) | ^ apply.c:1757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1757 | use_grease(obj) | ^ apply.c:1836:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1836 | use_stone(tstone) | ^ apply.c:1975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1975 | use_trap(otmp) | ^ apply.c:2110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2110 | use_whip(obj) | ^ apply.c:2175:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2175 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:2175:13: note: treat the string as an argument to avoid this 2175 | pline(msg_slipsfree); | ^ | "%s", apply.c:2216:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2216 | else pline(msg_snap); | ^~~~~~~~ apply.c:2216:14: note: treat the string as an argument to avoid this 2216 | else pline(msg_snap); | ^ | "%s", apply.c:2238:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2238 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:2238:9: note: treat the string as an argument to avoid this 2238 | pline(msg_slipsfree); | ^ | "%s", apply.c:2241:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2241 | } else pline(msg_snap); | ^~~~~~~~ apply.c:2241:15: note: treat the string as an argument to avoid this 2241 | } else pline(msg_snap); | ^ | "%s", apply.c:2333:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2333 | pline(msg_slipsfree); | ^~~~~~~~~~~~~ apply.c:2333:9: note: treat the string as an argument to avoid this 2333 | pline(msg_slipsfree); | ^ | "%s", apply.c:2343:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2343 | else pline(msg_snap); | ^~~~~~~~ apply.c:2343:14: note: treat the string as an argument to avoid this 2343 | else pline(msg_snap); | ^ | "%s", apply.c:2352:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2352 | pline(msg_snap); | ^~~~~~~~ apply.c:2352:8: note: treat the string as an argument to avoid this 2352 | pline(msg_snap); | ^ | "%s", apply.c:2367:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2367 | use_pole (obj) | ^ apply.c:2429:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2429 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2429:12: note: treat the string as an argument to avoid this 2429 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:2434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2434 | use_cream_pie(obj) | ^ apply.c:2473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2473 | use_grapple (obj) | ^ apply.c:2591:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2591 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2591:8: note: treat the string as an argument to avoid this 2591 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:2600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2600 | do_break_wand(obj) | ^ apply.c:2769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2769 | add_class(cl, class) | ^ apply.c:2992:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2992 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apply.c:2992:13: note: treat the string as an argument to avoid this 2992 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ apply.c:3027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3027 | unfixable_trouble_count(is_horn) | ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c artifact.c In file included from artifact.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from artifact.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ artifact.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | save_artifacts(fd) | ^ artifact.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | restore_artifacts(fd) | ^ artifact.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 | artiname(artinum) | ^ artifact.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | mk_artifact(otmp, alignment) | ^ artifact.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | artifact_name(name, otyp) | ^ artifact.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 | exist_artifact(otyp, name) | ^ artifact.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 | artifact_exists(otmp, name, mod) | ^ artifact.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | spec_ability(otmp, abil) | ^ artifact.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | confers_luck(obj) | ^ artifact.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | arti_reflects(obj) | ^ artifact.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | restrict_name(otmp, name) /* returns 1 if name is restricted for otmp->otyp */ | ^ artifact.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 | attacks(adtyp, otmp) | ^ artifact.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | defends(adtyp, otmp) | ^ artifact.c:338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | protects(adtyp, otmp) | ^ artifact.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | set_artifact_intrinsic(otmp,on,wp_mask) | ^ artifact.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | touch_artifact(obj,mon) | ^ artifact.c:562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | spec_applies(weap, mtmp) | ^ artifact.c:619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | spec_m2(otmp) | ^ artifact.c:630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 630 | spec_abon(otmp, mon) | ^ artifact.c:646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | spec_dbon(otmp, mon, tmp) | ^ artifact.c:666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | discover_artifact(m) | ^ artifact.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 | undiscovered_artifact(m) | ^ artifact.c:702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | disp_artifact_discoveries(tmpwin) | ^ artifact.c:757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | Mb_hit(magr, mdef, mb, dmgptr, dieroll, vis, hittee) | ^ artifact.c:936:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | artifact_hit(magr, mdef, otmp, dmgptr, dieroll) | ^ artifact.c:1185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | arti_invoke(obj) | ^ artifact.c:1194:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1194 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ artifact.c:1194:12: note: treat the string as an argument to avoid this 1194 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ artifact.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | artifact_light(obj) | ^ artifact.c:1416:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1416 | arti_speak(obj) | ^ artifact.c:1437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1437 | artifact_has_invprop(otmp, inv_prop) | ^ artifact.c:1448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | arti_cost(otmp) | ^ 36 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c attrib.c In file included from attrib.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from attrib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ attrib.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 | adjattrib(ndx, incr, msgflg) | ^ attrib.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | gainstr(otmp, incr) | ^ attrib.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | losestr(num) /* may kill you; cause may be poison or monster like 'a' */ | ^ attrib.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 | change_luck(n) | ^ attrib.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 | stone_luck(parameter) | ^ attrib.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | exercise(i, inc_or_dec) | ^ attrib.c:457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | init_attr(np) | ^ attrib.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | postadjabil(ability) | ^ attrib.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | adjabil(oldlevel,newlevel) | ^ attrib.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | acurr(x) | ^ attrib.c:713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | adjalign(n) | ^ 16 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ball.c In file included from ball.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ball.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ball.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 | set_bc(already_blind) | ^ ball.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | move_bc(before, control, ballx, bally, chainx, chainy) | ^ ball.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | drag_ball(x, y, bc_control, ballx, bally, chainx, chainy, cause_delay, | ^ ball.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 | drop_ball(x, y) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c bones.c In file included from bones.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from bones.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ bones.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | no_bones_level(lev) | ^ bones.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | goodfruit(id) | ^ bones.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | resetobjs(ochain,restore) | ^ bones.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 | drop_upon_death(mtmp, cont) | ^ bones.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 | savebones(corpse) | ^ 10 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c botl.c In file included from botl.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from botl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ botl.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 | xlev_to_rank(xlev) | ^ botl.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | rank_of(lev, monnum, female) | ^ botl.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 | title_to_mon(str, rank_indx, title_length) | ^ botl.c:191:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 191 | Sprintf(nb = eos(nb), mbot); | ^~~~ botl.c:191:25: note: treat the string as an argument to avoid this 191 | Sprintf(nb = eos(nb), mbot); | ^ | "%s", botl.c:193:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 193 | Sprintf(nb = eos(nb), rank()); | ^~~~~~ botl.c:193:25: note: treat the string as an argument to avoid this 193 | Sprintf(nb = eos(nb), rank()); | ^ | "%s", botl.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | describe_level(buf) | ^ 11 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c cmd.c In file included from cmd.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from cmd.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ cmd.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | set_occupation(fn, txt, xtime) | ^ cmd.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | pushch(ch) | ^ cmd.c:270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | savech(ch) | ^ cmd.c:605:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 605 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmd.c:605:8: note: treat the string as an argument to avoid this 605 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ cmd.c:783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | enlght_line(start, middle, end) | ^ cmd.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | enlght_combatinc(inctyp, incamt, final, outbuf) | ^ cmd.c:830:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | enlightenment(final) | ^ cmd.c:1254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1254 | show_conduct(final) | ^ cmd.c:1591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1591 | count_obj(chain, total_count, total_size, top, recurse) | ^ cmd.c:1614:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1614 | obj_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1632 | mon_invent_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1652 | contained(win, src, total_count, total_size) | ^ cmd.c:1679:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1679 | mon_chain(win, src, chain, total_count, total_size) | ^ cmd.c:1804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1804 | rhack(cmd) | ^ cmd.c:2005:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2005 | xytod(x, y) /* convert an x,y pair into a direction code */ | ^ cmd.c:2017:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2017 | dtoxy(cc,dd) /* convert a direction code into an x,y pair */ | ^ cmd.c:2027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2027 | movecmd(sym) /* also sets u.dz, but returns false for <> */ | ^ cmd.c:2056:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2056 | int get_adjacent_loc(prompt,emsg,x,y,cc) | ^ cmd.c:2063:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2063 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmd.c:2063:9: note: treat the string as an argument to avoid this 2063 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ cmd.c:2072:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2072 | if (emsg) pline(emsg); | ^~~~ cmd.c:2072:19: note: treat the string as an argument to avoid this 2072 | if (emsg) pline(emsg); | ^ | "%s", cmd.c:2079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2079 | getdir(s) | ^ cmd.c:2112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2112 | help_dir(sym, msg) | ^ cmd.c:2207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2207 | isok(x,y) | ^ cmd.c:2220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2220 | click_to_cmd(x, y, mod) | ^ cmd.c:2343:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2343 | pline(in_line); | ^~~~~~~ cmd.c:2343:10: note: treat the string as an argument to avoid this 2343 | pline(in_line); | ^ | "%s", cmd.c:2535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2535 | yn_function(query,resp, def) | ^ 31 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dbridge.c In file included from dbridge.c:13: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dbridge.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dbridge.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | is_pool(x,y) | ^ dbridge.c: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 | is_lava(x,y) | ^ dbridge.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | is_ice(x,y) | ^ dbridge.c:90:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | is_drawbridge_wall(x,y) | ^ dbridge.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | is_db_wall(x,y) | ^ dbridge.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | find_drawbridge(x,y) | ^ dbridge.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | get_wall_for_db(x,y) | ^ dbridge.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 | create_drawbridge(x,y,dir,flag) | ^ dbridge.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | e_at(x, y) | ^ dbridge.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | m_to_e(mtmp, x, y, etmp) | ^ dbridge.c:276:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | u_to_e(etmp) | ^ dbridge.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 | set_entity(x, y, etmp) | ^ dbridge.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | e_nam(etmp) | ^ dbridge.c:334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | E_phrase(etmp, verb) | ^ dbridge.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 | e_survives_at(etmp, x, y) | ^ dbridge.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 | e_died(etmp, dest, how) | ^ dbridge.c:443:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | automiss(etmp) | ^ dbridge.c:455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | e_missed(etmp, chunks) | ^ dbridge.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | e_jumps(etmp) | ^ dbridge.c:522:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | do_entity(etmp) | ^ dbridge.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | close_drawbridge(x,y) | ^ dbridge.c:800:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | open_drawbridge(x,y) | ^ dbridge.c:838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | destroy_drawbridge(x,y) | ^ 28 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c decl.c In file included from decl.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from decl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c detect.c In file included from detect.c:10: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from detect.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ detect.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | o_in(obj, oclass) | ^ detect.c: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 | o_material(obj, material) | ^ detect.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | do_dknown_of(obj) | ^ detect.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 | check_map_spot(x, y, oclass, material) | ^ detect.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | clear_stale_map(oclass, material) | ^ detect.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | gold_detect(sobj) | ^ detect.c:294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | food_detect(sobj) | ^ detect.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | object_detect(detector, class) | ^ detect.c:583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | monster_detect(otmp, mclass) | ^ detect.c:645:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | sense_trap(trap, x, y, src_cursed) | ^ detect.c:680:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | trap_detect(sobj) | ^ detect.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | level_distance(where) | ^ detect.c:790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | use_crystal_ball(obj) | ^ detect.c:811:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 811 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ detect.c:811:20: note: treat the string as an argument to avoid this 811 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ detect.c:860:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 860 | if (flags.verbose) pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ detect.c:860:27: note: treat the string as an argument to avoid this 860 | if (flags.verbose) pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ detect.c:911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | show_map_spot(x, y) | ^ detect.c:982:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 982 | cvt_sdoor_to_door(lev) | ^ detect.c:1002:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1002 | findone(zx,zy,num) | ^ detect.c:1048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | openone(zx,zy,num) | ^ detect.c:1129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1129 | find_trap(trap) | ^ detect.c:1159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1159 | dosearch0(aflag) | ^ 26 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dig.c In file included from dig.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dig.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dig.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 | mkcavepos(x, y, dist, waslit, rockit) | ^ dig.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | mkcavearea(rockit) | ^ dig.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | dig_typ(otmp, x, y) | ^ dig.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | dig_check(madeby, verbose, x, y) | ^ dig.c:382:38: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 382 | if(digtxt && !digging.quiet) pline(digtxt); /* after newsym */ | ^~~~~~ dig.c:382:38: note: treat the string as an argument to avoid this 382 | if(digtxt && !digging.quiet) pline(digtxt); /* after newsym */ | ^ | "%s", dig.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 | fillholetyp(x,y) | ^ dig.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 | digactualhole(x, y, madeby, ttyp) | ^ dig.c:649:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | dighole(pit_only) | ^ dig.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | use_pick_axe(obj) | ^ dig.c:864:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | use_pick_axe2(obj) | ^ dig.c:1017:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | watch_dig(mtmp, x, y, zap) | ^ dig.c:1067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | mdig_tunnel(mtmp) | ^ dig.c:1286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1286 | bury_an_obj(otmp) | ^ dig.c:1340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | bury_objs(x, y) | ^ dig.c:1359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1359 | unearth_objs(x, y) | ^ dig.c:1392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1392 | rot_organic(arg, timeout) | ^ dig.c:1415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | rot_corpse(arg, timeout) | ^ 22 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c display.c In file included from display.c:118: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from display.c:118: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from display.c:118: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ display.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | magic_map_background(x, y, show) | ^ display.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | map_background(x, y, show) | ^ display.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | map_trap(trap, show) | ^ display.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | map_object(obj, show) | ^ display.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | map_invisible(x, y) | ^ display.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | unmap_object(x, y) | ^ display.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] 337 | map_location(x,y,show) | ^ display.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | display_monster(x, y, mon, sightflags, worm_tail) | ^ display.c:456:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | display_warning(mon) | ^ display.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 | feel_location(x, y) | ^ display.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 | newsym(x,y) | ^ display.c:778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | shieldeff(x,y) | ^ display.c:829:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 829 | tmp_at(x, y) | ^ display.c:921:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | swallowed(first) | ^ display.c:979:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | under_water(mode) | ^ display.c:1024:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1024 | under_ground(mode) | ^ display.c:1214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1214 | show_glyph(x,y,glyph) | ^ display.c:1316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1316 | row_refresh(start,stop,y) | ^ display.c:1340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | flush_screen(cursor_on_u) | ^ display.c:1389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | back_to_glyph(x,y) | ^ display.c:1486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1486 | swallow_to_glyph(mnum, loc) | ^ display.c:1512:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1512 | zapdir_to_glyph(dx, dy, beam_type) | ^ display.c:1532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1532 | glyph_at(x, y) | ^ display.c:1590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1590 | check_pos(x, y, which) | ^ display.c:1619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1619 | set_twall(x0,y0, x1,y1, x2,y2, x3,y3) | ^ display.c:1637:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1637 | set_wall(x, y, horiz) | ^ display.c:1660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1660 | set_corn(x1,y1, x2,y2, x3,y3, x4,y4) | ^ display.c:1689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1689 | set_crosswall(x, y) | ^ display.c:1807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1807 | set_seenv(lev, x0, y0, x, y) | ^ display.c:1874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1874 | t_warn(lev) | ^ display.c:1903:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1903 | wall_angle(lev) | ^ 36 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dlb.c In file included from dlb.c:5: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dlb.c:5: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dlb.c:5: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c do.c In file included from do.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from do.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ do.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | boulder_hits_pool(otmp, rx, ry, pushing) | ^ do.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | flooreffects(obj,x,y,verb) | ^ do.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | doaltarobj(obj) /* obj is an object dropped on an altar */ | ^ do.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | trycall(obj) | ^ do.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | dosinkring(obj) /* obj is a ring being dropped over a kitchen sink */ | ^ do.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 | canletgo(obj,word) | ^ do.c:457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | drop(obj) | ^ do.c:518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | dropx(obj) | ^ do.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | dropy(obj) | ^ do.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | obj_no_longer_held(obj) | ^ do.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | menu_drop(retry) | ^ do.c:953:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 953 | goto_level(newlevel, at_stairs, falling, portal) | ^ do.c:1313:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1313 | if (mesg) pline(mesg); | ^~~~ do.c:1313:22: note: treat the string as an argument to avoid this 1313 | if (mesg) pline(mesg); | ^ | "%s", do.c:1430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1430 | schedule_goto(tolev, at_stairs, falling, portal_flag, pre_msg, post_msg) | ^ do.c:1462:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1462 | if (dfr_pre_msg) pline(dfr_pre_msg); | ^~~~~~~~~~~ do.c:1462:29: note: treat the string as an argument to avoid this 1462 | if (dfr_pre_msg) pline(dfr_pre_msg); | ^ | "%s", do.c:1472:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1472 | if (dfr_post_msg) pline(dfr_post_msg); | ^~~~~~~~~~~~ do.c:1472:30: note: treat the string as an argument to avoid this 1472 | if (dfr_post_msg) pline(dfr_post_msg); | ^ | "%s", do.c:1489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1489 | revive_corpse(corpse) | ^ do.c:1575:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1575 | revive_mon(arg, timeout) | ^ do.c:1637:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1637 | set_wounded_legs(side, timex) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c do_name.c In file included from do_name.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from do_name.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ do_name.c:16:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | getpos_help(force, goal) | ^ do_name.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | getpos(cc, force, goal) | ^ do_name.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 | christen_monst(mtmp, name) | ^ do_name.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | do_oname(obj) | ^ do_name.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | realloc_obj(obj, oextra_size, oextra_src, oname_size, name) | ^ do_name.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 | oname(obj, name) | ^ do_name.c:490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | docall(obj) | ^ do_name.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | x_monnam(mtmp, article, adjective, suppress, called) | ^ do_name.c:757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | l_monnam(mtmp) | ^ do_name.c:768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 768 | mon_nam(mtmp) | ^ do_name.c:780:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | noit_mon_nam(mtmp) | ^ do_name.c:789:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | Monnam(mtmp) | ^ do_name.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | noit_Monnam(mtmp) | ^ do_name.c:810:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | m_monnam(mtmp) | ^ do_name.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | y_monnam(mtmp) | ^ do_name.c:838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | Adjmonnam(mtmp, adj) | ^ do_name.c:850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | a_monnam(mtmp) | ^ do_name.c:858:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 858 | Amonnam(mtmp) | ^ do_name.c:870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | distant_monnam(mon, article, outbuf) | ^ do_name.c:998:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | hcolor(colorpref) | ^ do_name.c:1031:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1031 | coyotename(mtmp, buf) | ^ 26 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c do_wear.c In file included from do_wear.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from do_wear.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ do_wear.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | off_msg(otmp) | ^ do_wear.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | on_msg(otmp) | ^ do_wear.c:681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | Ring_on(obj) | ^ do_wear.c:788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | Ring_off_or_gone(obj,gone) | ^ do_wear.c:894:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | Ring_off(obj) | ^ do_wear.c:901:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | Ring_gone(obj) | ^ do_wear.c:908:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | Blindf_on(otmp) | ^ do_wear.c:941:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 941 | Blindf_off(otmp) | ^ do_wear.c:992:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 992 | donning(otmp) /* also checks for doffing */ | ^ do_wear.c:1165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | cursed(otmp) | ^ do_wear.c:1180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1180 | armoroff(otmp) | ^ do_wear.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | already_wearing(cc) | ^ do_wear.c:1239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1239 | already_wearing2(cc1, cc2) | ^ do_wear.c:1253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1253 | canwearobj(otmp,mask,noisy) | ^ do_wear.c:1686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1686 | some_armor(victim) | ^ do_wear.c:1712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | erode_armor(victim, acid_dmg) | ^ do_wear.c:1726:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1726 | stuck_ring(ring, otyp) | ^ do_wear.c:1760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1760 | select_off(otmp) | ^ do_wear.c:2061:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2061 | menu_remarm(retry) | ^ do_wear.c:2104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2104 | destroy_arm(atmp) | ^ do_wear.c:2162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2162 | adj_abon(otmp, delta) | ^ 26 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dog.c In file included from dog.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dog.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dog.c:13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | initedog(mtmp) | ^ dog.c: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 | make_familiar(otmp,x,y,quietly) | ^ dog.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | mon_arrive(mtmp, with_you) | ^ dog.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | mon_catchup_elapsed_time(mtmp, nmv) | ^ dog.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | keepdogs(pets_only) | ^ dog.c:585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | migrate_to_level(mtmp, tolev, xyloc, cc) | ^ dog.c:646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | dogfood(mon,obj) | ^ dog.c:745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | tamedog(mtmp, obj) | ^ dog.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 | wary_dog(mtmp, was_dead) | ^ dog.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | abuse_dog(mtmp) | ^ 15 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dogmove.c In file included from dogmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dogmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dogmove.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 | DROPPABLES(mon) | ^ dogmove.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 | cursed_object_at(x, y) | ^ dogmove.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | dog_nutrition(mtmp, obj) | ^ dogmove.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | dog_eat(mtmp, obj, x, y, devour) | ^ dogmove.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | dog_hunger(mtmp, edog) | ^ dogmove.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | dog_invent(mtmp, edog, udist) | ^ dogmove.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | dog_goal(mtmp, edog, after, udist, whappr) | ^ dogmove.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 | dog_move(mtmp, after) | ^ dogmove.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 | could_reach_item(mon, nx, ny) | ^ dogmove.c:815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | can_reach_location(mon, mx, my, fx, fy) | ^ dogmove.c:852:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | wantdoor(x, y, distance) | ^ 16 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dokick.c In file included from dokick.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dokick.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dokick.c:29:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | kickdmg(mon, clumsy) | ^ dokick.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 | kick_monster(x, y) | ^ dokick.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 | ghitm(mtmp, gold) | ^ dokick.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 | container_impact_dmg(obj) | ^ dokick.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | kick_object(x, y) | ^ dokick.c:596:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | kickstr(buf) | ^ dokick.c:1117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1117 | drop_to(cc, loc) | ^ dokick.c:1150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | impact_drop(missile, x, y, dlev) | ^ dokick.c:1272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1272 | ship_object(otmp, x, y, shop_floor_obj) | ^ dokick.c:1432:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1432 | otransit_msg(otmp, nodrop, num) | ^ dokick.c:1461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1461 | down_gate(x, y) | ^ 16 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dothrow.c In file included from dothrow.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dothrow.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dothrow.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | throw_obj(obj, shotlimit) | ^ dothrow.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] 337 | hitfloor(obj) | ^ dothrow.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | walk_path(src_cc, dest_cc, check_proc, arg) | ^ dothrow.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 | hurtle_step(arg, x, y) | ^ dothrow.c:566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | mhurtle_step(arg, x, y) | ^ dothrow.c:595:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 595 | hurtle(dx, dy, range, verbose) | ^ dothrow.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | mhurtle(mon, dx, dy, range) | ^ dothrow.c:681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | check_shop_obj(obj, x, y, broken) | ^ dothrow.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | toss_up(obj, hitsroof) | ^ dothrow.c:773:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 773 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dothrow.c:773:24: note: treat the string as an argument to avoid this 773 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ dothrow.c:829:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 829 | throwing_weapon(obj) | ^ dothrow.c:842:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 842 | sho_obj_return_to_u(obj) | ^ dothrow.c:860:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | throwit(obj, wep_mask, twoweap) | ^ dothrow.c:1109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | omon_adj(mon, obj, mon_notices) | ^ dothrow.c:1150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | tmiss(obj, mon) | ^ dothrow.c:1178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1178 | thitmonst(mon, obj) | ^ dothrow.c:1415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | gem_accept(mon, obj) | ^ dothrow.c:1519:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1519 | hero_breaks(obj, x, y, from_invent) | ^ dothrow.c:1537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1537 | breaks(obj, x, y) | ^ dothrow.c:1554:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1554 | breakobj(obj, x, y, hero_caused, from_invent) | ^ dothrow.c:1626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1626 | breaktest(obj) | ^ dothrow.c:1650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1650 | breakmsg(obj, in_view) | ^ dothrow.c:1692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1692 | throw_gold(obj) | ^ 28 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c drawing.c In file included from drawing.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from drawing.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ drawing.c:619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | def_char_to_objclass(ch) | ^ drawing.c:633:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 633 | def_char_to_monclass(ch) | ^ drawing.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 | assign_graphics(graph_chars, glth, maxlen, offset) | ^ drawing.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 | switch_graphics(gr_set_flag) | ^ drawing.c:779:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | assign_rogue_graphics(is_rlevel) | ^ 10 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c dungeon.c In file included from dungeon.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dungeon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dungeon.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | save_dungeon(fd, perform_write, free_data) | ^ dungeon.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | restore_dungeon(fd) | ^ dungeon.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | Fread(ptr, size, nitems, stream) | ^ dungeon.c:201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | dname_to_dnum(s) | ^ dungeon.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | find_level(s) | ^ dungeon.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | find_branch(s, pd) | ^ dungeon.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | parent_dnum(s, pd) | ^ dungeon.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 | level_range(dgn, base, rand, chain, pd, adjusted_base) | ^ dungeon.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 | parent_dlevel(s, pd) | ^ dungeon.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | correct_branch_type(tbr) | ^ dungeon.c:371:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | insert_branch(new_branch, extract_first) | ^ dungeon.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | add_branch(dgn, child_entry_level, pd) | ^ dungeon.c:449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | add_level(new_lev) | ^ dungeon.c:471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | init_level(dgn, proto_index, pd) | ^ dungeon.c:506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | possible_places(idx, map, pd) | ^ dungeon.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | pick_level(map, nth) | ^ dungeon.c:568:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | place_level(proto_index, pd) | ^ dungeon.c:677:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 677 | panic(tbuf); | ^~~~ dungeon.c:677:12: note: treat the string as an argument to avoid this 677 | panic(tbuf); | ^ | "%s", dungeon.c:903:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 903 | dunlev(lev) /* return the level number for lev in *this* dungeon */ | ^ dungeon.c:910:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 910 | dunlevs_in_dungeon(lev) /* return the lowest level number for *this* dungeon*/ | ^ dungeon.c:917:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 917 | deepest_lev_reached(noquest) /* return the lowest level explored in the game*/ | ^ dungeon.c:952:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | ledger_no(lev) | ^ dungeon.c:977:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | ledger_to_dnum(ledgerno) | ^ dungeon.c:995:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 995 | ledger_to_dlev(ledgerno) | ^ dungeon.c:1007:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1007 | depth(lev) | ^ dungeon.c:1014:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1014 | on_level(lev1, lev2) /* are "lev1" and "lev2" actually the same? */ | ^ dungeon.c:1025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | Is_special(lev) | ^ dungeon.c:1041:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1041 | Is_branchlev(lev) | ^ dungeon.c:1055:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1055 | next_level(at_stairs) | ^ dungeon.c:1073:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1073 | prev_level(at_stairs) | ^ dungeon.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | u_on_newpos(x, y) | ^ dungeon.c:1151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1151 | On_stairs(x, y) | ^ dungeon.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | Is_botlevel(lev) | ^ dungeon.c:1169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1169 | Can_dig_down(lev) | ^ dungeon.c:1182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1182 | Can_fall_thru(lev) | ^ dungeon.c:1195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1195 | Can_rise_up(x, y, lev) | ^ dungeon.c:1221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1221 | get_level(newlevel, levnum) | ^ dungeon.c:1272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1272 | In_quest(lev) /* are you in the quest dungeon? */ | ^ dungeon.c:1282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1282 | In_mines(lev) /* are you in the mines dungeon? */ | ^ dungeon.c:1297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1297 | dungeon_branch(s) | ^ dungeon.c:1323:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1323 | at_dgn_entrance(s) | ^ dungeon.c:1333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1333 | In_V_tower(lev) /* is `lev' part of Vlad's tower? */ | ^ dungeon.c:1340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | On_W_tower_level(lev) /* is `lev' a level containing the Wizard's tower? */ | ^ dungeon.c:1349:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1349 | In_W_tower(x, y, lev) /* is of `lev' inside the Wizard's tower? */ | ^ dungeon.c:1371:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1371 | In_hell(lev) /* are you in one of the Hell levels? */ | ^ dungeon.c:1381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1381 | find_hell(lev) /* sets *lev to be the gateway to Gehennom... */ | ^ dungeon.c:1389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | goto_hell(at_stairs, falling) /* go directly to hell... */ | ^ dungeon.c:1399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1399 | assign_level(dest, src) /* equivalent to dest = source */ | ^ dungeon.c:1407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | assign_rnd_level(dest, src, range) /* dest = src + rn1(range) */ | ^ dungeon.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | induced_align(pct) | ^ dungeon.c:1444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1444 | Invocation_lev(lev) | ^ dungeon.c:1470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1470 | lev_by_name(nam) | ^ dungeon.c:1538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1538 | br_string(type) | ^ dungeon.c:1552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1552 | print_branch(win, dnum, lower_bound, upper_bound, bymenu, lchoices) | ^ dungeon.c:1591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1591 | print_dungeon(bymenu, rlev, rdgn) | ^ 60 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c eat.c In file included from eat.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from eat.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ eat.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | is_edible(obj) | ^ eat.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | food_xname(food, the_pfx) | ^ eat.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | choke(food) /* To a full belly all food is bad. (It.) */ | ^ eat.c:311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | touchfood(otmp) | ^ eat.c:358:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | food_disappears(obj) | ^ eat.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | food_substitution(old_obj, new_obj) | ^ eat.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | done_eating(message) | ^ eat.c:425:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 425 | if (message) pline(nomovemsg); | ^~~~~~~~~ eat.c:425:22: note: treat the string as an argument to avoid this 425 | if (message) pline(nomovemsg); | ^ | "%s", eat.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | maybe_cannibal(pm, allowmsg) | ^ eat.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 | cprefx(pm) | ^ eat.c:548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | intrinsic_possible(type, ptr) | ^ eat.c:644:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | givit(type, ptr) | ^ eat.c:784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | cpostfx(pm) /* called after completely consuming a corpse */ | ^ eat.c:1001:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1001 | costly_tin(verb) | ^ eat.c:1133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1133 | start_tin(otmp) /* called when starting to open a tin */ | ^ eat.c:1200:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1200 | rottenfood(obj) | ^ eat.c:1211:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1211 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eat.c:1211:20: note: treat the string as an argument to avoid this 1211 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ eat.c:1236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | eatcorpse(otmp) /* called when a corpse is selected as food */ | ^ eat.c:1338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1338 | start_eating(otmp) /* called as you start to eat */ | ^ eat.c:1377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | fprefx(otmp) | ^ eat.c:1459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1459 | accessory_has_effect(otmp) | ^ eat.c:1467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1467 | eataccessory(otmp) | ^ eat.c:1663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1663 | foodword(otmp) | ^ eat.c:1675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1675 | fpostfx(otmp) /* called after consuming (non-corpse) food */ | ^ eat.c:1741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1741 | edibility_prompts(otmp) | ^ eat.c:2052:6: warning: converting the result of '?:' with integer constants to a boolean always evaluates to 'true' [-Wtautological-constant-compare] 2052 | (((monstermoves - otmp->age) > (int) otmp->blessed ? 50:30) && | ^ eat.c:2170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2170 | morehungry(num) /* called after vomiting and after performing feats of magic */ | ^ eat.c:2179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2179 | lesshungry(num) /* called after eating (and after drinking fruit juice) */ | ^ eat.c:2266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2266 | newuhs(incr) /* compute and comment on your (new?) hunger status */ | ^ eat.c:2401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2401 | floorfood(verb,corpsecheck) /* get food from floor or pack */ | ^ eat.c:2496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2496 | eaten_stat(base, obj) | ^ eat.c:2518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2518 | consume_oeaten(obj, amt) | ^ eat.c:2572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2572 | maybe_finished_meal(stopping) | ^ 38 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c end.c In file included from end.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from end.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ end.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | done1(sig_unused) /* called as signal() handler, so sent at least one arg */ | ^ end.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | done_intr(sig_unused) /* called as signal() handler, so sent at least one arg */ | ^ end.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | done_hangup(sig) /* signal() handler */ | ^ end.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | done_in_by(mtmp) | ^ end.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 | should_query_disclose_option(category, defquery) | ^ end.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | disclose(how,taken) | ^ end.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | savelife(how) | ^ end.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | get_valuables(list) | ^ end.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | sort_valuables(list, size) | ^ end.c:498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | artifact_score(list, counting, endwin) | ^ end.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | done(how) | ^ end.c:919:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 919 | container_contents(list, identified, all_containers) | ^ end.c:960:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 960 | terminate(status) | ^ end.c:977:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | list_vanquished(defquery, ask) | ^ end.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 | list_genocided(defquery, ask) | ^ 20 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c engrave.c In file included from engrave.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from engrave.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ engrave.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | random_engraving(outbuf) | ^ engrave.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | wipeout_text(engr, cnt, seed) | ^ engrave.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | surface(x, y) | ^ engrave.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | ceiling(x, y) | ^ engrave.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 | engr_at(x, y) | ^ engrave.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | sengr_at(s, x, y) | ^ engrave.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | u_wipe_engr(cnt) | ^ engrave.c:254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | wipe_engr_at(x,y,cnt) | ^ engrave.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | read_engr_at(x,y) | ^ engrave.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 | make_engr_at(x,y,s,e_time,e_type) | ^ engrave.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | del_engr_at(x, y) | ^ engrave.c:893:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 893 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engrave.c:893:13: note: treat the string as an argument to avoid this 893 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ engrave.c:986:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 986 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engrave.c:986:9: note: treat the string as an argument to avoid this 986 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ engrave.c:1103:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1103 | if (post_engr_text[0]) pline(post_engr_text); | ^~~~~~~~~~~~~~ engrave.c:1103:31: note: treat the string as an argument to avoid this 1103 | if (post_engr_text[0]) pline(post_engr_text); | ^ | "%s", engrave.c:1108:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1108 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engrave.c:1108:23: note: treat the string as an argument to avoid this 1108 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ engrave.c:1115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | save_engravings(fd, mode) | ^ engrave.c:1139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1139 | rest_engravings(fd) | ^ engrave.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | del_engr(ep) | ^ engrave.c:1185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | rloc_engr(ep) | ^ engrave.c:1239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1239 | make_grave(x, y, str) | ^ 25 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c exper.c In file included from exper.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from exper.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ exper.c:11:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | newuexp(lev) | ^ exper.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | enermod(en) | ^ exper.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | experience(mtmp, nk) /* return # of exp points for mtmp after nk killed */ | ^ exper.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | more_experienced(exp, rexp) | ^ exper.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | losexp(drainer) /* e.g., hit by drain life attack */ | ^ exper.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | pluslvl(incr) | ^ exper.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | rndexp(gaining) | ^ 12 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c explode.c In file included from explode.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from explode.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ explode.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | explode(x, y, type, dam, olet, expltype) | ^ explode.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | scatter(sx,sy,blastforce,scflags, obj) | ^ explode.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | splatter_burning_oil(x, y) | ^ 8 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c extralev.c In file included from extralev.c:9: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from extralev.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ extralev.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | roguejoin(x1,y1,x2,y2, horiz) | ^ extralev.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | roguecorr(x, y, dir) | ^ extralev.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | miniwalk(x, y) | ^ extralev.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | corr(x,y) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c files.c In file included from files.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from files.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ files.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 | fname_encode(legal, quotechar, s, callerbuf, bufsz) | ^ files.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 | fname_decode(quotechar, s, callerbuf, bufsz) | ^ files.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | fqname(basename, whichprefix, buffnum) | ^ files.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | validate_prefix_locations(reasonbuf) | ^ files.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | fopen_datafile(filename, mode, prefix) | ^ files.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | set_levelfile_name(file, lev) | ^ files.c:422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | create_levelfile(lev, errbuf) | ^ files.c:464:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | open_levelfile(lev, errbuf) | ^ files.c:503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | delete_levelfile(lev) | ^ files.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | set_bonesfile_name(file, lev) | ^ files.c:651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 651 | create_bonesfile(lev, bonesid, errbuf) | ^ files.c:711:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | commit_bonesfile(lev) | ^ files.c:740:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | open_bonesfile(lev, bonesid) | ^ files.c:760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 760 | delete_bonesfile(lev) | ^ files.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 | save_savefile_name(fd) | ^ files.c:1030:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1030 | free_saved_games(saved) | ^ files.c:1049:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1049 | redirect(filename, mode, stream, uncomp) | ^ files.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | docompress_file(filename, uncomp) | ^ files.c:1214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1214 | compress(filename) | ^ files.c:1229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | uncompress(filename) | ^ files.c:1255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1255 | make_lockname(filename, lockname) | ^ files.c:1291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | lock_file(filename, whichprefix, retryct) | ^ files.c:1413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | unlock_file(filename) | ^ files.c:1484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1484 | fopen_config_file(filename) | ^ files.c:1600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1600 | get_uchars(fp, buf, bufp, list, modlist, size, name) | ^ files.c:1678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1678 | parse_config_line(fp, buf, tmp_ramdisk, tmp_levels) | ^ files.c:1981:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1981 | read_config_file(filename) | ^ files.c:2159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2159 | check_recordfile(dir) | ^ files.c:2243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2243 | paniclog(type, reason) | ^ 34 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c fountain.c In file included from fountain.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from fountain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ fountain.c:16:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | floating_above(what) | ^ fountain.c:90:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | dogushforth(drinking) /* Gushing forth along LOS from (u.ux, u.uy) */ | ^ fountain.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 | gush(x, y, poolcnt) | ^ fountain.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | dryup(x, y, isyou) | ^ fountain.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | dipfountain(obj) | ^ fountain.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 | breaksink(x,y) | ^ 11 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c hack.c In file included from hack.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from hack.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ hack.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | revive_nasty(x, y, msg) | ^ hack.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 | still_chewing(x,y) | ^ hack.c:426:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 426 | if (digtxt) You(digtxt); /* after newsym */ | ^~~~~~ hack.c:426:21: note: treat the string as an argument to avoid this 426 | if (digtxt) You(digtxt); /* after newsym */ | ^ | "%s", hack.c:436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | movobj(obj, ox, oy) | ^ hack.c:503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | may_dig(x,y) | ^ hack.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 | may_passwall(x,y) | ^ hack.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | bad_rock(mdat,x,y) | ^ hack.c:534:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | invocation_pos(x, y) | ^ hack.c:547:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | test_move(ux, uy, dx, dy, mode) | ^ hack.c:713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | findtravelpath(guess) | ^ hack.c:1458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1458 | spoteffects(pick) | ^ hack.c:1569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1569 | monstinroom(mdat,roomno) | ^ hack.c:1583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1583 | in_rooms(x, y, typewanted) | ^ hack.c:1652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1652 | in_town(x, y) | ^ hack.c:1676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1676 | move_update(newlev) | ^ hack.c:1718:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1718 | check_special_room(newlev) | ^ hack.c:2067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2067 | nomul(nval) | ^ hack.c:2079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2079 | unmul(msg_override) | ^ hack.c:2085:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2085 | if (*nomovemsg) pline(nomovemsg); | ^~~~~~~~~ hack.c:2085:24: note: treat the string as an argument to avoid this 2085 | if (*nomovemsg) pline(nomovemsg); | ^ | "%s", hack.c:2127:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2127 | losehp(n, knam, k_format) | ^ hack.c:2229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2229 | calc_capacity(xtra_wt) | ^ hack.c:2255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2255 | check_capacity(str) | ^ hack.c:2260:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2260 | pline(str); | ^~~ hack.c:2260:12: note: treat the string as an argument to avoid this 2260 | pline(str); | ^ | "%s", 28 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c hacklib.c In file included from hacklib.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from hacklib.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ hacklib.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | digit(c) /* is 'c' a digit? */ | ^ hacklib.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 | letter(c) /* is 'c' a letter? note: '@' classed as letter */ | ^ hacklib.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | highc(c) /* force 'c' into uppercase */ | ^ hacklib.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 | lowc(c) /* force 'c' into lowercase */ | ^ hacklib.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | lcase(s) /* convert a string into all lowercase */ | ^ hacklib.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | upstart(s) /* convert first character of a string to uppercase */ | ^ hacklib.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | mungspaces(bp) | ^ hacklib.c:127:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | eos(s) /* return the end of a string (pointing at '\0') */ | ^ hacklib.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | strkitten(s, c) /* append a character to a string (in place) */ | ^ hacklib.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | s_suffix(s) /* return a name converted to possessive */ | ^ hacklib.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | xcrypt(str, buf) /* trivial text encryption routine (see makedefs) */ | ^ hacklib.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | onlyspace(s) /* is a string entirely whitespace? */ | ^ hacklib.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | tabexpand(sbuf) /* expand tabs into proper number of spaces */ | ^ hacklib.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | visctrl(c) /* make a displayable string from a character */ | ^ hacklib.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | ordin(n) /* return the ordinal suffix of a number */ | ^ hacklib.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | sitoa(n) /* make a signed digit string from a number */ | ^ hacklib.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | sgn(n) /* return the sign of a number: -1, 0, or 1 */ | ^ hacklib.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | rounddiv(x, y) /* calculate x/y, rounding as appropriate */ | ^ hacklib.c:297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | distmin(x0, y0, x1, y1) /* distance between two points, in moves */ | ^ hacklib.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | dist2(x0, y0, x1, y1) /* square of euclidean distance between pair of pts */ | ^ hacklib.c:318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | online2(x0, y0, x1, y1) /* are two points lined up (on a straight line)? */ | ^ hacklib.c:332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | pmatch(patrn, strng) /* match a string against a pattern */ | ^ hacklib.c:357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | strncmpi(s1, s2, n) /* case insensitive counted string comparison */ | ^ hacklib.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | strstri(str, sub) /* case insensitive substring search */ | ^ hacklib.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | fuzzymatch(s1, s2, ignore_chars, caseblind) | ^ hacklib.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | yyyymmdd(date) | ^ 31 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c invent.c In file included from invent.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from invent.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 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 | assigninvlet(otmp) | ^ invent.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | merge_choice(objlist, obj) | ^ invent.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | merged(potmp, pobj) | ^ invent.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | addinv_core1(obj) | ^ invent.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 | addinv_core2(obj) | ^ invent.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 | addinv(obj) | ^ invent.c:349:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | carry_obj_effects(obj) | ^ invent.c:374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | hold_another_object(obj, drop_fmt, drop_arg, hold_msg) | ^ invent.c:443:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | useupall(obj) | ^ invent.c:452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | useup(obj) | ^ invent.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | consume_obj_charge(obj, maybe_unpaid) | ^ invent.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 | freeinv_core(obj) | ^ invent.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | freeinv(obj) | ^ invent.c:541:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | delallobj(x, y) | ^ invent.c:562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | delobj(obj) | ^ invent.c:588:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | sobj_at(n,x,y) | ^ invent.c:603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | carrying(type) | ^ invent.c:615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | currency(amount) | ^ invent.c:634:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 634 | o_on(id, objchn) | ^ invent.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | obj_here(obj, x, y) | ^ invent.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | g_at(x,y) | ^ invent.c:681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | mkgoldobj(q) | ^ invent.c:698:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | compactify(buf) | ^ invent.c:729:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | taking_off(action) | ^ invent.c:737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | putting_on(action) | ^ invent.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 | getobj(let,word) | ^ invent.c:974:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 974 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ invent.c:974:10: note: treat the string as an argument to avoid this 974 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ invent.c:1029:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1029 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ invent.c:1029:14: note: treat the string as an argument to avoid this 1029 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ invent.c:1095:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1095 | silly_thing(word, otmp) | ^ invent.c:1134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1134 | ckvalidcat(otmp) | ^ invent.c:1142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | ckunpaid(otmp) | ^ invent.c:1159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1159 | is_worn(otmp) | ^ invent.c:1176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1176 | ggetobj(word, fn, mx, combo, resultflags) | ^ invent.c:1370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1370 | askchain(objchn, olets, allflag, fn, ckfn, mx, word) | ^ invent.c:1468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1468 | fully_identify_obj(otmp) | ^ invent.c:1480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1480 | identify(otmp) | ^ invent.c:1490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1490 | menu_identify(id_limit) | ^ invent.c:1520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1520 | identify_pack(id_limit) | ^ invent.c:1562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1562 | obj_to_let(obj) /* should of course only be called for things in invent */ | ^ invent.c:1581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1581 | prinv(prefix, obj, quan) | ^ invent.c:1596:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1596 | xprname(obj, txt, let, dot, cost, quan) | ^ invent.c:1664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1664 | find_unpaid(list, last_found) | ^ invent.c:1693:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1693 | display_pickinv(lets, want_reply, out_cnt) | ^ invent.c:1807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1807 | display_inventory(lets, want_reply) | ^ invent.c:1819:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1819 | count_unpaid(list) | ^ invent.c:1838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1838 | count_buc(list, type) | ^ invent.c:1965:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1965 | this_type_only(obj) | ^ invent.c:2087:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2087 | dfeature_at(x, y, buf) | ^ invent.c:2153:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2153 | look_here(obj_cnt, picked_some) | ^ invent.c:2217:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2217 | if (dfeature) pline(fbuf); | ^~~~ invent.c:2217:23: note: treat the string as an argument to avoid this 2217 | if (dfeature) pline(fbuf); | ^ | "%s", invent.c:2226:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2226 | if (dfeature) pline(fbuf); | ^~~~ invent.c:2226:26: note: treat the string as an argument to avoid this 2226 | if (dfeature) pline(fbuf); | ^ | "%s", invent.c:2233:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2233 | if (dfeature) pline(fbuf); | ^~~~ invent.c:2233:26: note: treat the string as an argument to avoid this 2233 | if (dfeature) pline(fbuf); | ^ | "%s", invent.c:2276:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2276 | will_feel_cockatrice(otmp, force_touch) | ^ invent.c:2287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2287 | feel_cockatrice(otmp, force_touch) | ^ invent.c:2309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2309 | stackobj(obj) | ^ invent.c:2321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2321 | mergable(otmp, obj) /* returns TRUE if obj & otmp can be merged */ | ^ invent.c:2489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2489 | tool_in_use(obj) | ^ invent.c:2540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2540 | useupf(obj, numused) | ^ invent.c:2592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2592 | let_to_name(let,unpaid) | ^ invent.c:2687:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2687 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ invent.c:2687:10: note: treat the string as an argument to avoid this 2687 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ invent.c:2733:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2733 | invdisp_nothing(hdr, txt) | ^ invent.c:2755:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2755 | worn_wield_only(obj) | ^ invent.c:2777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2777 | display_minventory(mon, dflags, title) | ^ invent.c:2863:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2863 | display_cinventory(obj) | ^ invent.c:2892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2892 | only_here(obj) | ^ invent.c:2905:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2905 | display_binventory(x, y, as_if_seen) | ^ 71 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c light.c In file included from light.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from light.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ light.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | new_light_source(x, y, range, type, id) | ^ light.c:90:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | del_light_source(type, id) | ^ light.c:101:30: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 101 | case LS_OBJECT: tmp_id = (genericptr_t)(((struct obj *)id)->o_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:103:31: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 103 | case LS_MONSTER: tmp_id = (genericptr_t)(((struct monst *)id)->m_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ light.c:127:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | do_light_sources(cs_rows) | ^ light.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 | find_mid(nid, fmflags) | ^ light.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | save_light_sources(fd, mode, range) | ^ light.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 | restore_light_sources(fd) | ^ light.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 | relink_light_sources(ghostly) | ^ light.c:311:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 311 | if (!lookup_id_mapping((unsigned)ls->id, &nid)) | ^~~~~~~~~~~~~~~~ light.c:314:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 314 | nid = (unsigned) ls->id; | ^~~~~~~~~~~~~~~~~ light.c:339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | maybe_write_ls(fd, range, write_it) | ^ light.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | write_ls(fd, ls) | ^ light.c:392:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 392 | ls->id = (genericptr_t)otmp->o_id; | ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:399:12: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 399 | ls->id = (genericptr_t)mtmp->m_id; | ^~~~~~~~~~~~~~~~~~~~~~~~ light.c:417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | obj_move_light_source(src, dest) | ^ light.c:441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | snuff_light_source(x, y) | ^ light.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | obj_sheds_light(obj) | ^ light.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | obj_is_burning(obj) | ^ light.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | obj_split_light_source(src, dest) | ^ light.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | obj_merge_light_sources(src, dest) | ^ light.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | candle_light_range(obj) | ^ 27 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c lock.c In file included from lock.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from lock.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ lock.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | picking_lock(x, y) | ^ lock.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | picking_at(x, y) | ^ lock.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | pick_lock(pick) /* pick a lock with a given object */ | ^ lock.c:585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | obstructed(x,y) | ^ lock.c:701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | boxlock(obj, otmp) /* returns true if something happened */ | ^ lock.c:737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | doorlock(otmp,x,y) /* returns true if something happened */ | ^ lock.c:865:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 865 | if (msg && cansee(x,y)) pline(msg); | ^~~ lock.c:865:32: note: treat the string as an argument to avoid this 865 | if (msg && cansee(x,y)) pline(msg); | ^ | "%s", lock.c:881:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | chest_shatter_msg(otmp) | ^ 13 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mail.c In file included from mail.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mail.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c makemon.c 5 warnings generated. In file included from makemon.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from makemon.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ makemon.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | is_home_elemental(ptr) | ^ makemon.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | wrong_elem_type(ptr) | ^ makemon.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | m_initgrp(mtmp, x, y, n) /* make a group just like mtmp */ | ^ makemon.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | m_initthrow(mtmp,otyp,oquan) | ^ makemon.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | m_initweap(mtmp) | ^ makemon.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | m_initinv(mtmp) | ^ makemon.c:671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | clone_mon(mon, x, y) | ^ makemon.c:788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | propagate(mndx, tally, ghostly) | ^ makemon.c:824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | makemon(ptr, x, y, mmflags) | ^ makemon.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | mbirth_limit(mndx) | ^ makemon.c:1111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1111 | create_critters(cnt, mptr) | ^ makemon.c:1149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1149 | uncommon(mndx) | ^ makemon.c:1166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1166 | align_shift(ptr) | ^ makemon.c:1288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1288 | reset_rndmonst(mndx) | ^ makemon.c:1311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1311 | mkclass(class,spc) | ^ makemon.c:1362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | adj_lev(ptr) /* adjust strength of monsters based on u.uz and u.ulevel */ | ^ makemon.c:1393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1393 | grow_up(mtmp, victim) /* `mtmp' might "grow up" into a bigger version */ | ^ makemon.c:1485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1485 | mongets(mtmp, otyp) | ^ makemon.c:1537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1537 | golemhp(type) | ^ makemon.c:1564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1564 | peace_minded(ptr) | ^ makemon.c:1607:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1607 | set_malign(mtmp) | ^ makemon.c:1666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1666 | set_mimic_sym(mtmp) /* KAA, modified by ERS */ | ^ makemon.c:1776:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1776 | bagotricks(bag) | ^ makemon.c:1782:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1782 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ makemon.c:1782:8: note: treat the string as an argument to avoid this 1782 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ 29 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mapglyph.c In file included from mapglyph.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mapglyph.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mapglyph.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mapglyph.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 | mapglyph(glyph, ochar, ocolor, ospecial, x, y) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mcastu.c 6 warnings generated. In file included from mcastu.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mcastu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mcastu.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 | cursetxt(mtmp, undirected) | ^ mcastu.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | choose_magic_spell(spellval) | ^ mcastu.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | choose_clerical_spell(spellnum) | ^ mcastu.c:162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | castmu(mtmp, mattk, thinks_it_foundyou, foundyou) | ^ mcastu.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | cast_wizard_spell(mtmp, dmg, spellnum) | ^ mcastu.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 | cast_cleric_spell(mtmp, dmg, spellnum) | ^ mcastu.c:593:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 593 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcastu.c:593:23: note: treat the string as an argument to avoid this 593 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mcastu.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | is_undirected_spell(adtyp, spellnum) | ^ mcastu.c:696:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | spell_would_be_useless(mtmp, adtyp, spellnum) | ^ mcastu.c:760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 760 | buzzmu(mtmp, mattk) /* monster uses spell (ranged) */ | ^ 15 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mhitm.c In file included from mhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mhitm.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | mon_nam_too(outbuf, mon, other_mon) | ^ mhitm.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | noises(magr, mattk) | ^ mhitm.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | missmm(magr, mdef, mattk) | ^ mhitm.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | fightm(mtmp) /* have monsters fight each other */ | ^ mhitm.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | mattackm(magr, mdef) | ^ mhitm.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | hitmm(magr, mdef, mattk) | ^ mhitm.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | gazemm(magr, mdef, mattk) | ^ mhitm.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | gulpmm(magr, mdef, mattk) | ^ mhitm.c:556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | explmm(magr, mdef, mattk) | ^ mhitm.c:587:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | mdamagem(magr, mdef, mattk) | ^ mhitm.c:1171:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1171 | noattacks(ptr) /* returns 1 if monster doesn't attack */ | ^ mhitm.c:1184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1184 | sleep_monst(mon, amt, how) | ^ mhitm.c:1206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1206 | slept_monst(mon) | ^ mhitm.c:1220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1220 | mrustm(magr, mdef, obj) | ^ mhitm.c:1257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1257 | mswingsm(magr, mdef, otemp) | ^ mhitm.c:1274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1274 | passivemm(magr,mdef,mhit,mdead) | ^ mhitm.c:1417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | attk_protection(aatyp) | ^ 22 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mhitu.c In file included from mhitu.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mhitu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mhitu.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | hitmsg(mtmp, mattk) | ^ mhitu.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | missmu(mtmp, nearmiss, mattk) /* monster missed you */ | ^ mhitu.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | mswings(mtmp, otemp) /* monster swings obj */ | ^ mhitu.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | mpoisons_subj(mtmp, mattk) | ^ mhitu.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 | wildmiss(mtmp, mattk) /* monster attacked your displaced image */ | ^ mhitu.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | expels(mtmp, mdat, message) | ^ mhitu.c: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 | getmattk(mptr, indx, prev_result, alt_attk_buf) | ^ mhitu.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | mattacku(mtmp) | ^ mhitu.c:704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | hurtarmor(attk) | ^ mhitu.c:766:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 766 | diseasemu(mdat) | ^ mhitu.c:781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | u_slip_free(mtmp, mattk) | ^ mhitu.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | magic_negation(mon) | ^ mhitu.c:868:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | hitmu(mtmp, mattk) | ^ mhitu.c:1039:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1039 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitu.c:1039:24: note: treat the string as an argument to avoid this 1039 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mhitu.c:1623:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1623 | gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */ | ^ mhitu.c:1745:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1745 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitu.c:1745:25: note: treat the string as an argument to avoid this 1745 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mhitu.c:1812:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1812 | explmu(mtmp, mattk, ufound) /* monster explodes in your face */ | ^ mhitu.c:1861:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1861 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitu.c:1861:21: note: treat the string as an argument to avoid this 1861 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mhitu.c:1896:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1896 | gazemu(mtmp, mattk) /* monster gazes at you */ | ^ mhitu.c:1988:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1988 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitu.c:1988:24: note: treat the string as an argument to avoid this 1988 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mhitu.c:2044:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2044 | mdamageu(mtmp, n) /* mtmp hits you for n points damage */ | ^ mhitu.c:2062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2062 | urustm(mon, obj) | ^ mhitu.c:2103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2103 | could_seduce(magr,mdef,mattk) | ^ mhitu.c:2159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2159 | doseduce(mon) | ^ mhitu.c:2410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2410 | mayberem(obj, str) | ^ mhitu.c:2448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2448 | passiveum(olduasmon,mtmp,mattk) | ^ 31 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c minion.c In file included from minion.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from minion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ minion.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | msummon(mon) /* mon summons a monster */ | ^ minion.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | summon_minion(alignment, talk) | ^ minion.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | demon_talk(mtmp) /* returns 1 if it won't attack. */ | ^ minion.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | bribe(mtmp) | ^ minion.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | dprince(atyp) | ^ minion.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | dlord(atyp) | ^ minion.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | ndemon(atyp) | ^ 12 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mklev.c In file included from mklev.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mklev.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mklev.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | do_comp(vx,vy) | ^ mklev.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | finddpos(cc, xl,yl,xh,yh) | ^ mklev.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 | do_room_or_subroom(croom, lowx, lowy, hix, hiy, lit, rtype, special, is_room) | ^ mklev.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | add_room(lowx, lowy, hix, hiy, lit, rtype, special) | ^ mklev.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 | add_subroom(proom, lowx, lowy, hix, hiy, lit, rtype, special) | ^ mklev.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | join(a,b,nxcor) | ^ mklev.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | add_door(x,y,aroom) | ^ mklev.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 | dosdoor(x,y,aroom,type) | ^ mklev.c:430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | place_niche(aroom,dy,xx,yy) | ^ mklev.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 | makeniche(trap_type) | ^ mklev.c:953:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 953 | topologize(croom) | ^ mklev.c:1016:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | find_branch_room(mp) | ^ mklev.c:1046:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | pos_to_room(x, y) | ^ mklev.c:1060:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1060 | place_branch(br, x, y) | ^ mklev.c:1118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1118 | bydoor(x, y) | ^ mklev.c:1144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1144 | okdoor(x,y) | ^ mklev.c:1154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1154 | dodoor(x,y,aroom) | ^ mklev.c:1167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1167 | occupied(x, y) | ^ mklev.c:1181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | mktrap(num, mazeflag, croom, tm) | ^ mklev.c:1271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | mkstairs(x, y, up, croom) | ^ mklev.c:1306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1306 | mkfount(mazeflag,croom) | ^ mklev.c:1332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1332 | mksink(croom) | ^ mklev.c:1353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1353 | mkaltar(croom) | ^ mklev.c:1377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | mkgrave(croom) | ^ mklev.c:1471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1471 | mkinvpos(x,y,dist) | ^ mklev.c:1551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1551 | mk_knox_portal(x, y) | ^ 31 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mkmap.c In file included from mkmap.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mkmap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mkmap.c:28:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | init_map(bg_typ) | ^ mkmap.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | init_fill(bg_typ, fg_typ) | ^ mkmap.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 | get_map(col,row, bg_typ) | ^ mkmap.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | pass_one(bg_typ, fg_typ) | ^ mkmap.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | pass_two(bg_typ, fg_typ) | ^ mkmap.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | pass_three(bg_typ, fg_typ) | ^ mkmap.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 | flood_fill_rm(sx, sy, rmno, lit, anyroom) | ^ mkmap.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | join_map(bg_typ, fg_typ) | ^ mkmap.c:339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | finish_map(fg_typ, bg_typ, lit, walled) | ^ mkmap.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | remove_rooms(lx, ly, hx, hy) | ^ mkmap.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | remove_room(roomno) | ^ mkmap.c:438:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | mkmap(init_lev) | ^ 17 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mkmaze.c In file included from mkmaze.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mkmaze.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mkmaze.c:29:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | iswall(x,y) | ^ mkmaze.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | iswall_or_stone(x,y) | ^ mkmaze.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | is_solid(x,y) | ^ mkmaze.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | extend_spine(locale, wall_there, dx, dy) | ^ mkmaze.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | wallification(x1, y1, x2, y2) | ^ mkmaze.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | okay(x,y,dir) | ^ mkmaze.c:210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | maze0xy(cc) /* find random starting point for maze generation */ | ^ mkmaze.c:225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | bad_location(x, y, lx, ly, hx, hy) | ^ mkmaze.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | place_lregion(lx, ly, hx, hy, nlx, nly, nhx, nhy, rtype, lev) | ^ mkmaze.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | put_lregion_here(x,y,nlx,nly,nhx,nhy,rtype,oneshot,lev) | ^ mkmaze.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | makemaz(s) | ^ mkmaze.c:710:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | walkfrom(x,y) | ^ mkmaze.c:745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | move(x,y,dir) | ^ mkmaze.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | mazexy(cc) /* find random point in generated corridors, | ^ mkmaze.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | mkportal(x, y, todnum, todlevel) | ^ mkmaze.c:1091:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1091 | save_waterlevel(fd, mode) | ^ mkmaze.c:1114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1114 | restore_waterlevel(fd) | ^ mkmaze.c:1147:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | const char *waterbody_name(x, y) | ^ mkmaze.c:1228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1228 | mk_bubble(x,y,n) | ^ mkmaze.c:1285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1285 | mv_bubble(b,dx,dy,ini) | ^ 25 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mkobj.c In file included from mkobj.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mkobj.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mkobj.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | mkobj_at(let, x, y, artif) | ^ mkobj.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | mksobj_at(otyp, x, y, init, artif) | ^ mkobj.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | mkobj(oclass, artif) | ^ mkobj.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | mkbox_cnts(box) | ^ mkobj.c: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 | splitobj(obj, num) | ^ mkobj.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | replace_object(obj, otmp) | ^ mkobj.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 | bill_dummy_object(otmp) | ^ mkobj.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | mksobj(otyp, init, artif) | ^ mkobj.c:640:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 640 | start_corpse_timeout(body) | ^ mkobj.c:688:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | bless(otmp) | ^ mkobj.c:706:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 706 | unbless(otmp) | ^ mkobj.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | curse(otmp) | ^ mkobj.c:746:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | uncurse(otmp) | ^ mkobj.c:763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | blessorcurse(otmp, chance) | ^ mkobj.c:783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | bcsign(otmp) | ^ mkobj.c:801:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 801 | weight(obj) | ^ mkobj.c:861:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | rnd_treefruit_at(x,y) | ^ mkobj.c:870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | mkgold(amount, x, y) | ^ mkobj.c:907:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | mkcorpstat(objtype, mtmp, ptr, x, y, init) | ^ mkobj.c:955:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 955 | obj_attach_mid(obj, mid) | ^ mkobj.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | save_mtraits(obj, mtmp) | ^ mkobj.c:1006:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1006 | get_mtraits(obj, copyof) | ^ mkobj.c:1035:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1035 | mk_tt_object(objtype, x, y) | ^ mkobj.c:1053:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | mk_named_object(objtype, ptr, x, y, nm) | ^ mkobj.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | is_flammable(otmp) | ^ mkobj.c:1082:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1082 | is_rottable(otmp) | ^ mkobj.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | place_object(otmp, x, y) | ^ mkobj.c:1141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1141 | obj_ice_effects(x, y, do_buried) | ^ mkobj.c:1167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1167 | peek_at_iced_corpse_age(otmp) | ^ mkobj.c:1187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1187 | obj_timer_checks(otmp, x, y, force) | ^ mkobj.c:1256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1256 | remove_object(otmp) | ^ mkobj.c:1272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1272 | discard_minvent(mtmp) | ^ mkobj.c:1300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1300 | obj_extract_self(obj) | ^ mkobj.c:1337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1337 | extract_nobj(obj, head_ptr) | ^ mkobj.c:1364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1364 | extract_nexthere(obj, head_ptr) | ^ mkobj.c:1389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | add_to_minv(mon, obj) | ^ mkobj.c:1415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | add_to_container(container, obj) | ^ mkobj.c:1437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1437 | add_to_migration(obj) | ^ mkobj.c:1449:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | add_to_buried(obj) | ^ mkobj.c:1462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1462 | container_weight(container) | ^ mkobj.c:1479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | dealloc_obj(obj) | ^ mkobj.c:1609:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1609 | where_name(where) | ^ mkobj.c:1617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1617 | check_contained(container, mesg) | ^ 48 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mkroom.c In file included from mkroom.c:16: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mkroom.c:16: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mkroom.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | isbig(sroom) | ^ mkroom.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | mkroom(roomtype) | ^ mkroom.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | pick_room(strict) | ^ mkroom.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | mkzoo(type) | ^ mkroom.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 | fill_zoo(sroom) | ^ mkroom.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 395 | mkundead(mm, revive_corpses, mm_flags) | ^ mkroom.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | shrine_pos(roomno) | ^ mkroom.c:520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 520 | nexttodoor(sx,sy) | ^ mkroom.c:535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | has_dnstairs(sroom) | ^ mkroom.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | has_upstairs(sroom) | ^ mkroom.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | somex(croom) | ^ mkroom.c:567:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 567 | somey(croom) | ^ mkroom.c:574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | inside_room(croom, x, y) | ^ mkroom.c:583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | somexy(croom, c) | ^ mkroom.c:641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | search_special(type) | ^ mkroom.c:713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | save_room(fd, r) | ^ mkroom.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 | save_rooms(fd) | ^ mkroom.c:745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | rest_room(fd, r) | ^ mkroom.c:765:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | rest_rooms(fd) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mon.c In file included from mon.c:10: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mon.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | undead_to_corpse(mndx) | ^ mon.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 | genus(mndx, mode) | ^ mon.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | pm_to_cham(mndx) | ^ mon.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 | make_corpse(mtmp) | ^ mon.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | minliquid(mtmp) | ^ mon.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 | mcalcmove(mon) | ^ mon.c:661:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | meatmetal(mtmp) | ^ mon.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 | meatobj(mtmp) /* for gelatinous cubes */ | ^ mon.c:840:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 840 | mpickgold(mtmp) | ^ mon.c:867:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | mpickstuff(mtmp, str) | ^ mon.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | curr_mon_load(mtmp) | ^ mon.c:928:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | max_mon_load(mtmp) | ^ mon.c:957:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | can_carry(mtmp,otmp) | ^ mon.c:1000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | mfndpos(mon, poss, info, flag) | ^ mon.c:1216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1216 | mm_aggression(magr, mdef) | ^ mon.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | monnear(mon, x, y) | ^ mon.c:1270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1270 | replmon(mtmp, mtmp2) | ^ mon.c:1317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1317 | relmon(mon) | ^ mon.c:1336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | m_detach(mtmp, mptr) | ^ mon.c:1359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1359 | mlifesaver(mon) | ^ mon.c:1372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1372 | lifesaved_monster(mtmp) | ^ mon.c:1413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | mondead(mtmp) | ^ mon.c:1491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1491 | corpse_chance(mon, magr, was_swallowed) | ^ mon.c:1562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1562 | mondied(mdef) | ^ mon.c:1575:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1575 | mongone(mdef) | ^ mon.c:1598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1598 | monstone(mdef) | ^ mon.c:1684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1684 | monkilled(mdef, fltxt, how) | ^ mon.c:1712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | unstuck(mtmp) | ^ mon.c:1730:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1730 | killed(mtmp) | ^ mon.c:1738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1738 | xkilled(mtmp, dest) | ^ mon.c:1909:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1909 | mon_to_stone(mtmp) | ^ mon.c:1928:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1928 | mnexto(mtmp) /* Make monster mtmp next to you (if possible) */ | ^ mon.c:1954:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1954 | mnearto(mtmp,x,y,move_other) | ^ mon.c:2005:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2005 | poisontell(typ) | ^ mon.c:2013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2013 | poisoned(string, typ, pname, fatal) | ^ mon.c:2070:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2070 | m_respond(mtmp) | ^ mon.c:2101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2101 | setmangry(mtmp) | ^ mon.c:2141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2141 | wakeup(mtmp) | ^ mon.c:2171:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2171 | wake_nearto(x, y, distance) | ^ mon.c:2185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2185 | seemimic(mtmp) | ^ mon.c:2253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2253 | restore_cham(mon) | ^ mon.c:2273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2273 | restrap(mtmp) | ^ mon.c:2297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2297 | mon_animal_list(construct) | ^ mon.c:2330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2330 | select_newcham_form(mon) | ^ mon.c:2373:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2373 | if (tries==5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mon.c:2373:23: note: treat the string as an argument to avoid this 2373 | if (tries==5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ mon.c:2382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2382 | newcham(mtmp, mdat, polyspot, msg) | ^ mon.c:2581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2581 | can_be_hatched(mnum) | ^ mon.c:2603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2603 | egg_type_from_parent(mnum, force_ordinary) | ^ mon.c:2617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2617 | dead_species(m_idx, egg) | ^ mon.c:2637:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2637 | kill_eggs(obj_list) | ^ mon.c:2710:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2710 | golemeffects(mon, damtype, dam) | ^ mon.c:2740:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2740 | angry_guards(silent) | ^ mon.c:2795:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2795 | mimic_hit_msg(mtmp, otyp) | ^ 58 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mondata.c In file included from mondata.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mondata.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mondata.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | set_mon_data(mon, ptr, flag) | ^ mondata.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | attacktype_fordmg(ptr, atyp, dtyp) | ^ mondata.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | attacktype(ptr, atyp) | ^ mondata.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | poly_when_stoned(ptr) | ^ mondata.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | resists_drli(mon) /* returns TRUE if monster is drain-life resistant */ | ^ mondata.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | resists_magm(mon) /* TRUE if monster is magic-missile resistant */ | ^ mondata.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | resists_blnd(mon) | ^ mondata.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | can_blnd(magr, mdef, aatyp, obj) | ^ mondata.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | ranged_attk(ptr) /* returns TRUE if monster can attack at range */ | ^ mondata.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | hates_silver(ptr) | ^ mondata.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 | passes_bars(mptr) | ^ mondata.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | can_track(ptr) /* returns TRUE if monster can track well */ | ^ mondata.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | sliparm(ptr) /* creature will slide out of armor */ | ^ mondata.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | breakarm(ptr) /* creature will break out of armor */ | ^ mondata.c:297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | sticks(ptr) /* creature sticks other creatures it hits */ | ^ mondata.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | num_horns(ptr) | ^ mondata.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | dmgtype_fromattack(ptr, dtyp, atyp) | ^ mondata.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | dmgtype(ptr, dtyp) | ^ mondata.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | max_passive_dmg(mdef, magr) | ^ mondata.c:380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | monsndx(ptr) /* return an index into the mons array */ | ^ mondata.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 | name_to_mon(in_str) | ^ mondata.c:517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | gender(mtmp) | ^ mondata.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | pronoun_gender(mtmp) | ^ mondata.c:540:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | levl_follower(mtmp) | ^ mondata.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 | little_to_big(montype) | ^ mondata.c:644:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | big_to_little(montype) | ^ mondata.c:660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | raceptr(mtmp) | ^ mondata.c:676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | locomotion(ptr, def) | ^ mondata.c:696:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | stagger(ptr, def) | ^ mondata.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | on_fire(mptr, mattk) | ^ 35 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c monmove.c In file included from monmove.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from monmove.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ monmove.c:23:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | mb_trapped(mtmp) | ^ monmove.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 | watch_on_duty(mtmp) | ^ monmove.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | dochugw(mtmp) | ^ monmove.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | onscary(x, y, mtmp) | ^ monmove.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 | mon_regen(mon, digest_meal) | ^ monmove.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | disturb(mtmp) | ^ monmove.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 | monflee(mtmp, fleetime, first, fleemsg) | ^ monmove.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | distfleeck(mtmp,inrange,nearby,scared) | ^ monmove.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 | m_arrival(mon) | ^ monmove.c:294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | dochug(mtmp) | ^ monmove.c:577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | itsstuck(mtmp) | ^ monmove.c:594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | m_move(mtmp, after) | ^ monmove.c:1221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1221 | closed_door(x, y) | ^ monmove.c:1229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | accessible(x, y) | ^ monmove.c:1240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1240 | set_apparxy(mtmp) | ^ monmove.c:1312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1312 | can_ooze(mtmp) | ^ 21 warnings generated. ./makedefs -m cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c monstr.c In file included from monstr.c:2: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from monstr.c:2: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from monstr.c:2: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mplayer.c In file included from mplayer.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mplayer.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mplayer.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | get_mplname(mtmp, nam) | ^ mplayer.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 | mk_mplayer_armor(mon, typ) | ^ mplayer.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 | mk_mplayer(ptr, x, y, special) | ^ mplayer.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 | create_mplayers(num, special) | ^ mplayer.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | mplayer_talk(mtmp) | ^ 10 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c mthrowu.c In file included from mthrowu.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from mthrowu.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ mthrowu.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | thitu(tlev, dam, obj, name) | ^ mthrowu.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | drop_throw(obj, ohit, x, y) | ^ mthrowu.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 | ohitmon(mtmp, otmp, range, verbose) | ^ mthrowu.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | m_throw(mon, x, y, dx, dy, range, obj) | ^ mthrowu.c:453:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 453 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mthrowu.c:453:20: note: treat the string as an argument to avoid this 453 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ mthrowu.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 | m_useup(mon, obj) | ^ mthrowu.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 | thrwmu(mtmp) | ^ mthrowu.c:618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | spitmu(mtmp, mattk) /* monster spits substance at you */ | ^ mthrowu.c:660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | breamu(mtmp, mattk) /* monster breathes at you (ranged) */ | ^ mthrowu.c:702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | linedup(ax, ay, bx, by) | ^ mthrowu.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] 721 | lined_up(mtmp) /* is mtmp in position to use ranged attack? */ | ^ mthrowu.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 | m_carrying(mtmp, type) | ^ mthrowu.c:747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | hits_bars(obj_p, x, y, always_hit, whodidit) | ^ 18 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c muse.c In file included from muse.c:9: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from muse.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ muse.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | precheck(mon, obj) | ^ muse.c:82:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 82 | if (vis) pline(empty); | ^~~~~ muse.c:82:19: note: treat the string as an argument to avoid this 82 | if (vis) pline(empty); | ^ | "%s", muse.c:105:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 105 | if (vis) pline(empty); | ^~~~~ muse.c:105:22: note: treat the string as an argument to avoid this 105 | if (vis) pline(empty); | ^ | "%s", muse.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | mzapmsg(mtmp, otmp, self) | ^ muse.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 | mreadmsg(mtmp, otmp) | ^ muse.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | mquaffmsg(mtmp, otmp) | ^ muse.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | find_defensive(mtmp) | ^ muse.c:526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | use_defensive(mtmp) | ^ muse.c:901:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | rnd_defensive_item(mtmp) | ^ muse.c:965:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 965 | find_offensive(mtmp) | ^ muse.c:1098:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1098 | mbhitm(mtmp, otmp) | ^ muse.c:1175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1175 | mbhit(mon,range,fhitm,fhito,obj) | ^ muse.c:1266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | use_offensive(mtmp) | ^ muse.c:1518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1518 | rnd_offensive_item(mtmp) | ^ muse.c:1566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1566 | find_misc(mtmp) | ^ muse.c:1679:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1679 | muse_newcham_mon(mon) | ^ muse.c:1694:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1694 | use_misc(mtmp) | ^ muse.c:1884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1884 | you_aggravate(mtmp) | ^ muse.c:1909:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1909 | rnd_misc_item(mtmp) | ^ muse.c:1945:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1945 | searches_for_item(mon, obj) | ^ muse.c:2027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2027 | mon_reflects(mon,str) | ^ muse.c:2067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2067 | ureflects (fmt, str) | ^ muse.c:2103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2103 | munstone(mon, by_you) | ^ muse.c:2124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2124 | mon_consume_unstone(mon, obj, by_you, stoning) | ^ 29 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c music.c In file included from music.c:29: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from music.c:29: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ music.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | awaken_monsters(distance) | ^ music.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | put_monsters_to_sleep(distance) | ^ music.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | charm_snakes(distance) | ^ music.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | calm_nymphs(distance) | ^ music.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 | charm_monsters(distance) | ^ music.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 | do_earthquake(force) | ^ music.c:353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | do_improvisation(instr) | ^ music.c:476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 476 | do_play_instrument(instr) | ^ 13 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c o_init.c In file included from o_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from o_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ o_init.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 | setgemprobs(dlev) | ^ o_init.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | shuffle(o_low, o_high, domaterial) | ^ o_init.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | savenames(fd, mode) | ^ o_init.c:280:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | restnames(fd) | ^ o_init.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 | discover_object(oindx, mark_as_known, credit_hero) | ^ o_init.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | undiscover_object(oindx) | ^ o_init.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | interesting_to_discover(i) | ^ 12 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c objnam.c In file included from objnam.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from objnam.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ objnam.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | strprepend(s,pref) | ^ objnam.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | obj_typename(otyp) | ^ objnam.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | simple_typename(otyp) | ^ objnam.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | obj_is_pname(obj) | ^ objnam.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 | distant_name(obj, func) | ^ objnam.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | fruitname(juice) | ^ objnam.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | xname(obj) | ^ objnam.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | mshot_xname(obj) | ^ objnam.c:508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | the_unique_obj(obj) | ^ objnam.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | add_erosion_words(obj,prefix) | ^ objnam.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | doname(obj) | ^ objnam.c:797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | not_fully_identified(otmp) | ^ objnam.c:833:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 833 | corpse_xname(otmp, ignore_oquan) | ^ objnam.c:849:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 849 | cxname(obj) | ^ objnam.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | killer_xname(obj) | ^ objnam.c:902:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | singular(otmp, func) | ^ objnam.c:921:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | an(str) | ^ objnam.c:948:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | An(str) | ^ objnam.c:961:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | the(str) | ^ objnam.c:1008:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1008 | The(str) | ^ objnam.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | aobjnam(otmp,verb) | ^ objnam.c:1039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | Tobjnam(otmp, verb) | ^ objnam.c:1054:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1054 | otense(otmp, verb) | ^ objnam.c:1088:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1088 | vtense(subj, verb) | ^ objnam.c:1183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1183 | Doname2(obj) | ^ objnam.c:1194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1194 | yname(obj) | ^ objnam.c:1206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1206 | Yname2(obj) | ^ objnam.c:1220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1220 | ysimple_name(obj) | ^ objnam.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | Ysimple_name2(obj) | ^ objnam.c:1268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1268 | makeplural(oldstr) | ^ objnam.c:1536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1536 | makesingular(oldstr) | ^ objnam.c:1642:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1642 | wishymatch(u_str, o_str, retry_inverted) | ^ objnam.c:1750:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1750 | readobjnam(bp, no_wish, from_user) | ^ objnam.c:2722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2722 | rnd_class(first,last) | ^ objnam.c:2741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2741 | Japanese_item_name(i) | ^ objnam.c:2755:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2755 | cloak_simple_name(cloak) | ^ objnam.c:2775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2775 | mimic_obj_name(mtmp) | ^ 42 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c options.c In file included from options.c:13: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from options.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ options.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 | match_optname(user_string, opt_name, min_length, val_allowed) | ^ options.c:477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | nh_getenv(ev) | ^ options.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | nmcpy(dest, src, maxlen) | ^ options.c:632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | escapes(cp, tp) | ^ options.c:688:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | rejectoption(optname) | ^ options.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | badoption(opts) | ^ options.c:723:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | string_for_opt(opts, val_optional) | ^ options.c:741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 741 | string_for_env_opt(optname, opts, val_optional) | ^ options.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 | bad_negation(optname, with_parameter) | ^ options.c:773:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | change_inv_order(op) | ^ options.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | graphics_opts(opts, optype, maxlen, offset) | ^ options.c:832:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 832 | warning_opts(opts, optype) | ^ options.c:853:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | assign_warnings(graph_chars) | ^ options.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | feature_alert_opts(op, optn) | ^ options.c:895:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 895 | set_duplicate_opt_detection(on_or_off) | ^ options.c:924:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 924 | duplicate_opt_detection(opts, bool_or_comp) | ^ options.c:968:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 968 | parseoptions(opts, tinitial, tfrom_file) | ^ options.c:2271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2271 | oc_to_str(src,dest) | ^ options.c:2290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2290 | add_menu_cmd_alias(from_ch, to_ch) | ^ options.c:2309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2309 | map_menu_cmd(ch) | ^ options.c:2331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2331 | doset_add_menu(win, option, indexoffset) | ^ options.c:2532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2532 | special_handling(optname, setinitial, setfromfile) | ^ options.c:2887:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2887 | get_compopt_value(optname, buf) | ^ options.c:3339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3339 | next_opt(datawin, str) | ^ options.c:3377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3377 | fruitadd(str) | ^ options.c:3479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3479 | choose_classes_menu(prompt, category, way, class_list, class_select) | ^ options.c:3608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3608 | set_option_mod_status(optnam, status) | ^ options.c:3641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3641 | set_wc_option_mod_status(optmask, status) | ^ options.c:3660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3660 | is_wc_option(optnam) | ^ options.c:3673:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3673 | wc_supported(optnam) | ^ options.c:3697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3697 | set_wc2_option_mod_status(optmask, status) | ^ options.c:3716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3716 | is_wc2_option(optnam) | ^ options.c:3729:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3729 | wc2_supported(optnam) | ^ options.c:3744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3744 | wc_set_font_name(wtype, fontname) | ^ options.c:3778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3778 | wc_set_window_colors(op) | ^ 40 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c pager.c In file included from pager.c:8: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from pager.c:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ pager.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 | is_swallow_sym(c) | ^ pager.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | append_str(buf, new_str) | ^ pager.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 | lookat(x, y, buf, monbuf) | ^ pager.c:302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | checkfile(inp, pm, user_typed_name, without_asking) | ^ pager.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | do_look(quick) | ^ pager.c:795:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 795 | dowhatdoes_core(q, cbuf) | ^ pager.c:886:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | help_menu(sel) | ^ 12 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c pickup.c In file included from pickup.c:9: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from pickup.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ pickup.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | simple_look(otmp, here) | ^ pickup.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 | collect_obj_classes(ilets, otmp, here, incl_gold, filter, itemcount) | ^ pickup.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | query_classes(oclasses, one_at_a_time, everything, action, objs, | ^ pickup.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | check_here(picked_some) | ^ pickup.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | n_or_more(obj) | ^ pickup.c:294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | add_valid_menu_class(c) | ^ pickup.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | all_but_uchain(obj) | ^ pickup.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | allow_all(obj) | ^ pickup.c:324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | allow_category(obj) | ^ pickup.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | is_worn_by_type(otmp) | ^ pickup.c:385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | pickup(what) | ^ pickup.c:627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | autopick(olist, follow, pick_list) | ^ pickup.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 | query_objlist(qstr, olist, qflags, pick_list, how, allow) | ^ pickup.c:784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | query_category(qstr, olist, qflags, pick_list, how) | ^ pickup.c:947:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 947 | count_categories(olist, qflags) | ^ pickup.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | carry_count(obj, container, count, telekinesis, wt_before, wt_after) | ^ pickup.c:1142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | lift_object(obj, container, cnt_p, telekinesis) | ^ pickup.c:1212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1212 | safe_qbuf(qbuf, padlength, planA, planB, last_resort) | ^ pickup.c:1238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1238 | pickup_object(obj, count, telekinesis) | ^ pickup.c:1373:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1373 | pick_obj(otmp) | ^ pickup.c:1445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1445 | container_at(x, y, countem) | ^ pickup.c:1463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1463 | able_to_loot(x, y) | ^ pickup.c:1491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1491 | mon_beside(x,y) | ^ pickup.c:1680:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1680 | loot_mon(mtmp, passed_info, prev_loot) | ^ pickup.c:1740:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1740 | mbag_explodes(obj, depthin) | ^ pickup.c:1769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1769 | in_container(obj) | ^ pickup.c:1919:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1919 | ck_bag(obj) | ^ pickup.c:1927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1927 | out_container(obj) | ^ pickup.c:2006:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2006 | mbag_item_gone(held, item) | ^ pickup.c:2028:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2028 | observe_quantum_cat(box) | ^ pickup.c:2071:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2071 | use_container(obj, held) | ^ pickup.c:2301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2301 | menu_loot(retry, container, put_in) | ^ pickup.c:2374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2374 | in_or_out_menu(prompt, obj, outokay, inokay) | ^ 38 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c pline.c In file included from pline.c:6: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from pline.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ pline.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | You_buf(siz) | ^ pline.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | align_str(alignment) | ^ pline.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | mstatusline(mtmp) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c polyself.c 8 warnings generated. In file included from polyself.c:13: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from polyself.c:13: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ polyself.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | polyman(fmt, arg) | ^ polyself.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 | polyself(forcecontrol) | ^ polyself.c:237:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 237 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:237:7: note: treat the string as an argument to avoid this 237 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ polyself.c:259:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 259 | if (tries==5) pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ polyself.c:259:23: note: treat the string as an argument to avoid this 259 | if (tries==5) pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ polyself.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | polymon(mntmp) /* returns 1 if polymorph successful */ | ^ polyself.c:677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | drop_weapon(alone) | ^ polyself.c:1116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1116 | skinback(silently) | ^ polyself.c:1132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1132 | mbodypart(mon, part) | ^ polyself.c:1245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1245 | body_part(part) | ^ polyself.c:1268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1268 | ugolemeffects(damtype, dam) | ^ polyself.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1296 | armor_to_dragon(atyp) | ^ 16 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c potion.c In file included from potion.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from potion.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ potion.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | itimeout(val) | ^ potion.c:31:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | itimeout_incr(old, incr) | ^ potion.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | set_itimeout(which, val) | ^ potion.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | incr_itimeout(which, incr) | ^ potion.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | make_confused(xtime,talk) | ^ potion.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | make_stunned(xtime,talk) | ^ potion.c: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 | make_sick(xtime, cause, talk, type) | ^ potion.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | make_vomiting(xtime, talk) | ^ potion.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | make_blinded(xtime, talk) | ^ potion.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | make_hallucinated(xtime, talk, mask) | ^ potion.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | dopotion(otmp) | ^ potion.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 | peffects(otmp) | ^ potion.c:907:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | healup(nhp, nxtra, curesick, cureblind) | ^ potion.c:927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | strange_feeling(obj,txt) | ^ potion.c:935:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 935 | pline(txt); | ^~~ potion.c:935:9: note: treat the string as an argument to avoid this 935 | pline(txt); | ^ | "%s", potion.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | potionhit(mon, obj, your_fault) | ^ potion.c:1182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1182 | potionbreathe(obj) | ^ potion.c:1283:33: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1283 | if (!Blind && !u.usleep) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ potion.c:1283:33: note: treat the string as an argument to avoid this 1283 | if (!Blind && !u.usleep) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ potion.c:1322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1322 | mixtype(o1, o2) | ^ potion.c:1420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1420 | get_wet(obj) | ^ potion.c:1636:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1636 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ potion.c:1636:9: note: treat the string as an argument to avoid this 1636 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ potion.c:1930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1930 | djinni_from_bottle(obj) | ^ potion.c:1978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1978 | split_mon(mon, mtmp) | ^ 28 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c pray.c In file included from pray.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from pray.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ pray.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | fix_worst_trouble(trouble) | ^ pray.c:465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | god_zaps_you(resp_god) | ^ pray.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 | fry_by_god(resp_god) | ^ pray.c:552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | angrygods(resp_god) | ^ pray.c:620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | at_your_feet(str) | ^ pray.c:787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | pleased(g_align) | ^ pray.c:1032:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | water_prayer(bless_water) | ^ pray.c:1061:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1061 | godvoice(g_align, words) | ^ pray.c:1076:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | gods_angry(g_align) | ^ pray.c:1084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | gods_upset(g_align) | ^ pray.c:1095:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1095 | consume_offering(otmp) | ^ pray.c:1320:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1320 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pray.c:1320:8: note: treat the string as an argument to avoid this 1320 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ pray.c:1506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1506 | can_pray(praying) | ^ pray.c:1753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1753 | a_gname_at(x,y) /* returns the name of an altar's deity */ | ^ pray.c:1768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1768 | align_gname(alignment) | ^ pray.c:1788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1788 | halu_gname(alignment) | ^ pray.c:1810:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1810 | align_gtitle(alignment) | ^ pray.c:1826:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1826 | altar_wrath(x, y) | ^ pray.c:1844:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1844 | blocked_boulder(dx,dy) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c priest.c In file included from priest.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from priest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ priest.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 | move_special(mtmp,in_his_shop,appr,uondoor,avoid,omx,omy,gx,gy) | ^ priest.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | temple_occupied(array) | ^ priest.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 | histemple_at(priest, x, y) | ^ priest.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | pri_move(priest) | ^ priest.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | priestini(lvl, sroom, sx, sy, sanctum) | ^ priest.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | priestname(mon, pname) | ^ priest.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | p_coaligned(priest) | ^ priest.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | has_shrine(pri) | ^ priest.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | findpriest(roomno) | ^ priest.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | intemple(roomno) | ^ priest.c:366:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 366 | verbalize(msg1); | ^~~~ priest.c:366:17: note: treat the string as an argument to avoid this 366 | verbalize(msg1); | ^ | "%s", priest.c:367:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 367 | if (msg2) verbalize(msg2); | ^~~~ priest.c:367:27: note: treat the string as an argument to avoid this 367 | if (msg2) verbalize(msg2); | ^ | "%s", priest.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] 404 | priest_talk(priest) | ^ priest.c:436:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 436 | verbalize(cranky_msg[rn2(3)]); | ^~~~~~~~~~~~~~~~~~ priest.c:436:16: note: treat the string as an argument to avoid this 436 | verbalize(cranky_msg[rn2(3)]); | ^ | "%s", priest.c:534:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | mk_roamer(ptr, alignment, x, y, peaceful) | ^ priest.c:566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | reset_hostility(roamer) | ^ priest.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | in_your_sanctuary(mon, x, y) | ^ priest.c:605:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | ghod_hitsu(priest) /* when attacking "priest" in his temple */ | ^ priest.c:709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | restpriest(mtmp, ghostly) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c quest.c In file included from quest.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from quest.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ quest.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | is_pure(talk) | ^ quest.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | expulsion(seal) | ^ quest.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 | finish_quest(obj) | ^ quest.c:273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | leader_speaks(mtmp) | ^ quest.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | prisoner_speaks (mtmp) | ^ quest.c:348:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | quest_chat(mtmp) | ^ quest.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | quest_talk(mtmp) | ^ quest.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | quest_stat_check(mtmp) | ^ 13 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c questpgr.c In file included from questpgr.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from questpgr.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ questpgr.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | Fread(ptr, size, nitems, stream) | ^ questpgr.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 | construct_qtlist(hdr_offset) | ^ questpgr.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 | quest_info(typ) | ^ questpgr.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | is_quest_artifact(otmp) | ^ questpgr.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | msg_in(qtm_list, msgnum) | ^ questpgr.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | convert_arg(c) | ^ questpgr.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | deliver_by_pline(qt_msg) | ^ questpgr.c:367:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 367 | pline(out_line); | ^~~~~~~~ questpgr.c:367:12: note: treat the string as an argument to avoid this 367 | pline(out_line); | ^ | "%s", questpgr.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 | deliver_by_window(qt_msg, how) | ^ questpgr.c:390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | com_pager(msgnum) | ^ questpgr.c:408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | qt_pager(msgnum) | ^ 16 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c read.c In file included from read.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from read.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ read.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | stripspe(obj) | ^ read.c:159:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 159 | if (obj->blessed) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:159:26: note: treat the string as an argument to avoid this 159 | if (obj->blessed) pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:166:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 166 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:166:16: note: treat the string as an argument to avoid this 166 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.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 | p_glow1(otmp) | ^ read.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | p_glow2(otmp,color) | ^ read.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 | is_chargeable(obj) | ^ read.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | recharge(obj, curse_bless) | ^ read.c:323:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 323 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:323:10: note: treat the string as an argument to avoid this 323 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:381:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 381 | } else pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:381:20: note: treat the string as an argument to avoid this 381 | } else pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.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 | forget_single_object(obj_id) | ^ read.c:464:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | randomize(indices, count) | ^ read.c:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | forget_objects(percent) | ^ read.c:509:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | forget_map(howmuch) | ^ read.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | forget_levels(percent) | ^ read.c:601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | forget(howmuch) | ^ read.c:632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | maybe_tame(mtmp, sobj) | ^ read.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 | seffects(sobj) | ^ read.c:1287:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1287 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1287:13: note: treat the string as an argument to avoid this 1287 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ read.c:1305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1305 | wand_explode(obj) | ^ read.c:1320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1320 | set_lit(x,y,val) | ^ read.c:1333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1333 | litroom(on,obj) | ^ read.c:1436:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1436 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1436:10: note: treat the string as an argument to avoid this 1436 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ read.c:1584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1584 | do_genocide(how) | ^ read.c:1605:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1605 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1605:13: note: treat the string as an argument to avoid this 1605 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ read.c:1728:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1728 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1728:9: note: treat the string as an argument to avoid this 1728 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ read.c:1733:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1733 | punish(sobj) | ^ read.c:1781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1781 | cant_create(mtype, revival) | ^ read.c:1848:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1848 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read.c:1848:12: note: treat the string as an argument to avoid this 1848 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ 33 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c rect.c In file included from rect.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from rect.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ rect.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | get_rect_ind(r) | ^ rect.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | get_rect(r) | ^ rect.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | intersect(r1, r2, r3) | ^ rect.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | remove_rect(r) | ^ rect.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | add_rect(r) | ^ rect.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | split_rects(r1, r2) | ^ 11 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c region.c In file included from region.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from region.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from region.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ region.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | inside_rect(r, x, y) | ^ region.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 | inside_region(reg, x, y) | ^ region.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | create_region(rects, nrect) | ^ region.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 | add_rect_to_reg(reg, rect) | ^ region.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 | add_mon_to_reg(reg, mon) | ^ region.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | remove_mon_from_reg(reg, mon) | ^ region.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 | mon_in_region(reg, mon) | ^ region.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | free_region(reg) | ^ region.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | add_region(reg) | ^ region.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | remove_region(reg) | ^ region.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | in_out_region(x, y) | ^ region.c:448:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 448 | pline(regions[i]->leave_msg); | ^~~~~~~~~~~~~~~~~~~~~ region.c:448:9: note: treat the string as an argument to avoid this 448 | pline(regions[i]->leave_msg); | ^ | "%s", region.c:459:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 459 | pline(regions[i]->enter_msg); | ^~~~~~~~~~~~~~~~~~~~~ region.c:459:9: note: treat the string as an argument to avoid this 459 | pline(regions[i]->enter_msg); | ^ | "%s", region.c:470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | m_in_out_region(mon, x, y) | ^ region.c:533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | update_monster_region(mon) | ^ region.c:591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | visible_region_at(x, y) | ^ region.c:604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | show_region(reg, x, y) | ^ region.c:615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | save_regions(fd, mode) | ^ region.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | rest_regions(fd, ghostly) | ^ region.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 | reset_region_mids(reg) | ^ region.c:876:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | expire_gas_cloud(p1, p2) | ^ region.c:884:14: warning: cast to smaller integer type 'int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 884 | damage = (int) reg->arg; | ^~~~~~~~~~~~~~ region.c:889:13: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 889 | reg->arg = (genericptr_t) damage; | ^~~~~~~~~~~~~~~~~~~~~ region.c:897:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | inside_gas_cloud(p1, p2) | ^ region.c:906:11: warning: cast to smaller integer type 'int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 906 | dam = (int) reg->arg; | ^~~~~~~~~~~~~~ region.c:951:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 951 | create_gas_cloud(x, y, radius, damage) | ^ region.c:978:18: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 978 | cloud->arg = (genericptr_t) damage; | ^~~~~~~~~~~~~~~~~~~~~ 32 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c restore.c In file included from restore.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from restore.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ restore.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 | inven_inuse(quietly) | ^ restore.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | restlevchn(fd) | ^ restore.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 | restdamage(fd, ghostly) | ^ restore.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 | restobjchn(fd, ghostly, frozen) | ^ restore.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | restmonchn(fd, ghostly) | ^ restore.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 | loadfruitchn(fd) | ^ restore.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | freefruitchn(flist) | ^ restore.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | ghostfruit(otmp) | ^ restore.c:357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | restgamestate(fd, stuckid, steedid) | ^ restore.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 | restlevelstate(stuckid, steedid) | ^ restore.c:482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | restlevelfile(fd, ltmp) | ^ restore.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | dorecover(fd) | ^ restore.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 | trickery(reason) | ^ restore.c:696:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | getlev(fd, pid, lev, ghostly) | ^ restore.c:740:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 740 | if (wizard) pline(trickbuf); | ^~~~~~~~ restore.c:740:24: note: treat the string as an argument to avoid this 740 | if (wizard) pline(trickbuf); | ^ | "%s", restore.c:922:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | add_id_mapping(gid, nid) | ^ restore.c:947:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 947 | lookup_id_mapping(gid, nidp) | ^ restore.c:973:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | reset_oattached_mids(ghostly) | ^ restore.c:1068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1068 | mread(fd, buf, len) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c rip.c In file included from rip.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from rip.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ rip.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | center(line, text) | ^ rip.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | genl_outrip(tmpwin, how) | ^ 7 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c rnd.c In file included from rnd.c:4: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from rnd.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ rnd.c:22:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | rn2(x) /* 0 <= rn2(x) < x */ | ^ rnd.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | rnl(x) /* 0 <= rnl(x) < x; sometimes subtracting Luck */ | ^ rnd.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | rnd(x) /* 1 <= rnd(x) <= x */ | ^ rnd.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | d(n,x) /* n <= d(n,x) <= (n*x) */ | ^ rnd.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | rne(x) | ^ rnd.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | rnz(i) | ^ 11 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c role.c In file included from role.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from role.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from role.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ role.c:514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | validrole(rolenum) | ^ role.c:529:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | str2role(str) | ^ role.c:562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | validrace(rolenum, racenum) | ^ role.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | randrace(rolenum) | ^ role.c:597:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 597 | str2race(str) | ^ role.c:627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | validgend(rolenum, racenum, gendnum) | ^ role.c:638:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | randgend(rolenum, racenum) | ^ role.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | str2gend(str) | ^ role.c:693:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 693 | validalign(rolenum, racenum, alignnum) | ^ role.c:704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | randalign(rolenum, racenum) | ^ role.c:730:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | str2align(str) | ^ role.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | ok_role(rolenum, racenum, gendnum, alignnum) | ^ role.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | pick_role(racenum, gendnum, alignnum, pickhow) | ^ role.c:825:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 825 | ok_race(rolenum, racenum, gendnum, alignnum) | ^ role.c:865:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | pick_race(rolenum, gendnum, alignnum, pickhow) | ^ role.c:892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 892 | ok_gend(rolenum, racenum, gendnum, alignnum) | ^ role.c:927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | pick_gend(rolenum, racenum, alignnum, pickhow) | ^ role.c:954:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | ok_align(rolenum, racenum, gendnum, alignnum) | ^ role.c:989:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 989 | pick_align(rolenum, racenum, gendnum, pickhow) | ^ role.c:1056:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | promptsep(buf, num_post_attribs) | ^ role.c:1071:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1071 | role_gendercount(rolenum) | ^ role.c:1084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | race_alignmentcount(racenum) | ^ role.c:1097:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | root_plselection_prompt(suppliedbuf, buflen, rolenum, racenum, gendnum, alignnum) | ^ role.c:1232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | build_plselection_prompt(buf, buflen, rolenum, racenum, gendnum, alignnum) | ^ role.c:1448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | Hello(mtmp) | ^ 30 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c rumors.c In file included from rumors.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from rumors.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ rumors.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | init_rumors(fp) | ^ rumors.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | getrumor(truth, rumor_buf, exclude_cookie) | ^ rumors.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 | outrumor(truth, mechanism) | ^ rumors.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | init_oracles(fp) | ^ rumors.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 | save_oracles(fd, mode) | ^ rumors.c:222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | restore_oracles(fd) | ^ rumors.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | outoracle(special, delphi) | ^ rumors.c:287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | doconsult(oracl) | ^ 13 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c save.c In file included from save.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from save.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ save.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | hangup(sig_unused) /* called as signal() handler, so sent at least one arg */ | ^ save.c:273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | savegamestate(fd, mode) | ^ save.c:435:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | savelev(fd,lev,mode) | ^ save.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | bufon(fd) | ^ save.c:714:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | bufoff(fd) | ^ save.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | bflush(fd) | ^ save.c:735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | bwrite(fd,loc,num) | ^ save.c:775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | bclose(fd) | ^ save.c:792:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | savelevchn(fd, mode) | ^ save.c:814:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | savedamage(fd, mode) | ^ save.c:839:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 839 | saveobjchn(fd, otmp, mode) | ^ save.c:871:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | savemonchn(fd, mtmp, mode) | ^ save.c:901:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | savetrapchn(fd, trap, mode) | ^ save.c:925:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | savefruitchn(fd, mode) | ^ 19 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c shk.c In file included from shk.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from shk.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ shk.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | next_shkp(shkp, withbill) | ^ shk.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 | shkname(mtmp) /* called in do_name.c */ | ^ shk.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | shkgone(mtmp) /* called in mon.c */ | ^ shk.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | set_residency(shkp, zero_out) | ^ shk.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | replshk(mtmp,mtmp2) | ^ shk.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | restshk(shkp, ghostly) | ^ shk.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | clear_unpaid(list) | ^ shk.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | setpaid(shkp) | ^ shk.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | addupbill(shkp) | ^ shk.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | call_kops(shkp, nearshop) | ^ shk.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | inside_shop(x, y) | ^ shk.c:394:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | u_left_shop(leavestring, newlev) | ^ shk.c:443:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | remote_burglary(x, y) | ^ shk.c:470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | rob_shop(shkp) | ^ shk.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | u_entered_shop(enterstring) | ^ shk.c:625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | same_price(obj1, obj2) | ^ shk.c:657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | shop_debt(eshkp) | ^ shk.c:709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | inhishop(mtmp) | ^ shk.c:718:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | shop_keeper(rmno) | ^ shk.c:735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | tended_shop(sroom) | ^ shk.c:747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | onbill(obj, shkp, silent) | ^ shk.c:768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 768 | delete_contents(obj) | ^ shk.c:781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | obfree(obj, merge) | ^ shk.c:842:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 842 | check_credit(tmp, shkp) | ^ shk.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | pay(tmp,shkp) | ^ shk.c:888:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 888 | home_shk(shkp, killkops) | ^ shk.c:920:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 920 | pacify_shk(shkp) | ^ shk.c:939:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 939 | rile_shk(shkp) | ^ shk.c:958:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | rouse_shk(shkp, verbosely) | ^ shk.c:974:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | make_happy_shk(shkp, silentkops) | ^ shk.c:1019:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | hot_pursuit(shkp) | ^ shk.c:1035:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1035 | make_angry_shk(shkp, ox, oy) | ^ shk.c:1076:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | cheapest_item(shkp) /* delivers the cheapest item on the list */ | ^ shk.c:1348:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1348 | pline(sbuf); | ^~~~ shk.c:1348:9: note: treat the string as an argument to avoid this 1348 | pline(sbuf); | ^ | "%s", shk.c:1488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | dopayobj(shkp, bp, obj_p, which, itemize) | ^ shk.c:1597:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1597 | paybill(croaked) | ^ shk.c:1636:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1636 | inherits(shkp, numsk, croaked) | ^ shk.c:1747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1747 | set_repo_loc(eshkp) | ^ shk.c:1798:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1798 | bp_to_obj(bp) | ^ shk.c:1817:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1817 | find_oid(id) | ^ shk.c:1846:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1846 | get_cost(obj, shkp) | ^ shk.c:1930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1930 | contained_cost(obj, shkp, price, usell, unpaid_only) | ^ shk.c:1963:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1963 | contained_gold(obj) | ^ shk.c:1980:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1980 | dropped_container(obj, shkp, sale) | ^ shk.c:2000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2000 | picked_container(obj) | ^ shk.c:2021:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2021 | set_cost(obj, shkp) | ^ shk.c:2059:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2059 | unpaid_cost(unp_obj) | ^ shk.c:2076:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2076 | add_one_tobill(obj, dummy) | ^ shk.c:2119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2119 | add_to_billobjs(obj) | ^ shk.c:2134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2134 | bill_box_content(obj, ininv, dummy, shkp) | ^ shk.c:2155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2155 | shk_names_obj(shkp, obj, fmt, amt, arg) | ^ shk.c:2190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2190 | addtobill(obj, ininv, dummy, silent) | ^ shk.c:2298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2298 | splitbill(obj, otmp) | ^ shk.c:2336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2336 | sub_one_frombill(obj, shkp) | ^ shk.c:2379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2379 | subfrombill(obj, shkp) | ^ shk.c:2402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2402 | stolen_container(obj, shkp, price, ininv) | ^ shk.c:2444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2444 | stolen_value(obj, x, y, peaceful, silent) | ^ shk.c:2526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2526 | sellobj_state(deliberate) | ^ shk.c:2541:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2541 | sellobj(obj, x, y) | ^ shk.c:2759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2759 | doinvbill(mode) | ^ shk.c:2847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2847 | getprice(obj, shk_buying) | ^ shk.c:2885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2885 | shkcatch(obj, x, y) | ^ shk.c:2919:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2919 | add_damage(x, y, cost) | ^ shk.c:2967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2967 | remove_damage(shkp, croaked) | ^ shk.c:3062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3062 | repair_damage(shkp, tmp_dam, catchup) | ^ shk.c:3194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3194 | shk_move(shkp) | ^ shk.c:3305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3305 | after_shk_move(shkp) | ^ shk.c:3322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3322 | is_fshk(mtmp) | ^ shk.c:3330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3330 | shopdig(fall) | ^ shk.c:3419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3419 | makekops(mm) | ^ shk.c:3445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3445 | pay_for_damage(dmgstr, cant_mollify) | ^ shk.c:3604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3604 | costly_spot(x, y) | ^ shk.c:3623:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3623 | shop_object(x, y) | ^ shk.c:3643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3643 | price_quote(first_obj) | ^ shk.c:3692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3692 | shk_embellish(itm, cost) | ^ shk.c:3737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3737 | shk_chat(shkp) | ^ shk.c:3804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3804 | kops_gone(silent) | ^ shk.c:3827:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3827 | cost_per_charge(shkp, otmp, altusage) | ^ shk.c:3887:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3887 | check_unpaid_usage(otmp, altusage) | ^ shk.c:3924:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3924 | check_unpaid(otmp) | ^ shk.c:3931:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3931 | costly_gold(x, y, amount) | ^ shk.c:3968:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3968 | block_door(x,y) | ^ shk.c:4000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4000 | block_entry(x,y) | ^ shk.c:4040:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4040 | shk_your(buf, obj) | ^ shk.c:4050:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4050 | Shk_Your(buf, obj) | ^ shk.c:4060:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4060 | shk_owns(buf, obj) | ^ shk.c:4077:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4077 | mon_owns(buf, obj) | ^ 92 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c shknam.c In file included from shknam.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from shknam.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ shknam.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | mkshobj_at(shp, sx, sy) | ^ shknam.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | nameshk(shk, nlp) | ^ shknam.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | shkinit(shp, sroom) /* create a new shopkeeper in the given room */ | ^ shknam.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 | stock_room(shp_indx, sroom) | ^ shknam.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 | saleable(shkp, obj) | ^ shknam.c:515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | get_shop_item(type) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c sit.c 11 warnings generated. In file included from sit.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from sit.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c sounds.c In file included from sounds.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from sounds.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ sounds.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 | mon_in_room(mon, rmtyp) | ^ sounds.c:56:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 56 | You_hear(fountain_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:56:11: note: treat the string as an argument to avoid this 56 | You_hear(fountain_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:65:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 65 | You_hear(sink_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:65:11: note: treat the string as an argument to avoid this 65 | You_hear(sink_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:84:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 84 | if (which != 2) You_hear(throne_msg[which]); | ^~~~~~~~~~~~~~~~~ sounds.c:84:28: note: treat the string as an argument to avoid this 84 | if (which != 2) You_hear(throne_msg[which]); | ^ | "%s", sounds.c:96:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 96 | You(swamp_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:96:6: note: treat the string as an argument to avoid this 96 | You(swamp_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:204:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 204 | You_hear(barracks_msg[rn2(3)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sounds.c:204:12: note: treat the string as an argument to avoid this 204 | You_hear(barracks_msg[rn2(3)+hallu]); | ^ | "%s", sounds.c:219:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 219 | You_hear(zoo_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~ sounds.c:219:12: note: treat the string as an argument to avoid this 219 | You_hear(zoo_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:237:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 237 | You_hear(shop_msg[rn2(2)+hallu]); | ^~~~~~~~~~~~~~~~~~~~~~ sounds.c:237:15: note: treat the string as an argument to avoid this 237 | You_hear(shop_msg[rn2(2)+hallu]); | ^ | "%s", sounds.c:255:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 255 | You_hear(ora_msg[rn2(3)+hallu*2]); | ^~~~~~~~~~~~~~~~~~~~~~~ sounds.c:255:15: note: treat the string as an argument to avoid this 255 | You_hear(ora_msg[rn2(3)+hallu*2]); | ^ | "%s", sounds.c:270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | growl_sound(mtmp) | ^ sounds.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 | growl(mtmp) | ^ sounds.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | yelp(mtmp) | ^ sounds.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | whimper(mtmp) | ^ sounds.c:408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | beg(mtmp) | ^ sounds.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 | domonnoise(mtmp) | ^ sounds.c:819:35: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 819 | else if (verbl_msg) verbalize(verbl_msg); | ^~~~~~~~~ sounds.c:819:35: note: treat the string as an argument to avoid this 819 | else if (verbl_msg) verbalize(verbl_msg); | ^ | "%s", 21 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c sp_lev.c In file included from sp_lev.c:12: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from sp_lev.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ sp_lev.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | set_wall_property(x1,y1,x2,y2, prop) | ^ sp_lev.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 | get_location(x, y, humidity) | ^ sp_lev.c:210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | is_ok_location(x, y, humidity) | ^ sp_lev.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 | sp_lev_shuffle(list1, list2, n) | ^ sp_lev.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 | get_room_loc(x,y, croom) | ^ sp_lev.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 | get_free_room_loc(x,y, croom) | ^ sp_lev.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | check_room(lowx, ddx, lowy, ddy, vault) | ^ sp_lev.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | create_room(x,y,w,h,xal,yal,rtype,rlit) | ^ sp_lev.c:533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | create_subroom(proom, x, y, w, h, rtype, rlit) | ^ sp_lev.c:582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | create_door(dd, broom) | ^ sp_lev.c:666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | create_secret_door(croom, walls) | ^ sp_lev.c:708:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | create_trap(t,croom) | ^ sp_lev.c:735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | noncoalignment(alignment) | ^ sp_lev.c:747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | create_monster(m,croom) | ^ sp_lev.c:908:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | create_object(o,croom) | ^ sp_lev.c:1046:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | create_engraving(e, croom) | ^ sp_lev.c:1068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1068 | create_stairs(s,croom) | ^ sp_lev.c:1084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | create_altar(a, croom) | ^ sp_lev.c:1154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1154 | create_gold(g,croom) | ^ sp_lev.c:1176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1176 | create_feature(fx, fy, croom, typ) | ^ sp_lev.c:1217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1217 | search_door(croom,x,y,wall,cnt) | ^ sp_lev.c:1270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1270 | dig_corridor(org,dest,nxcor,ftyp,btyp) | ^ sp_lev.c:1420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1420 | create_corridor(c) | ^ sp_lev.c:1462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1462 | fill_room(croom, prefilled) | ^ sp_lev.c:1523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1523 | free_rooms(ro, n) | ^ sp_lev.c:1595:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1595 | build_room(r, pr) | ^ sp_lev.c:1676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1676 | light_region(tmpregion) | ^ sp_lev.c:1705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1705 | load_common_data(fd, typ) | ^ sp_lev.c:1753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1753 | load_one_monster(fd, m) | ^ sp_lev.c:1775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1775 | load_one_object(fd, o) | ^ sp_lev.c:1791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1791 | load_one_engraving(fd, e) | ^ sp_lev.c:1805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1805 | load_rooms(fd) | ^ sp_lev.c:2035:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2035 | maze1xy(m, humidity) | ^ sp_lev.c:2061:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2061 | load_maze(fd) | ^ sp_lev.c:2631:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2631 | load_special(name) | ^ 40 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c spell.c In file included from spell.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from spell.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ spell.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | spell_let_to_idx(ilet) | ^ spell.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | cursed_book(bp) | ^ spell.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | confused_book(spellbook) | ^ spell.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | deadbook(book2) | ^ spell.c:390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | study_book(spellbook) | ^ spell.c:500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | book_disappears(obj) | ^ spell.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | book_substitution(old_obj, new_obj) | ^ spell.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | getspell(spell_no) | ^ spell.c:591:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | spelltypemnemonic(skill) | ^ spell.c:616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | spell_skilltype(booktype) | ^ spell.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 | spell_backfire(spell) | ^ spell.c:713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | spelleffects(spell, atme) | ^ spell.c:951:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 951 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spell.c:951:10: note: treat the string as an argument to avoid this 951 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ spell.c:1048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | dospellmenu(prompt, splaction, spell_no) | ^ spell.c:1119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1119 | isqrt(val) | ^ spell.c:1133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1133 | percent_success(spell) | ^ spell.c:1242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1242 | initialspell(obj) | ^ 22 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c steal.c In file included from steal.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from steal.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ steal.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | equipname(otmp) | ^ steal.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | stealgold(mtmp) | ^ steal.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | remove_worn_item(obj, unchain_ball) | ^ steal.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 | steal(mtmp, objnambuf) | ^ steal.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | mpickobj(mtmp,otmp) | ^ steal.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | stealamulet(mtmp) | ^ steal.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | mdrop_obj(mon, obj, verbosely) | ^ steal.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | mdrop_special_objs(mon) | ^ steal.c:576:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | relobj(mtmp,show,is_pet) | ^ 14 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c steed.c In file included from steed.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from steed.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from steed.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ steed.c:28:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | can_saddle(mtmp) | ^ steed.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | use_saddle(otmp) | ^ steed.c:61:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 61 | pline(Never_mind); | ^~~~~~~~~~ ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ steed.c:61:12: note: treat the string as an argument to avoid this 61 | pline(Never_mind); | ^ | "%s", ../include/decl.h:306:23: note: expanded from macro 'Never_mind' 306 | #define Never_mind c_common_strings.c_Never_mind | ^ steed.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 | can_ride(mtmp) | ^ steed.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | mount_steed(mtmp, force) | ^ steed.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | landing_spot(spot, reason, forceit) | ^ steed.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 | dismount_steed(reason) | ^ steed.c:624:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | place_monster(mon, x, y) | ^ 13 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c teleport.c In file included from teleport.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from teleport.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ teleport.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 | goodpos(x, y, mtmp, gpflags) | ^ teleport.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | enexto(cc, xx, yy, mdat) | ^ teleport.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | enexto_core(cc, xx, yy, mdat, entflags) | ^ teleport.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | tele_jump_ok(x1, y1, x2, y2) | ^ teleport.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | teleok(x, y, trapok) | ^ teleport.c:230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | teleds(nux, nuy, allow_drag) | ^ teleport.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | safe_teleds(allow_drag) | ^ teleport.c:367:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | teleport_pet(mtmp, force_it) | ^ teleport.c:555:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 555 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:555:7: note: treat the string as an argument to avoid this 555 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:666:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 666 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:666:7: note: treat the string as an argument to avoid this 666 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:683:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 683 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:683:7: note: treat the string as an argument to avoid this 683 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:689:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 689 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:689:7: note: treat the string as an argument to avoid this 689 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 809 | domagicportal(ttmp) | ^ teleport.c:815:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 815 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:815:7: note: treat the string as an argument to avoid this 815 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:841:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 841 | tele_trap(trap) | ^ teleport.c:849:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 849 | You(shudder_for_moment); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ teleport.c:849:7: note: treat the string as an argument to avoid this 849 | You(shudder_for_moment); | ^ | "%s", ../include/decl.h:302:28: note: expanded from macro 'shudder_for_moment' 302 | #define shudder_for_moment c_common_strings.c_shudder_for_moment | ^ teleport.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | level_tele_trap(trap) | ^ teleport.c:883:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | rloc_pos_ok(x, y, mtmp) | ^ teleport.c:935:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | rloc_to(mtmp, x, y) | ^ teleport.c:980:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | rloc(mtmp, suppress_impossible) | ^ teleport.c:1033:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1033 | mvault_tele(mtmp) | ^ teleport.c:1048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | tele_restrict(mon) | ^ teleport.c:1061:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1061 | mtele_trap(mtmp, trap, in_sight) | ^ teleport.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | mlevel_tele_trap(mtmp, trap, force_it, in_sight) | ^ teleport.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | rloco(obj) | ^ teleport.c:1268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1268 | u_teleport_mon(mtmp, give_feedback) | ^ 31 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c timeout.c In file included from timeout.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from timeout.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ timeout.c:34:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 34 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:34:9: note: treat the string as an argument to avoid this 34 | pline(stoned_texts[SIZE(stoned_texts) - i]); | ^ | "%s", timeout.c:58:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 58 | You(vomiting_texts[SIZE(vomiting_texts) - i - 1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:58:7: note: treat the string as an argument to avoid this 58 | You(vomiting_texts[SIZE(vomiting_texts) - i - 1]); | ^ | "%s", timeout.c:105:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 105 | pline(str); | ^~~ timeout.c:105:13: note: treat the string as an argument to avoid this 105 | pline(str); | ^ | "%s", timeout.c:135:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 135 | pline(str); | ^~~ timeout.c:135:9: note: treat the string as an argument to avoid this 135 | pline(str); | ^ | "%s", timeout.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | fall_asleep(how_long, wakeup_msg) | ^ timeout.c:380:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | attach_egg_hatch_timeout(egg) | ^ timeout.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | kill_egg(egg) | ^ timeout.c:414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | hatch_egg(arg, timeout) | ^ timeout.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | learn_egg_type(mnum) | ^ timeout.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | attach_fig_transform_timeout(figurine) | ^ timeout.c:702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | see_lamp_flicker(obj, tailer) | ^ timeout.c:719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | lantern_message(obj) | ^ timeout.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | burn_object(arg, timeout) | ^ timeout.c:1043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | begin_burn(obj, already_lit) | ^ timeout.c:1136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1136 | end_burn(obj, timer_attached) | ^ timeout.c:1165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | cleanup_burn(arg, expire_time) | ^ timeout.c:1329:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1329 | kind_name(kind) | ^ timeout.c:1342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1342 | print_queue(win, base) | ^ timeout.c:1441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1441 | start_timer(when, kind, func_index, arg) | ^ timeout.c:1475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1475 | stop_timer(func_index, arg) | ^ timeout.c:1501:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1501 | obj_move_timers(src, dest) | ^ timeout.c:1523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1523 | obj_split_timers(src, dest) | ^ timeout.c:1543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1543 | obj_stop_timers(obj) | ^ timeout.c:1569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1569 | insert_timer(gnu) | ^ timeout.c:1586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1586 | remove_timer(base, func_index, arg) | ^ timeout.c:1608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1608 | write_timer(fd, timer) | ^ timeout.c:1627:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 1627 | timer->arg = (genericptr_t)((struct obj *)timer->arg)->o_id; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1641:16: warning: cast to 'genericptr_t' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 1641 | timer->arg = (genericptr_t)((struct monst *)timer->arg)->m_id; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout.c:1661:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1661 | obj_is_local(obj) | ^ timeout.c:1682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1682 | mon_is_local(mon) | ^ timeout.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1701 | timer_is_local(timer) | ^ timeout.c:1720:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1720 | maybe_write_timer(fd, range, write_it) | ^ timeout.c:1765:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1765 | save_timers(fd, mode, range) | ^ timeout.c:1804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1804 | restore_timers(fd, range, ghostly, adjust) | ^ timeout.c:1829:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1829 | relink_timers(ghostly) | ^ timeout.c:1839:30: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1839 | if (!lookup_id_mapping((unsigned)curr->arg, &nid)) | ^~~~~~~~~~~~~~~~~~~ timeout.c:1842:13: warning: cast to smaller integer type 'unsigned int' from 'genericptr_t' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1842 | nid = (unsigned) curr->arg; | ^~~~~~~~~~~~~~~~~~~~ 42 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c topten.c In file included from topten.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from topten.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ topten.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | topten_print(x) | ^ topten.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | topten_print_bold(x) | ^ topten.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | observable_depth(lev) | ^ topten.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | readentry(rfile,tt) | ^ topten.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | writeentry(rfile,tt) | ^ topten.c:230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | free_ttlist(tt) | ^ topten.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | topten(how) | ^ topten.c:554:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | outentry(rank, t1, so) | ^ topten.c:697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | score_wanted(current_ver, rank, t1, playerct, players, uid) | ^ topten.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | prscore(argc,argv) | ^ topten.c:885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | classmon(plch, fem) | ^ topten.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | tt_oname(otmp) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c track.c 17 warnings generated. In file included from track.c:6: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from track.c:6: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ track.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | gettrack(x, y) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c trap.c 6 warnings generated. In file included from trap.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from trap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ trap.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | burnarmor(victim) | ^ trap.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | rust_dmg(otmp, ostr, type, print, victim) | ^ trap.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | grease_protect(otmp,ostr,victim) | ^ trap.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | maketrap(x,y,typ) | ^ trap.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 | fall_through(td) | ^ trap.c:362:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 362 | You(dont_fall); | ^~~~~~~~~ trap.c:362:10: note: treat the string as an argument to avoid this 362 | You(dont_fall); | ^ | "%s", trap.c:402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | animate_statue(statue, x, y, cause, fail_reason) | ^ trap.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | activate_statue_trap(trap, x, y, shatter) | ^ trap.c:554:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | keep_saddle_with_steedcorpse(steed_mid, objchn, saddle) | ^ trap.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 | dotrap(trap, trflags) | ^ trap.c:1191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1191 | steedintrap(trap, otmp) | ^ trap.c:1283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1283 | blow_up_landmine(trap) | ^ trap.c:1311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1311 | launch_obj(otyp, x1, y1, x2, y2, style) | ^ trap.c:1546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1546 | seetrap(trap) | ^ trap.c:1559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1559 | mkroll_launch(ttmp, x, y, otyp, ocount) | ^ trap.c:1621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1621 | isclearpath(cc,distance,dx,dy) | ^ trap.c:1646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1646 | mintrap(mtmp) | ^ trap.c:2165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2165 | instapetrify(str) | ^ trap.c:2178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2178 | minstapetrify(mon,byplayer) | ^ trap.c:2201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2201 | selftouch(arg) | ^ trap.c:2224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2224 | mselftouch(mon,arg,byplayer) | ^ trap.c:2290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2290 | fill_pit(x, y) | ^ trap.c:2305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2305 | float_down(hmask, emask) | ^ trap.c:2430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2430 | dofiretrap(box) | ^ trap.c:2501:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2501 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trap.c:2501:20: note: treat the string as an argument to avoid this 2501 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ trap.c:2588:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2588 | fire_damage(chain, force, here, x, y) | ^ trap.c:2682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2682 | water_damage(obj, force, here) | ^ trap.c:2753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2753 | emergency_disrobe(lostsome) | ^ trap.c:2964:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2964 | drain_en(n) | ^ trap.c:3004:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3004 | untrap_prob(ttmp) | ^ trap.c:3027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3027 | cnv_trap_obj(otyp, cnt, ttmp) | ^ trap.c:3048:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3048 | move_into_trap(ttmp) | ^ trap.c:3075:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3075 | try_disarm(ttmp, force_failure) | ^ trap.c:3161:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3161 | reward_untrap(ttmp, mtmp) | ^ trap.c:3184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3184 | disarm_holdingtrap(ttmp) /* Helge Hafting */ | ^ trap.c:3216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3216 | disarm_landmine(ttmp) /* Helge Hafting */ | ^ trap.c:3232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3232 | disarm_squeaky_board(ttmp) | ^ trap.c:3266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3266 | disarm_shooting_trap(ttmp, otyp) | ^ trap.c:3281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3281 | try_lift(mtmp, ttmp, wt, stuff) | ^ trap.c:3306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3306 | help_monster_out(mtmp, ttmp) | ^ trap.c:3396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3396 | untrap(force) | ^ trap.c:3600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3600 | chest_trap(obj, bodypart, disarm) | ^ trap.c:3781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3781 | t_at(x,y) | ^ trap.c:3796:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3796 | deltrap(trap) | ^ trap.c:3811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3811 | delfloortrap(ttmp) | ^ trap.c:3845:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3845 | b_trapped(item, bodypart) | ^ trap.c:3863:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3863 | thitm(tlev, mon, obj, d_override, nocorpse) | ^ 52 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c u_init.c In file included from u_init.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from u_init.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ u_init.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | knows_object(obj) | ^ u_init.c:507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | knows_class(sym) | ^ u_init.c:850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | restricted_spell_discipline(otyp) | ^ u_init.c:883:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | ini_inv(trop) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c uhitm.c In file included from uhitm.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from uhitm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ uhitm.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 | hurtmarmor(mdef, attk) | ^ uhitm.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | attack_checks(mtmp, wep) | ^ uhitm.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 | check_caitiff(mtmp) | ^ uhitm.c:230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | find_roll_to_hit(mtmp) | ^ uhitm.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | attack(mtmp) | ^ uhitm.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 | known_hitum(mon, mhit, uattk) /* returns TRUE if monster still lives */ | ^ uhitm.c:472:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | hitum(mon, tmp, uattk) /* returns TRUE if monster still lives */ | ^ uhitm.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | hmon(mon, obj, thrown) /* return TRUE if mon still alive */ | ^ uhitm.c:506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | hmon_hitmon(mon, obj, thrown) | ^ uhitm.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | shade_aware(obj) | ^ uhitm.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | m_slips_free(mdef, mattk) | ^ uhitm.c:1135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1135 | joust(mon, obj) | ^ uhitm.c:1196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1196 | steal_it(mdef, mattk) | ^ uhitm.c:1275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | damageum(mdef, mattk) | ^ uhitm.c:1657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1657 | explum(mdef, mattk) | ^ uhitm.c:1713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1713 | start_engulf(mdef) | ^ uhitm.c:1736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1736 | gulpum(mdef,mattk) | ^ uhitm.c:1917:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1917 | missum(mdef,mattk) | ^ uhitm.c:1932:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1932 | hmonas(mon, tmp) /* attack monster as a monster. */ | ^ uhitm.c:2133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2133 | passive(mon, mhit, malive, aatyp) | ^ uhitm.c:2342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2342 | passive_obj(mon, obj, mattk) | ^ uhitm.c:2401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2401 | stumble_onto_mimic(mtmp) | ^ uhitm.c:2440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2440 | nohandglow(mon) | ^ uhitm.c:2462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2462 | flash_hits_mon(mtmp, otmp) | ^ 29 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c vault.c In file included from vault.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from vault.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ vault.c:22:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | clear_fcorr(grd, forceshow) | ^ vault.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | restfakecorr(grd) | ^ vault.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | grddead(grd) /* called in mon.c */ | ^ vault.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | in_fcorridor(grd, x, y) | ^ vault.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 | vault_occupied(array) | ^ vault.c:353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | move_gold(gold, vroom) | ^ vault.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | wallify_vault(grd) | ^ vault.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | gd_move(grd) | ^ 13 warnings generated. ./makedefs -z close: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 _far_: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c vision.c In file included from vision.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from vision.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ vision.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | does_block(x,y,lev) | ^ vision.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | get_unused_cs(rows, rmin, rmax) | ^ vision.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 | rogue_vision(next, rmin, rmax) | ^ vision.c:492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | vision_recalc(control) | ^ vision.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | block_point(x,y) | ^ vision.c:841:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 841 | unblock_point(x,y) | ^ vision.c:901:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | dig_point(row,col) | ^ vision.c:982:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 982 | fill_point(row,col) | ^ vision.c:1320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1320 | _q1_path(srow,scol,y2,x2) | ^ vision.c:1364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1364 | _q4_path(srow,scol,y2,x2) | ^ vision.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | _q2_path(srow,scol,y2,x2) | ^ vision.c:1452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1452 | _q3_path(srow,scol,y2,x2) | ^ vision.c:1502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1502 | clear_path(col1,row1,col2,row2) | ^ vision.c:1582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1582 | close_shadow(side,this_row,block_row,block_col) | ^ vision.c:1611:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1611 | far_shadow(side,this_row,block_row,block_col) | ^ vision.c:1651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | right_side(row, cb_row, cb_col, fb_row, fb_col, left, right_mark, limits) | ^ vision.c:1906:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1906 | left_side(row, cb_row, cb_col, fb_row, fb_col, left_mark, right, limits) | ^ vision.c:2087:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2087 | view_from(srow,scol,loc_cs_rows,left_most,right_most, range, func, arg) | ^ vision.c:2590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2590 | do_clear_area(scol,srow,range,func,arg) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c vis_tab.c In file included from vis_tab.c:2: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from vis_tab.c:2: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from vis_tab.c:2: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c weapon.c 5 warnings generated. In file included from weapon.c:10: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from weapon.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ weapon.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | give_may_advance_msg(skill) | ^ weapon.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | hitval(otmp, mon) | ^ weapon.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | dmgval(otmp, mon) | ^ weapon.c:324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | oselect(mtmp, x) | ^ weapon.c:358:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | select_rwep(mtmp) /* select a ranged weapon for the monster */ | ^ weapon.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 | select_hwep(mtmp) /* select a hand to hand weapon for the monster */ | ^ weapon.c:526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | possibly_unwield(mon, polyspot) | ^ weapon.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | mon_wield_item(mon) | ^ weapon.c:735:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | skill_level_name(skill, buf) | ^ weapon.c:757:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | slots_required(skill) | ^ weapon.c:783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | can_advance(skill, speedy) | ^ weapon.c:800:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | could_advance(skill) | ^ weapon.c:813:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 813 | peaked_skill(skill) | ^ weapon.c:823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 823 | skill_advance(skill) | ^ weapon.c:999:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | unrestrict_weapon_skill(skill) | ^ weapon.c:1013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | use_skill(skill,degree) | ^ weapon.c:1028:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | add_weapon_skill(n) | ^ weapon.c:1043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | lose_weapon_skill(n) | ^ weapon.c:1067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | weapon_type(obj) | ^ weapon.c:1097:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | weapon_hit_bonus(weapon) | ^ weapon.c:1166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1166 | weapon_dam_bonus(weapon) | ^ weapon.c:1236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | skill_init(class_skill) | ^ weapon.c:1302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1302 | setmnotwielded(mon,obj) | ^ 28 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c were.c In file included from were.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from were.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ were.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | were_change(mon) | ^ were.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | counter_were(pm) | ^ were.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | new_were(mon) | ^ were.c:90:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | were_summon(ptr,yours,visible,genbuf) /* were-creature (even you) summons a horde */ | ^ were.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 | you_unwere(purify) | ^ 10 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c wield.c In file included from wield.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from wield.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ wield.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | setuwep(obj) | ^ wield.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | ready_weapon(wep) | ^ wield.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | setuqwep(obj) | ^ wield.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | setuswapwep(obj) | ^ wield.c:403:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | wield_tool(obj, verb) | ^ wield.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | erode_obj(target, acid_dmg, fade_scrolls) | ^ wield.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 | chwepon(otmp, amount) | ^ wield.c:776:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 776 | welded(obj) | ^ wield.c:787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | weldmsg(obj) | ^ 14 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c windows.c In file included from windows.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from windows.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ windows.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | def_raw_print(s) | ^ windows.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | choose_windows(s) | ^ windows.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | genl_message_menu(let, how, mesg) | ^ windows.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | genl_preference_update(pref) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c wizard.c In file included from wizard.c:10: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from wizard.c:10: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ wizard.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | mon_has_amulet(mtmp) | ^ wizard.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | mon_has_special(mtmp) | ^ wizard.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | which_arti(mask) | ^ wizard.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | mon_has_arti(mtmp, otyp) | ^ wizard.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 | other_mon_has_arti(mtmp, otyp) | ^ wizard.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | on_ground(otyp) | ^ wizard.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | you_have(mask) | ^ wizard.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | target_on(mask, mtmp) | ^ wizard.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | strategy(mtmp) | ^ wizard.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 | tactics(mtmp) | ^ wizard.c:422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | nasty(mcast) | ^ wizard.c:602:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | cuss(mtmp) | ^ 17 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c worm.c In file included from worm.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from worm.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ worm.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | initworm(worm, wseg_count) | ^ worm.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | toss_wsegs(curr, display_update) | ^ worm.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | shrink_worm(wnum) | ^ worm.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | worm_move(worm) | ^ worm.c:244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | worm_nomove(worm) | ^ worm.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | wormgone(worm) | ^ worm.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | wormhitu(worm) | ^ worm.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | cutworm(worm, x, y, weap) | ^ worm.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | see_wsegs(worm) | ^ worm.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | detect_wsegs(worm, use_detection_glyph) | ^ worm.c:465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | save_worm(fd, mode) | ^ worm.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 | rest_worm(fd) | ^ worm.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | place_wsegs(worm) | ^ worm.c:566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | remove_worm(worm) | ^ worm.c:590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | place_worm_tail_randomly(worm, x, y) | ^ worm.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 | random_dir(x, y, nx, ny) | ^ worm.c:682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | count_wsegs(mtmp) | ^ worm.c:704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | create_worm_tail(num_segs) | ^ worm.c:736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | worm_known(worm) | ^ 24 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c worn.c In file included from worn.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from worn.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ worn.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | setworn(obj, mask) | ^ worn.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | setnotworn(obj) | ^ worn.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 | mon_set_minvis(mon) | ^ worn.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | mon_adjust_speed(mon, adjust, obj) | ^ worn.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 | update_mon_intrinsics(mon, obj, on, silently) | ^ worn.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | find_mac(mon) | ^ worn.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | m_dowear(mon, creation) | ^ worn.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | m_dowear_type(mon, flag, creation, racialexception) | ^ worn.c:516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | which_armor(mon, flag) | ^ worn.c:529:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | m_lose_armor(mon, obj) | ^ worn.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | bypass_obj(obj) | ^ worn.c:594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | mon_break_armor(mon, polyspot) | ^ worn.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | extra_pref(mon, obj) | ^ worn.c:778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | racial_exception(mon, obj) | ^ 19 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c write.c In file included from write.c:4: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from write.c:4: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ write.c:12:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | cost(otmp) | ^ write.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | dowrite(pen) | ^ 7 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c zap.c In file included from zap.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from zap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ zap.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | bhitm(mtmp, otmp) | ^ zap.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | probe_monster(mtmp) | ^ zap.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | get_obj_location(obj, xp, yp, locflags) | ^ zap.c:438:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | get_mon_location(mon, xp, yp, locflags) | ^ zap.c:459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | montraits(obj,cc) | ^ zap.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_container_location(obj, loc, container_nesting) | ^ zap.c:564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | revive(obj) | ^ zap.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | revive_egg(obj) | ^ zap.c:737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | unturn_dead(mon) | ^ zap.c:777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 777 | costly_cancel(obj) | ^ zap.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 809 | cancel_item(obj) | ^ zap.c:911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | drain_item(obj) | ^ zap.c:983:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 983 | obj_resists(obj, ochance, achance) | ^ zap.c:1001:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1001 | obj_shudders(obj) | ^ zap.c:1029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | polyuse(objhdr, mat, minwt) | ^ zap.c:1067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | create_polymon(obj, okind) | ^ zap.c:1150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | do_osshock(obj) | ^ zap.c:1202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1202 | poly_obj(obj, id) | ^ zap.c:1445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1445 | bhito(obj, otmp) | ^ zap.c:1711:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1711 | bhitpile(obj,fhito,tx,ty) | ^ zap.c:1752:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1752 | zappable(wand) | ^ zap.c:1768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1768 | zapnodir(obj) | ^ zap.c:1814:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1814 | backfire(otmp) | ^ zap.c:1838:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1838 | if(!zappable(obj)) pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:1838:27: note: treat the string as an argument to avoid this 1838 | if(!zappable(obj)) pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ zap.c:1875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1875 | zapyourself(obj, ordinary) | ^ zap.c:1915:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1915 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:1915:25: note: treat the string as an argument to avoid this 1915 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ zap.c:2096:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2096 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:2096:21: note: treat the string as an argument to avoid this 2096 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ zap.c:2160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2160 | zap_steed(obj) | ^ zap.c:2226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2226 | cancel_monst(mdef, obj, youattack, allow_cancel_kill, self_cancel) | ^ zap.c:2286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2286 | zap_updown(obj) | ^ zap.c:2376:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2376 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:2376:9: note: treat the string as an argument to avoid this 2376 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ zap.c:2387:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 2387 | pline(nothing_happens); | ^~~~~~~~~~~~~~~ ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:2387:10: note: treat the string as an argument to avoid this 2387 | pline(nothing_happens); | ^ | "%s", ../include/decl.h:299:28: note: expanded from macro 'nothing_happens' 299 | #define nothing_happens c_common_strings.c_nothing_happens | ^ zap.c:2448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2448 | weffects(obj) | ^ zap.c:2534:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2534 | spell_hit_bonus(skill) | ^ zap.c:2563:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2563 | exclam(force) | ^ zap.c:2573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2573 | hit(str,mtmp,force) | ^ zap.c:2587:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2587 | miss(str,mtmp) | ^ zap.c:2618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2618 | bhit(ddx,ddy,range,weapon,fhitm,fhito,obj) | ^ zap.c:2841:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2841 | boomhit(dx, dy) | ^ zap.c:2898:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2898 | zhitm(mon, type, nd, ootmp) /* returns damage to mon */ | ^ zap.c:3068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3068 | zhitu(type, nd, fltxt, sx, sy) | ^ zap.c:3199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3199 | burn_floor_paper(x, y, give_feedback, u_caused) | ^ zap.c:3249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3249 | zap_hit(ac, type) | ^ zap.c:3273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3273 | buzz(type,nd,sx,sy,dx,dy) | ^ zap.c:3466:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3466 | if (!Blind) Your(vision_clears); | ^~~~~~~~~~~~~ ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:3466:20: note: treat the string as an argument to avoid this 3466 | if (!Blind) Your(vision_clears); | ^ | "%s", ../include/decl.h:307:26: note: expanded from macro 'vision_clears' 307 | #define vision_clears c_common_strings.c_vision_clears | ^ zap.c:3524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3524 | melt_ice(x, y) | ^ zap.c:3566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3566 | zap_over_floor(x, y, type, shopdamage) | ^ zap.c:3600:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3600 | Norep(msgtxt); | ^~~~~~ zap.c:3600:9: note: treat the string as an argument to avoid this 3600 | Norep(msgtxt); | ^ | "%s", zap.c:3724:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3724 | pline(see_txt); | ^~~~~~~ zap.c:3724:10: note: treat the string as an argument to avoid this 3724 | pline(see_txt); | ^ | "%s", zap.c:3727:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3727 | You(sense_txt); | ^~~~~~~~~ zap.c:3727:8: note: treat the string as an argument to avoid this 3727 | You(sense_txt); | ^ | "%s", zap.c:3729:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 3729 | if (flags.soundok) You_hear(hear_txt); | ^~~~~~~~ zap.c:3729:32: note: treat the string as an argument to avoid this 3729 | if (flags.soundok) You_hear(hear_txt); | ^ | "%s", zap.c:3763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3763 | fracture_rock(obj) /* fractured by pick-axe or wand of striking */ | ^ zap.c:3790:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3790 | break_statue(obj) | ^ zap.c:3824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3824 | destroy_item(osym, dmgtyp) | ^ zap.c:3949:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3949 | destroy_mitem(mtmp, osym, dmgtyp) | ^ zap.c:4050:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4050 | resist(mtmp, oclass, damage, tell) | ^ zap.c:4114:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 4114 | pline(thats_enough_tries); | ^~~~~~~~~~~~~~~~~~ ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zap.c:4114:12: note: treat the string as an argument to avoid this 4114 | pline(thats_enough_tries); | ^ | "%s", ../include/decl.h:300:28: note: expanded from macro 'thats_enough_tries' 300 | #define thats_enough_tries c_common_strings.c_thats_enough_tries | ^ 62 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/share/ioctl.c In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../sys/share/ioctl.c:9: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/unix/unixmain.c In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../sys/unix/unixmain.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../sys/unix/unixmain.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 | main(argc,argv) | ^ ../sys/unix/unixmain.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | process_options(argc, argv) | ^ ../sys/unix/unixmain.c:410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | chdirx(dir, wr) | ^ ../sys/unix/unixmain.c:526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | append_slash(name) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/share/unixtty.c In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../sys/share/unixtty.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../sys/share/unixtty.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | speednum(speed) | ^ ../sys/share/unixtty.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | settty(s) | ^ 7 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/unix/unixunix.c In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../sys/unix/unixunix.c:7: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../sys/unix/unixunix.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | veryold(fd) | ^ ../sys/unix/unixunix.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 | regularize(s) /* normalize file name - we don't like .'s, /'s, spaces */ | ^ ../sys/unix/unixunix.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | child(wt) | ^ 8 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../sys/unix/unixres.c In file included from ../sys/unix/unixres.c:17: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../sys/unix/unixres.c:17: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../sys/unix/unixres.c:17: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 5 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/getline.c In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../win/tty/getline.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../win/tty/getline.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | tty_getlin(query, bufp) | ^ ../win/tty/getline.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 | hooked_tty_getlin(query, bufp, hook) | ^ ../win/tty/getline.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | xwaitforspace(s) | ^ ../win/tty/getline.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 | ext_cmd_getlin_hook(base) | ^ 9 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/termcap.c In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../win/tty/termcap.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../win/tty/termcap.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | tty_startup(wid, hgt) | ^ ../win/tty/termcap.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 | tty_number_pad(state) | ^ ../win/tty/termcap.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | nocmov(x, y) | ^ ../win/tty/termcap.c:549:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | cmov(x, y) | ^ ../win/tty/termcap.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | xputc(c) | ^ ../win/tty/termcap.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | xputs(s) | ^ ../win/tty/termcap.c:1069:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | s_atr2str(n) | ^ ../win/tty/termcap.c:1088:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1088 | e_atr2str(n) | ^ ../win/tty/termcap.c:1105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | term_start_attr(attr) | ^ ../win/tty/termcap.c:1115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | term_end_attr(attr) | ^ ../win/tty/termcap.c:1148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1148 | term_start_color(color) | ^ ../win/tty/termcap.c:1156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1156 | has_color(color) | ^ 17 warnings generated. cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/topl.c In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../win/tty/topl.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../win/tty/topl.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | redotoplin(str) | ^ ../win/tty/topl.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 | addtopl(s) | ^ ../win/tty/topl.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | update_topl(bp) | ^ ../win/tty/topl.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | topl_putsym(c) | ^ ../win/tty/topl.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | putsyms(str) | ^ ../win/tty/topl.c:311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | removetopl(n) | ^ ../win/tty/topl.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | tty_yn_function(query,resp, def) | ^ cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c ../win/tty/wintty.c 12 warnings generated. In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from ../win/tty/wintty.c:11: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ ../win/tty/wintty.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | bail(mesg) | ^ ../win/tty/wintty.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | tty_init_nhwindows(argcp,argv) | ^ ../win/tty/wintty.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | tty_suspend_nhwindows(str) | ^ ../win/tty/wintty.c:775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | tty_exit_nhwindows(str) | ^ ../win/tty/wintty.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | tty_create_nhwindow(type) | ^ ../win/tty/wintty.c:908:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | erase_menu_or_text(window, cw, clear) | ^ ../win/tty/wintty.c:926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 926 | free_window_info(cw, free_data) | ^ ../win/tty/wintty.c:970:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 970 | tty_clear_nhwindow(window) | ^ ../win/tty/wintty.c:1013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | dmore(cw, s) | ^ ../win/tty/wintty.c:1033:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1033 | set_item_state(window, lineno, item) | ^ ../win/tty/wintty.c:1047:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1047 | set_all_on_page(window, page_start, page_end) | ^ ../win/tty/wintty.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | unset_all_on_page(window, page_start, page_end) | ^ ../win/tty/wintty.c:1078:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1078 | invert_all_on_page(window, page_start, page_end, acc) | ^ ../win/tty/wintty.c:1102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1102 | invert_all(window, page_start, page_end, acc) | ^ ../win/tty/wintty.c:1132:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1132 | process_menu_window(window, cw) | ^ ../win/tty/wintty.c:1434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | process_text_window(window, cw) | ^ ../win/tty/wintty.c:1489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1489 | tty_display_nhwindow(window, blocking) | ^ ../win/tty/wintty.c:1557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1557 | tty_dismiss_nhwindow(window) | ^ ../win/tty/wintty.c:1600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1600 | tty_destroy_nhwindow(window) | ^ ../win/tty/wintty.c:1621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1621 | tty_curs(window, x, y) | ^ ../win/tty/wintty.c:1697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1697 | tty_putsym(window, x, y, ch) | ^ ../win/tty/wintty.c:1726:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1726 | compress_str(str) | ^ ../win/tty/wintty.c:1749:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1749 | tty_putstr(window, attr, str) | ^ ../win/tty/wintty.c:1896:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1896 | tty_display_file(fname, complain) | ^ ../win/tty/wintty.c:1974:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1974 | tty_start_menu(window) | ^ ../win/tty/wintty.c:1987:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1987 | tty_add_menu(window, glyph, identifier, ch, gch, attr, str, preselected) | ^ ../win/tty/wintty.c:2039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2039 | reverse(curr) | ^ ../win/tty/wintty.c:2060:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2060 | tty_end_menu(window, prompt) | ^ ../win/tty/wintty.c:2155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2155 | tty_select_menu(window, how, menu_list) | ^ ../win/tty/wintty.c:2198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2198 | tty_message_menu(let, how, mesg) | ^ ../win/tty/wintty.c:2266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2266 | docorner(xmin, ymax) | ^ ../win/tty/wintty.c:2325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2325 | g_putch(in_ch) | ^ ../win/tty/wintty.c:2368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2368 | tty_cliparound(x, y) | ^ ../win/tty/wintty.c:2409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2409 | tty_print_glyph(window, x, y, glyph) | ^ ../win/tty/wintty.c:2478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2478 | tty_raw_print(str) | ^ ../win/tty/wintty.c:2490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2490 | tty_raw_print_bold(str) | ^ ../win/tty/wintty.c:2552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2552 | tty_nh_poskey(x, y, mod) | ^ ../win/tty/wintty.c:2603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2603 | copy_of(s) | ^ 43 warnings generated. ../util/makedefs -v cc -O2 -pipe -DHACKDIR=\"/usr/local/lib/nethackdir-3.4.3\" -DHAVE_SYS_PARAM_H -I../include -c version.c In file included from version.c:5: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from version.c:5: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ version.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 | version_string(buf) | ^ version.c:29:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | getversionstring(buf) | ^ version.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 | check_version(version_data, filename, complain) | ^ version.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | uptodate(fd, name) | ^ version.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | store_version(fd) | ^ version.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | get_feature_notice_ver(str) | ^ 11 warnings generated. Loading ... cc -o nethack monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o version.o -ltermlib ld: warning: detect.c(detect.o:(gold_detect)): warning: sprintf() is often misused, please use snprintf() ld: warning: detect.c(detect.o:(object_detect)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: apply.c(apply.o:(doapply)): warning: strcat() is almost always misused, please use strlcat() ld: warning: rumors.c(rumors.o:(getrumor)): warning: random() may return deterministic values, is that what you want? ld: warning: pline.c(pline.o:(vpline)): warning: vsprintf() is often misused, please use vsnprintf() nethack is up to date. ( cd util ; /usr/bin/make recover ) `../include/date.h' is up to date. cc -O2 -pipe -I../include -c recover.c In file included from recover.c:10: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from recover.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from recover.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from recover.c:10: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ recover.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | main(argc, argv) | ^ recover.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | set_levelfile_name(lev) | ^ recover.c:162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | open_levelfile(lev) | ^ recover.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | copy_bytes(ifd, ofd) | ^ recover.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | restore_savefile(basename) | ^ cc -o recover recover.o 11 warnings generated. ld: warning: recover.c(recover.o:(restore_savefile)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: recover.c(recover.o:(restore_savefile)): warning: sprintf() is often misused, please use snprintf() ( cd doc ; /usr/bin/make Guidebook ) tbl tmac.n Guidebook.mn | nroff | col -bx > Guidebook /bin/sh: tbl: not found /bin/sh: nroff: not found ( cd dat ; /usr/bin/make data ) ../util/makedefs -d ( cd dat ; /usr/bin/make oracles ) ../util/makedefs -h ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) ../util/makedefs -q ( cd dat ; /usr/bin/make rumors ) ../util/makedefs -r ( cd util ; /usr/bin/make dgn_comp ) yacc -d dgn_comp.y mv y.tab.c dgn_yacc.c mv y.tab.h ../include/dgn_comp.h `../include/date.h' is up to date. cc -O2 -pipe -I../include -c dgn_yacc.c In file included from dgn_comp.y:25: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from dgn_comp.y:25: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dgn_comp.y:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | getchain(s) | ^ 7 warnings generated. lex dgn_comp.l mv lex.yy.c dgn_lex.c cc -c -O2 -pipe -I../include dgn_lex.c In file included from dgn_comp.l:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from dgn_comp.l:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dgn_comp.l:121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | void init_yyin( input_f ) | ^ dgn_comp.l:132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | void init_yyout( output_f ) | ^ 8 warnings generated. cc -O2 -pipe -I../include -c dgn_main.c In file included from dgn_main.c:11: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from dgn_main.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ dgn_main.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | main(argc, argv) | ^ dgn_main.c:161:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | void yyerror(s) | ^ dgn_main.c:175:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | void yywarning(s) | ^ 9 warnings generated. cc -O2 -pipe -I../include -c panic.c In file included from panic.c:11: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from panic.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from panic.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from panic.c:11: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 6 warnings generated. cc -o dgn_comp dgn_yacc.o dgn_lex.o dgn_main.o ../src/alloc.o panic.o ld: warning: dgn_main.c(dgn_main.o:(main)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: dgn_main.c(dgn_main.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() ( cd dat ; /usr/bin/make dungeon ) ../util/makedefs -e ../util/dgn_comp dungeon.pdf ( cd util ; /usr/bin/make lev_comp ) yacc -d lev_comp.y mv y.tab.c lev_yacc.c mv y.tab.h ../include/lev_comp.h cc -O2 -pipe -I../include -c lev_yacc.c In file included from lev_comp.y:24: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from lev_comp.y:24: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ 6 warnings generated. lex lev_comp.l mv lex.yy.c lev_lex.c cc -c -O2 -pipe -I../include lev_lex.c In file included from lev_comp.l:8: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from lev_comp.l:8: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ lev_comp.l:224:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | void init_yyin( input_f ) | ^ lev_comp.l:235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | void init_yyout( output_f ) | ^ 8 warnings generated. `../include/date.h' is up to date. cc -O2 -pipe -I../include -c lev_main.c In file included from lev_main.c:12: In file included from ../include/hack.h:9: ../include/config.h:173:41: warning: '/*' within block comment [-Wcomment] 173 | /* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ | ^ ../include/config.h:174:37: warning: '/*' within block comment [-Wcomment] 174 | /* #define COMPRESS_EXTENSION ".Z" /* compress's extension */ | ^ In file included from lev_main.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: ../include/unixconf.h:39:18: warning: '/*' within block comment [-Wcomment] 39 | /* #define SVR4 /* use in addition to SYSV for System V Release 4 */ | ^ ../include/unixconf.h:151:19: warning: '/*' within block comment [-Wcomment] 151 | /* #define MAIL /* Deliver mail during the game */ | ^ In file included from lev_main.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:91:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 91 | E void srand48(); | ^ /usr/include/stdlib.h:160:7: note: conflicting prototype is here 160 | void srand48(long); | ^ In file included from lev_main.c:12: In file included from ../include/hack.h:9: In file included from ../include/config.h:359: In file included from ../include/global.h:150: In file included from ../include/unixconf.h:280: ../include/system.h:349:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 349 | E unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ lev_main.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | main(argc, argv) | ^ lev_main.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | yyerror(s) | ^ lev_main.c:321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | yywarning(s) | ^ lev_main.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | get_floor_type(c) | ^ lev_main.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | get_room_type(s) | ^ lev_main.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | get_trap_type(s) | ^ lev_main.c:391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | get_monster_id(s, c) | ^ lev_main.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 | get_object_id(s, c) | ^ lev_main.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 | check_monster_char(c) | ^ lev_main.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 | check_object_char(c) | ^ lev_main.c:470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | what_map_char(c) | ^ lev_main.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 | scan_map(map) | ^ lev_main.c:680:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | check_coord(x, y, str) | ^ lev_main.c:971:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | write_common_data(fd, typ, init, flgs) | ^ lev_main.c:1000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | write_monsters(fd, nmonster_p, monsters_p) | ^ lev_main.c:1040:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1040 | write_objects(fd, nobject_p, objects_p) | ^ lev_main.c:1074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | write_engravings(fd, nengraving_p, engravings_p) | ^ lev_main.c:1107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | write_level_file(filename, room_level, maze_level) | ^ lev_main.c:1147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | write_maze(fd, maze) | ^ lev_main.c:1357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1357 | write_rooms(fd, lev) | ^ lev_main.c:1471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1471 | free_rooms(lev) | ^ 27 warnings generated. cc -o lev_comp lev_yacc.o lev_lex.o lev_main.o ../src/alloc.o panic.o ../src/drawing.o ../src/decl.o ../src/monst.o ../src/objects.o ld: warning: alloc.c(../src/alloc.o:(fmt_ptr)): warning: sprintf() is often misused, please use snprintf() ld: warning: lev_main.c(lev_main.o:(write_level_file)): warning: strcat() is almost always misused, please use strlcat() ld: warning: lev_lex.c(lev_lex.o:(yylex)): warning: strcpy() is almost always misused, please use strlcpy() ( cd dat ; /usr/bin/make spec_levs ) ../util/lev_comp bigroom.des ../util/lev_comp castle.des ../util/lev_comp endgame.des ../util/lev_comp gehennom.des ../util/lev_comp knox.des ../util/lev_comp medusa.des ../util/lev_comp mines.des ../util/lev_comp oracle.des ../util/lev_comp sokoban.des ../util/lev_comp tower.des ../util/lev_comp yendor.des touch spec_levs ( cd dat ; /usr/bin/make quest_levs ) ../util/lev_comp Arch.des ../util/lev_comp Barb.des ../util/lev_comp Caveman.des ../util/lev_comp Healer.des ../util/lev_comp Knight.des ../util/lev_comp Monk.des ../util/lev_comp Priest.des ../util/lev_comp Ranger.des ../util/lev_comp Rogue.des ../util/lev_comp Samurai.des ../util/lev_comp Tourist.des ../util/lev_comp Valkyrie.des ../util/lev_comp Wizard.des touch quest_levs Done. `../include/date.h' is up to date. `recover' is up to date. >>> Running package in games/nethack/3.4,no_x11 at 1764960270.50 ===> games/nethack/3.4,no_x11 ===> Faking installation for nethack-3.4.3p18-no_x11 ( cd src ; /usr/bin/make ) nethack is up to date. ( cd util ; /usr/bin/make recover ) `../include/date.h' is up to date. `recover' is up to date. ( cd dat ; /usr/bin/make data ) `data' is up to date. ( cd dat ; /usr/bin/make oracles ) `oracles' is up to date. ( cd dat ; /usr/bin/make options ) `options' is up to date. ( cd dat ; /usr/bin/make quest.dat ) `quest.dat' is up to date. ( cd dat ; /usr/bin/make rumors ) `rumors' is up to date. ( cd util ; /usr/bin/make dgn_comp ) `../include/date.h' is up to date. `dgn_comp' is up to date. ( cd dat ; /usr/bin/make dungeon ) `dungeon' is up to date. ( cd util ; /usr/bin/make lev_comp ) `../include/date.h' is up to date. `lev_comp' is up to date. ( cd dat ; /usr/bin/make spec_levs ) `spec_levs' is up to date. ( cd dat ; /usr/bin/make quest_levs ) `quest_levs' is up to date. mkdir -p /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin rm -rf /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 mkdir -p /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/save rmdir ./-p *** Error 1 in target 'install' (ignored) chown bin /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/save chgrp games /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/save chmod 0775 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/save ( /usr/bin/make dofiles ) rmdir: ./-p: No such file or directory target=`sed -n -e '/librarian/{' -e 's/.*/dlb/p' -e 'q' -e '}' -e '$s/.*/nodlb/p' < dat/options` ; /usr/bin/make dofiles-${target-nodlb} ( cd dat ; cp license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev data oracles options quest.dat rumors /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 ) ( cd /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 ; chown bin license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev data oracles options quest.dat rumors ; chgrp games license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev data oracles options quest.dat rumors ; chmod 0664 license help hh cmdhelp history opthelp wizhelp dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev data oracles options quest.dat rumors ) cp src/nethack /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 cp util/recover /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 rm -f /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack sed -e 's;/usr/games/lib/nethackdir;/usr/local/lib/nethackdir-3.4.3;' -e 's;HACKDIR/nethack;HACKDIR/nethack;' < sys/unix/nethack.sh > /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack ( cd /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 ; chown bin nethack recover ; chgrp games nethack recover ) chmod 02755 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/nethack chmod 0755 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/recover chown bin /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack chgrp games /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack chmod 0755 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack touch /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/perm /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/record /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3/logfile ( cd /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/lib/nethackdir-3.4.3 ; chown bin perm record logfile ; chgrp games perm record logfile ; chmod 0664 perm record logfile ) You may also want to reinstall the man pages via the doc Makefile. /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -d -m 755 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/share/doc/nethack-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -c -m 644 /exopi-obj/pobj/nethack-3.4.3-no_x11/nethack-3.4.3/doc/Guidebook.txt /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/share/doc/nethack-3.4.3/Guidebook.txt /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -c -s -m 755 /exopi-obj/pobj/nethack-3.4.3-no_x11/nethack-3.4.3/util/recover /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/recover-3.4.3 /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -c -m 644 /exopi-obj/pobj/nethack-3.4.3-no_x11/nethack-3.4.3/doc/nethack.6 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/man/man6/nethack-3.4.3.6 /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -c -m 644 /exopi-obj/pobj/nethack-3.4.3-no_x11/nethack-3.4.3/doc/recover.6 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/man/man6/recover-3.4.3.6 /exopi-obj/pobj/nethack-3.4.3-no_x11/bin/install -c -s -m 755 /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack /exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/nethack-3.4.3 strip: error: '/exopi-obj/pobj/nethack-3.4.3-no_x11/fake-amd64-no_x11/usr/local/bin/INS@Oui11gJJYH': The file was not recognized as a valid object file ===> Building package for nethack-3.4.3p18-no_x11 Create /exopi-cvs/ports/packages/amd64/all/nethack-3.4.3p18-no_x11.tgz Creating package nethack-3.4.3p18-no_x11 reading plist| checking dependencies| checking dependencies|games/hackdata checksumming| checksumming| | 0% checksumming| | 1% checksumming|* | 1% checksumming|* | 2% checksumming|** | 3% checksumming|** | 4% checksumming|*** | 4% checksumming|*** | 5% checksumming|**** | 6% checksumming|**** | 7% checksumming|***** | 8% checksumming|***** | 9% checksumming|****** | 9% checksumming|****** | 10% checksumming|****** | 11% checksumming|******* | 11% checksumming|******* | 12% checksumming|******** | 12% checksumming|******** | 13% checksumming|******** | 14% checksumming|********* | 14% checksumming|********* | 15% checksumming|********** | 16% checksumming|********** | 17% checksumming|*********** | 18% checksumming|*********** | 19% checksumming|************ | 19% checksumming|************ | 20% checksumming|************* | 21% checksumming|************* | 22% checksumming|************** | 22% checksumming|************** | 23% checksumming|************** | 24% checksumming|*************** | 24% checksumming|*************** | 25% checksumming|**************** | 26% checksumming|***************** | 27% checksumming|***************** | 28% checksumming|****************** | 29% checksumming|****************** | 30% checksumming|******************* | 31% checksumming|******************* | 32% checksumming|******************** | 32% checksumming|******************** | 33% checksumming|******************** | 34% checksumming|********************* | 34% checksumming|********************* | 35% checksumming|********************** | 35% checksumming|********************** | 36% checksumming|*********************** | 37% checksumming|*********************** | 38% checksumming|************************ | 39% checksumming|************************ | 40% checksumming|************************* | 41% checksumming|************************* | 42% checksumming|************************** | 42% checksumming|************************** | 43% checksumming|*************************** | 44% checksumming|*************************** | 45% checksumming|**************************** | 45% checksumming|**************************** | 46% checksumming|***************************** | 47% checksumming|***************************** | 48% checksumming|****************************** | 49% checksumming|******************************* | 50% checksumming|******************************* | 51% checksumming|******************************** | 52% checksumming|******************************** | 53% checksumming|********************************* | 54% checksumming|********************************* | 55% checksumming|********************************** | 55% checksumming|********************************** | 56% checksumming|*********************************** | 57% checksumming|*********************************** | 58% checksumming|************************************ | 58% checksumming|************************************ | 59% checksumming|************************************* | 60% checksumming|************************************* | 61% checksumming|************************************** | 62% checksumming|************************************** | 63% checksumming|*************************************** | 64% checksumming|*************************************** | 65% checksumming|**************************************** | 65% checksumming|**************************************** | 66% checksumming|***************************************** | 66% checksumming|***************************************** | 67% checksumming|***************************************** | 68% checksumming|****************************************** | 68% checksumming|****************************************** | 69% checksumming|******************************************* | 70% checksumming|******************************************* | 71% checksumming|******************************************** | 72% checksumming|******************************************** | 73% checksumming|********************************************* | 74% checksumming|********************************************** | 75% checksumming|********************************************** | 76% checksumming|*********************************************** | 76% checksumming|*********************************************** | 77% checksumming|*********************************************** | 78% checksumming|************************************************ | 78% checksumming|************************************************ | 79% checksumming|************************************************* | 80% checksumming|************************************************* | 81% checksumming|************************************************** | 81% checksumming|************************************************** | 82% checksumming|*************************************************** | 83% checksumming|*************************************************** | 84% checksumming|**************************************************** | 85% checksumming|**************************************************** | 86% checksumming|***************************************************** | 86% checksumming|***************************************************** | 87% checksumming|***************************************************** | 88% checksumming|****************************************************** | 88% checksumming|****************************************************** | 89% checksumming|******************************************************* | 89% checksumming|******************************************************* | 90% checksumming|******************************************************* | 91% checksumming|******************************************************** | 91% checksumming|******************************************************** | 92% checksumming|********************************************************* | 93% checksumming|********************************************************* | 94% checksumming|********************************************************** | 95% checksumming|********************************************************** | 96% checksumming|*********************************************************** | 96% checksumming|*********************************************************** | 97% checksumming|************************************************************ | 98% checksumming|************************************************************ | 99% checksumming|*************************************************************| 99% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|******************************************** | 69% archiving|*********************************************** | 74% archiving|************************************************ | 74% archiving|************************************************ | 75% archiving|************************************************ | 76% archiving|************************************************* | 76% archiving|************************************************* | 77% archiving|************************************************** | 77% archiving|************************************************** | 78% archiving|************************************************** | 79% archiving|*************************************************** | 79% archiving|******************************************************* | 86% archiving|******************************************************* | 87% archiving|******************************************************** | 87% archiving|******************************************************** | 88% archiving|********************************************************* | 89% archiving|*********************************************************** | 92% archiving|************************************************************ | 94% archiving|************************************************************ | 95% archiving|************************************************************* | 95% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/nethack-3.4.3p18-no_x11.tgz >>> Running clean in games/nethack/3.4,no_x11 at 1764960274.94 ===> games/nethack/3.4,no_x11 ===> Cleaning for nethack-3.4.3p18-no_x11 >>> Ended at 1764960275.63 max_stuck=1.50/build=62.71/package=4.66/clean=0.76